Quote:
Originally Posted by alan_ri
Please post the output of the fdisk -l when you boot with the floppy disk(I just want to check out something).
|
Hi Alan
Just a quick reply (long post) with the output you wanted, I will spend more time with this at the weekend, but I thought I would post this now for you so you could continue your checking.
One apology to make, I seemed to be having a drive cable connection problem last night, which is the reason my Linux drive was coming up as (HD3). It should actually have been (HD1). I have now replaced the ide cable on the primary drive. Sorry about that.
First the drives as Grub sees them when booting from the floppy disk:
I chose to edit the boot line starting with root (HDx), then pressed tab to let grub complete it. I discovered the following:
(HD0) - My 250Gb IDE 0 Primary Master boot drive (Windows XP)
(HD1) - My 120Gb IDE 1 Primary Master Linux Drive (grub installed to this boot sector)
(HD2) - My 200Gb Sata drive connected to sata channel 3
(HD3) - First Sata drive in my Raid 0 Array connected to sata channel 1
(HD4) - Second Sata drive in my Raid 0 array connected to sata channel 2
HD3 and HD4 are two seperate 80Gb drives which are connected to the on-board raid controller through the first two sata channels.
Note at this point that this is exactly the same order as the drives are listed in the BIOS of the computer.
Okay, now for the fdisk -l listing from within Linux:
Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xbbbfe4d5
Device Boot Start End Blocks Id System
/dev/sda1 * 2 24321 195350400 f W95 Ext'd (LBA)
/dev/sda5 2 23644 189912366 7 HPFS/NTFS
/dev/sda6 23645 24321 5437971 7 HPFS/NTFS
Warning: ignoring extra data in partition table 5
Warning: ignoring extra data in partition table 5
Warning: ignoring extra data in partition table 5
Warning: invalid flag 0xffff of partition table 5 will be corrected by w(rite)
***
*NOTE* This is only a data drive not a boot drive. I only use this drive in Windows so please ignore any errors that appear above.
***
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x390dcf1d
Device Boot Start End Blocks Id System
/dev/sdb1 * 2 19458 156288352+ f W95 Ext'd (LBA)
/dev/sdb5 ? 267351 534700 2147483647+ ff BBT
Disk /dev/sdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/sdc doesn't contain a valid partition table
Disk /dev/sdd: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xdf89df89
Device Boot Start End Blocks Id System
/dev/sdd1 * 1 11276 90574438+ 7 HPFS/NTFS
/dev/sdd2 11277 30401 153621562+ f W95 Ext'd (LBA)
/dev/sdd5 11277 30401 153621531 7 HPFS/NTFS
Disk /dev/sde: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xeed1eed1
Device Boot Start End Blocks Id System
/dev/sde1 * 1 13995 112414806 83 Linux
/dev/sde2 13996 14593 4803435 f W95 Ext'd (LBA)
/dev/sde5 13996 14593 4803403+ 82 Linux swap / Solaris
As suspected, Linux is detecting the sata drives first and the ide drives second.
Now for the files in the /grub/boot directory on the floppy:
Device.map reports the following:
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc
(hd3) /dev/sdd
(hd4) /dev/sde
Drives appear in Linux detection order not bios order.
Grub menu.lst contains the following relevant lines:
default=0
timeout=10
splashimage=(HD4,0)/grub/splashxpm.gz
hiddenmenu
title Fedora (2.6.23.1-42.fc8)
root (HD4,0)
kernel /vmlinuz-2.6.23.1-42.fc8 ro root=LABEL=/1 rhgb quiet
initrd /initrd-2.6.23.1-42.fc8.img
title Other
rootnoverify (hd0,0)
chainloader +1
I noticed that it lists the Linux root on (HD4) the same as device map, but bios actually lists it as (HD1)
I hope this is of some help to you, if I have missed anything please let me know and I will post it up for you. Also if I have posted some wrong info please let me know, I am still relatively new to this but I am learning very fast... :-)
Hope this helps
Regards
Steve (ShadStar)