/dev/sda and /dev/hda

Karl Larsen k5di at zianet.com
Wed Oct 24 11:59:03 UTC 2007


Tim wrote:
> On Tue, 2007-10-23 at 18:31 -0600, Karl Larsen wrote:
>   
>> If I run fdisk from hd 1 which is booted I find hd 2 is at /dev/sdf
>> and hd 1 is at /dev/sda. If I boot from hd2  I find it is at 
>> /dev/sda now and hd1 has changed to /dev/sdb. 
>>     
>
> Please clarify how you're choosing which device to boot.  BIOS or GRUB?
> If GRUB, please show us your current configuration.  Remapping options
> may confuse things, for instance, and may not be needed.
>
>   
    First BOIS. It is all done automatically and both settings are on 
"auto". I can find no way to set them otherwise.

title Fedora (2.6.22.9-91.fc7)
        root (hd0,5)
        kernel /vmlinuz-2.6.22.9-91.fc7 ro root=/dev/sda5  quiet
        initrd /initrd-2.6.22.9-91.fc7.img
title Fedora (2.6.22.7-85.fc7)
        root (hd0,5)
        kernel /vmlinuz-2.6.22.7-85.fc7 ro root=/dev/sda5  quiet
        initrd /initrd-2.6.22.7-85.fc7.img
title Fedora (2.6.22.5-76.fc7)
        root (hd0,5)
        kernel /vmlinuz-2.6.22.5-76.fc7 ro root=/dev/sda5  quiet
        initrd /initrd-2.6.22.5-76.fc7.img
title Fedora f7-64
        rootnoverify (hd1,2)
        makeactive
        chainloader +1

As you see I call grub for the new f7-64 bit with chainloader. It looks 
like:

#boot=/dev/sdb
default=0
timeout=5
splashimage=(hd1,2)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.21-1.3194.fc7)
        root (hd1,2)
        kernel /boot/vmlinuz-2.6.21-1.3194.fc7 ro root=LABEL=/ rhgb quiet
        initrd /boot/initrd-2.6.21-1.3194.fc7.img
[root at k5di grub]#

This is odd because to get the grub.conf on the f7-64 I had to mount -t 
ext3 /dev/sdf3.

A lot does not make sense. But it does work.






-- 

	Karl F. Larsen, AKA K5DI
	Linux User
	#450462   http://counter.li.org.




More information about the users mailing list