<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jul 17, 2017 at 11:16 AM, Kamil Konieczny <span dir="ltr"><<a href="mailto:k.konieczny@partner.samsung.com" target="_blank">k.konieczny@partner.samsung.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<span class="gmail-"><br>
On 13.07.2017 10:39, Hao Lee wrote:<br>
<br>
> I encounter a problem when making a bootable disk image because GRUB<br>
> always enters a<br>
> rescue shell.<br>
><br>
> I want to create a disk image and install GRUB 2 on it and then use<br>
> Bochs to run it. The steps are as follows.<br>
</span>> [...]<br>
<span class="gmail-"><br>
> Bochs BIOS - build: 02/16/17<br>
> ata0 master: Generic 1234 ATA-6 Hard-Disk ( 49 MBytes)<br>
> Press F12 for boot menu.<br>
> Booting from Hard Disk...<br>
> .<br>
> error: no such device: c5b2c483-70c2-4212-840b-<wbr>da5f965d0555.<br>
> error: unknown filesystem.<br>
> Entering rescue mode...<br>
> grub rescue><br>
</span>> [...]<br>
<br>
Looks like that blkid 'c5b2c483...' is not valid for your boot device,<br>
see command:<br>
blkid<br>
<br>
also:<br>
lsblk<br>
<br>
or search with google: grub2 without uuid<br>
<br>
or discover what uuid your partition will have (or assign it)<br>
or turn to some grub2 guru/forum for help<br>
<br>
or it may be problem with disk configuration, like loop1 is using<br>
linear mode, and bochs uses incompatible one (? i am not sure here)<br>
then bios geometry is mixing up sectors sequence<br>
<br>
or in step 3:<br>
<span class="gmail-"><br>
> sudo losetup -o $((2048*512)) /dev/loop1 hd.img<br>
<br>
</span>should'nt it be 63*512 ?<br></blockquote><div><br></div><div>nope should be 2048 and this is why --> <a href="https://superuser.com/questions/352572/why-does-the-partition-start-on-sector-2048-instead-of-63">https://superuser.com/questions/352572/why-does-the-partition-start-on-sector-2048-instead-of-63</a> </div><div> </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Regards,<br>
Kamil Konieczny<br>
<div class="gmail-HOEnZb"><div class="gmail-h5"><br>
______________________________<wbr>_________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.<wbr>org</a><br>
<a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">https://lists.kernelnewbies.<wbr>org/mailman/listinfo/<wbr>kernelnewbies</a><br>
</div></div></blockquote></div><br></div></div>