Thread (7 messages) 7 messages, 3 authors, 2017-07-27

GRUB always enters a rescue shell.

From: Aruna Hewapathirane <hidden>
Date: 2017-07-22 18:03:28

On Mon, Jul 17, 2017 at 11:16 AM, Kamil Konieczny <
k.konieczny@partner.samsung.com> wrote:
Hi,

On 13.07.2017 10:39, Hao Lee wrote:
quoted
I encounter a problem when making a bootable disk image because GRUB
always enters a
rescue shell.

I want to create a disk image and install GRUB 2 on it and then use
Bochs to run it. The steps are as follows.
[...]
quoted
Bochs BIOS - build: 02/16/17
ata0 master: Generic 1234 ATA-6 Hard-Disk (  49 MBytes)
Press F12 for boot menu.
Booting from Hard Disk...
.
error: no such device: c5b2c483-70c2-4212-840b-da5f965d0555.
error: unknown filesystem.
Entering rescue mode...
grub rescue>
[...]
Looks like that blkid 'c5b2c483...' is not valid for your boot device,
see command:
blkid

also:
lsblk

or search with google: grub2 without uuid

or discover what uuid your partition will have (or assign it)
or turn to some grub2 guru/forum for help

or it may be problem with disk configuration, like loop1 is using
linear mode, and bochs uses incompatible one (? i am not sure here)
then bios geometry is mixing up sectors sequence

or in step 3:
quoted
sudo losetup -o $((2048*512)) /dev/loop1 hd.img
should'nt it be 63*512 ?
nope should be 2048 and this is why -->
https://superuser.com/questions/352572/why-does-the-partition-start-on-sector-2048-instead-of-63



Regards,
Kamil Konieczny

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170722/5013c03a/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help