Messages in this thread | | | Subject | Need to force IDE geometry | From | John Huttley <> | Date | 15 Feb 2002 12:04:44 +1300 |
| |
Hello,
I have a problem with the way the kernel handles geometry.
AFAIK, if a disk has partitions which were created in LBA mode, the kernel automagically puts the disk into LBA mode. (good)
If the disk has no partitions.. then If its the first disk it will be in LBA mode (good) Else it will be in CHS mode. (ungood)
There seems to be no way to tell the kernel to put the second disk into LBA mode. Sure, you can force the geometry as a boot option, but that is not the same as putting it in LBA mode.
Any bios settings to put the disk into LBA are ignored by the kernel.
This causes problems when installing a RAID enabled linux onto a dual IDE system. RedHat 7X suffers this and so does the Mondo Rescue restore system. It makes it very difficult to setup 2 disks so they are of identical geometry. Trust me, its a PINA.
Are there any ioctl's controlling this? Can we create a boot option? Or simply read the bios setting? Or just default to LBA rather than CHS?
Any help gratefully received. As I'm not on this list, would you please CC me.
Regards
John
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |