Bug#212538: grub-install fail in systems with devfs or udev
Jamin W. Collins
"Jamin W. Collins" <jcollins@asgardsrealm.net>, 212538@bugs.debian.org
Wed, 26 May 2004 21:30:41 -0600
--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
I had this same problem with my system running 2.6.6 with udev. As long
as udev was enabled, grub-install or update-grub would resolve the
/dev/hda symlink to /dev/ide/host0/bus0/target0/lun0/disc and complain
that there was no corresponding bios drive.
Yes, I'm able to reproduce this if I delete /boot/grub/device.map
/etc/fstab - attached
/boot/grub/menu.lst - attached
$ mount
rootfs on / type rootfs (rw)
/dev2/root2 on / type ext3 (rw)
proc on /proc type proc (rw,nodiratime)
sysfs on /sys type sysfs (rw)
/dev2/root2 on /etc/udev/.dev type ext3 (rw)
none on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw)
/dev/hda1 on /boot type ext3 (rw)
/dev/hda6 on /home type ext3 (rw)
/dev/hda10 on /var/log type ext3 (rw)
/dev/hda11 on /usr/local type ext3 (rw)
/dev/hda12 on /usr/src type ext3 (rw)
/dev/hda5 on /usr/local/games type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
$ ls -ls /dev/hda
0 lrwxrwxrwx 1 root root 32 May 26 20:03 /dev/hda
-> ide/host0/bus0/target0/lun0/disc
--
Jamin W. Collins
Linux is not The Answer. Yes is the answer. Linux is The Question. - Neo
--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hda8 / ext3 defaults,errors=remount-ro 0 1
proc /proc proc defaults 0 0
/dev/fd0 /floppy auto defaults,user,noauto 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noauto 0 0
/dev/cdrom1 /cdrom1 iso9660 defaults,ro,user,noauto 0 0
/dev/hda1 /boot ext3 defaults 0 2
/dev/hda6 /home ext3 defaults 0 2
/dev/hda7 none swap sw 0 0
#/dev/hda9 <I'm 2gigs and empty>
/dev/hda10 /var/log ext3 defaults 0 2
/dev/hda11 /usr/local ext3 defaults 0 2
/dev/hda12 /usr/src ext3 defaults 0 2
/dev/hda5 /usr/local/games ext3 defaults 0 3
forseti:/shared/apps /mnt/apps nfs defaults,user,exec,noauto 0 2
/dev/sda1 /mnt/bucket ext3 defaults,user,exec,noauto 0 0
/dev/sde1 /mnt/sde1 vfat defaults,user,exec,noauto 0 0
--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="menu.lst"
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 5
# Pretty colours
color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default optons below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specifiv kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
# kopt=root=/dev/hda1 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=false
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## ## End Default Options ##
title Debian GNU/Linux, kernel 2.6.6-1-k7
root (hd0,0)
kernel /vmlinuz-2.6.6-1-k7 root=/dev/hda1 ro
initrd /initrd.img-2.6.6-1-k7
savedefault
boot
title Debian GNU/Linux, kernel 2.4.24-ar-k7
root (hd0,0)
kernel /vmlinuz-2.4.24-ar-k7 root=/dev/hda1 ro
initrd /initrd.img-2.4.24-ar-k7
savedefault
boot
title Debian GNU/Linux, kernel 2.4.22-ar-k7
root (hd0,0)
kernel /vmlinuz-2.4.22-ar-k7 root=/dev/hda1 ro
initrd /initrd.img-2.4.22-ar-k7
savedefault
boot
### END DEBIAN AUTOMAGIC KERNELS LIST
--/04w6evG8XlLl3ft--