Re: partx

From: Andre Hedrick (andre@linux-ide.org)
Date: Wed Mar 22 2000 - 19:19:05 EST


Andries,

I just poked my nose back into the GEOMETRY issues.....
I made fixes to the kernel code to allow "fdisk" with changes to behave
like "cfdisk"; however, I get to keep the classic "fdisk" console
interface!!!!!!

All I did was to examine what really needs to be addressed for the larger
drives.

root@p6dnf% fdisk /dev/hdg

The number of cylinders for this disk is set to 79406.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hdg: 16 heads, 63 sectors, 79406 cylinders
Units = cylinders of 1008 * 512 bytes

   Device Boot Start End Blocks Id System
/dev/hdg1 1 79406 40020592+ 83 Linux

3ware:/src/fdisk # ./fdisk /dev/hdc

The number of cylinders for this disk is set to 66305.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hdc: 16 heads, 63 sectors, 66305 cylinders
Units = cylinders of 1008 * 512 bytes

   Device Boot Start End Blocks Id System
/dev/hdc1 * 1 33 16600+ 83 Linux
/dev/hdc2 34 4195 2097648 83 Linux
/dev/hdc3 4196 66305 31303440 5 Extended
/dev/hdc5 4196 8357 2097616+ 83 Linux
/dev/hdc6 8358 12519 2097616+ 83 Linux
/dev/hdc7 12520 16681 2097616+ 83 Linux
/dev/hdc8 16682 20843 2097616+ 83 Linux
/dev/hdc9 20844 25005 2097616+ 83 Linux
/dev/hdc10 25006 66305 20815168+ 83 Linux

3ware:/src/hdparm-3.9 # hdparm.big -i /dev/hda
/dev/hda:
 Model=QUANTUM FIREBALL CX13.0A, FwRev=A3F.0F00, SerialNo=134911811509
<snip>
 Kernel Drive Geometry LogicalCHS=25228/16/63 PhysicalCHS=25228/16/63

3ware:/src/hdparm-3.9 # hdparm.big -i /dev/hdc
/dev/hdc:
 Model=IBM-DPTA-373420, FwRev=P71OA30A, SerialNo=JXYJXA05393
<snip>
 Kernel Drive Geometry LogicalCHS=66305/16/63 PhysicalCHS=66305/16/63

root@p6dnf% hdparm.big -i /dev/hdg
/dev/hdg:
 Model=Maxtor 54098U8, FwRev=DA620CQ0, SerialNo=K802S4EC
<snip>
 Kernel Drive Geometry LogicalCHS=79406/16/63 PhysicalCHS=79406/16/63

root@p6dnf% hdparm.big -i /dev/hdb
/dev/hdb:
 Model=QUANTUM FIREBALL ST3.2A, FwRev=A0F.0800, SerialNo=153725642425
<snip>
 Kernel Drive Geometry LogicalCHS=782/128/63 PhysicalCHS=6256/16/63

Andre Hedrick
The Linux ATA/IDE guy



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:37 EST