[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

grub harddisk labels



I recently switched to using grub as my bootloader from lilo. After changing the config, my system now has swapped hda and hdb.

It was initially setup to boot from hdb, but I wanted to boot from hda, so I added a section in the config file (second stanza below):

title           Libranet GNU/Linux, kernel 2.4.20 (hdb)
root            (hd1,0)
kernel          /boot/vmlinuz-2.4.20 root=/dev/hdb1 ro hdc=scsi hdd=scsi
savedefault
boot

title           Libranet GNU/Linux, kernel 2.4.20 (hda)
root            (hd0,2)
kernel          /boot/vmlinuz-2.4.20 root=/dev/hda3 ro hdc=scsi hdd=scsi
savedefault
boot

title           Libranet GNU/Linux, kernel 2.4.20 (single user mode)
root            (hd1,0)
kernel /boot/vmlinuz-2.4.20 root=/dev/hdb1 ro hdc=scsi hdd=scsi single
savedefault
boot


Now, when I boot, it thinks hda is hdb, as demonstrated by the output of /bin/mount (which matches /etc/fstab):
/dev/hdb1 on / type reiserfs (rw)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw,devmode=0660,devgid=432)

even though I am _positive_ /hda is mounted (I can tell by the contents and the size).

If I use hdparm to set options on the drive, I must specify 'hda', so at least hdparm has them straight.

My system seems to be running fine with this confusion, but I'd like to get it cleared up just in case it might cause a problem in the future.

Any ideas?

--
Bobman



Reply to: