Grub-1.97 problems

linux fan linuxscratch at gmail.com
Wed Nov 11 20:33:30 PST 2009


On 11/11/09, Bruce Dubbs <bruce.dubbs at gmail.com> wrote:
>
> OK, I assume you are still within the chroot environment.

No, this system has been running regularly with grub1 since January 2009.

> What is the result of:
>
> ls -l /dev/sd*
root at lfs:~# ls -l /dev/sd*
brw-rw---- 1 root disk 8,  0 2009-11-11 18:13 /dev/sda
brw-rw---- 1 root disk 8,  1 2009-11-11 18:13 /dev/sda1
brw-rw---- 1 root disk 8, 10 2009-11-11 18:13 /dev/sda10
brw-rw---- 1 root disk 8, 11 2009-11-11 23:13 /dev/sda11
brw-rw---- 1 root disk 8, 12 2009-11-11 18:13 /dev/sda12
brw-rw---- 1 root disk 8, 13 2009-11-11 18:13 /dev/sda13
brw-rw---- 1 root disk 8, 14 2009-11-11 18:13 /dev/sda14
brw-rw---- 1 root disk 8, 15 2009-11-11 18:13 /dev/sda15
brw-rw---- 1 root disk 8,  2 2009-11-11 18:13 /dev/sda2
brw-rw---- 1 root disk 8,  3 2009-11-11 18:13 /dev/sda3
brw-rw---- 1 root disk 8,  5 2009-11-11 18:13 /dev/sda5
brw-rw---- 1 root disk 8,  6 2009-11-11 18:13 /dev/sda6
brw-rw---- 1 root disk 8,  7 2009-11-11 18:13 /dev/sda7
brw-rw---- 1 root disk 8,  8 2009-11-11 18:13 /dev/sda8
brw-rw---- 1 root disk 8,  9 2009-11-11 18:13 /dev/sda9
brw-rw---- 1 root disk 8, 16 2009-11-11 18:13 /dev/sdb
brw-rw---- 1 root disk 8, 17 2009-11-11 18:13 /dev/sdb1
brw-rw---- 1 root disk 8, 18 2009-11-11 18:13 /dev/sdb2
brw-rw---- 1 root disk 8, 21 2009-11-11 18:13 /dev/sdb5
brw-rw---- 1 root disk 8, 22 2009-11-11 18:13 /dev/sdb6
brw-rw---- 1 root disk 8, 23 2009-11-11 18:13 /dev/sdb7
brw-rw---- 1 root disk 8, 24 2009-11-11 18:13 /dev/sdb8
brw-rw---- 1 root disk 8, 25 2009-11-11 18:13 /dev/sdb9


>
> Lets see if we can get the grub-install command to work properly first
> and then we can address other issues.  *Within the chroot environment*
> remove all files in /boot/grub and check that /dev/sda and /dev/sdb are
> present (at a minimum).  Then try
>

??? does grub2 _not_ work _unless_ *Within the chroot environment*  ???
That would seem peculiar to me.
Currently, I am not in chroot.

>    grub-mkdevicemap --verbose --device-map=device.map
root at lfs:~# rm /boot/grub/*
root at lfs:~# grub-mkdevicemap -v
root at lfs:~# cat /boot/grub/*
(fd0)   /dev/fd0
(hd0)   /dev/sda
(hd1)   /dev/sdb

... it doesn't _verbose_ for me ... either -v or --verbose ...

> The only thing in /boot/grub should be device.map.  Now try:
>
>    grub-install --grub-setup=/bin/true  /dev/sda

root at lfs:~# grub-install --grub-setup=/bin/true  /dev/sda
error: cannot seek `/dev/sda'
error: cannot seek `/dev/sdb'
error: cannot seek `/dev/sdb'
error: cannot seek `/dev/sda'
error: cannot seek `/dev/sdb'
error: cannot seek `/dev/sdb'
grub-probe: error: Cannot find a GRUB drive for /dev/sda11.  Check
your device.map.

Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.



More information about the lfs-support mailing list