scsi disk but grub uses hda
hi
i've a scsi hard disk(sda) Code:
[root@benchabane benchabane]# parted /dev/sda print Code:
[benchabane@benchabane ~]$ su Code:
# grub.conf generated by anaconda I just dont understand why?cause i was trying to add windows to the grub bootloader ,i did it anyway but i don't get this point? thx in advance |
open terminal
sudo os-prober sudo update-grub will detect wins |
(hd0) is not /dev/hda. It is the first hard drive detected by your BIOS. In your case, it's a scsi drive.
|
(hd0,0) does not mean to be the HDA disk. It denotes the address of the first harddrive.
|
Grub does not use letter to identify drives or partitions. So sda can be (hd0)in Grub, hda can also be (hd0) as indicated above by gd2shoe, it is the first drive detected. The output from commands like fdisk showing sda or hda have little to do with Grub notation. Grub refers to drives with (hd) and count physical drives from zero, partitions from zero in Grub Legacy and partitions from one in Grub2. The only letter you will see in this type of Grub entry will be the (hd...).
|
Grub does not use letters to identify drives or partitions it uses numbers. So sda can be (hd0)in Grub, hda can also be (hd0) as indicated above by gd2shoe, it is the first drive detected. The output from commands like fdisk showing sda or hda will not necessarily correspond to Grub notation. Grub refers to drives with (hd) and counts physical drives from zero, partitions from zero in Grub Legacy and partitions from one in Grub2. The only letters you will see in this type of Grub entry will be the (hd...).
|
Yes it make sense to me now.sda1 is for the grub (hd0,0)wich contain in my case the windows boot, and sda2 is (hd0,1) with contain fedora boot.
by the way EDDY1 ,i think os-prober concerns only Debian,it's one of his installer's features.http://joey.kitenet.net/code/os-prober/ thx a lot you guys. |
Also an interesting note, SATA, SCSI and USB drives are all recognised as sda, sdb etc while other types are hda, hdb etc
|
It's in ubuntu also and any packages that use grub2 as long as grub2(grub-pc) is installed.
|
yeah sure EDDY1,grub-pc does do that,but it exists only in DEB format.i'm trying to convert it to RPM using Alien.
thx for the tip |
All times are GMT -5. The time now is 12:00 AM. |