<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">&lt;<a href="mailto:k.konieczny@partner.samsung.com" target="_blank">k.konieczny@partner.samsung.com</a>&gt;</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>
&gt; I encounter a problem when making a bootable disk image because GRUB<br>
&gt; always enters a<br>
&gt; rescue shell.<br>
&gt;<br>
&gt; I want to create a disk image and install GRUB 2 on it and then use<br>
&gt; Bochs to run it. The steps are as follows.<br>
</span>&gt; [...]<br>
<span class="gmail-"><br>
&gt; Bochs BIOS - build: 02/16/17<br>
&gt; ata0 master: Generic 1234 ATA-6 Hard-Disk (  49 MBytes)<br>
&gt; Press F12 for boot menu.<br>
&gt; Booting from Hard Disk...<br>
&gt; .<br>
&gt; error: no such device: c5b2c483-70c2-4212-840b-<wbr>da5f965d0555.<br>
&gt; error: unknown filesystem.<br>
&gt; Entering rescue mode...<br>
&gt; grub rescue&gt;<br>
</span>&gt; [...]<br>
<br>
Looks like that blkid &#39;c5b2c483...&#39; 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>
&gt; sudo losetup -o $((2048*512)) /dev/loop1 hd.img<br>
<br>
</span>should&#39;nt it be 63*512 ?<br></blockquote><div><br></div><div>nope should be 2048 and this is why --&gt; <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>