Re: Disk geometry from /sys



Why do you want to know what cylinder size the hard disk pretents to
have? What use could it be? Harddisks have varying numbers of sectors

It matters on a CHS addressed device - vaguely.

drive. All that matters on a modern drive is the total number of
sectors since all access is done by requesting a specific sector number
starting from the begining of the drive. Where it is physically located
is none of software's business, and it may not even be adjacent to the
sector with a number right next to the requested one due to defect
management and various optimizations.

And some other OS's make certain assumptions about layout that must agree
with that OS view of the disk. A good general rule is to believe the
partition table information if present and if not use SG_IO to issue an
IDENTIFY to any ATA or CFA drive to see how it has mapped the device.

Even better make use fo the existing tools whenever possible - disk
partitioning is more like magic than science

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



Relevant Pages

  • Re: grub error 18
    ... because I thought the EXTEND partition would be the second partition in ... Selected cylinder exceeds maximum supported by BIOS." ... the disk using CHS addressing (that is: telling the BIOS a head number, ... sectors per track gave 32k bytes per track, ...
    (uk.comp.homebuilt)
  • Re: How to align the hard disk
    ... I have a IO performance problem while I'm using SAP frontend at my Windows XP PC. ... they said that this was due to misaligned disk. ... My question is how to change Partition starting offset value to 32768 instead of 32256. ... the declaration is 63 sectors per track, then the first track contains sectors ...
    (microsoft.public.windowsxp.hardware)
  • Re: BAD SECTORS ERROR
    ... > It says it has 8 bad sectors on it. ... > primary partition c:\ drive to correct this error. ... > 22368404 KB available on disk. ... > I removed the Hardrive from the 1st server and placed it ...
    (microsoft.public.win2000.general)
  • Re: How to align the hard disk
    ... I downloaded PartinNT and say the disk ... I have 60GB HDD and I have two partition. ... disk geometry. ... the declaration is 63 sectors per track, ...
    (microsoft.public.windowsxp.hardware)
  • Re: today the ext3 on my fc6 T43 crashes :(
    ... It recognize some errors, fix it, but the system is not usable. ... Partition 1 does not end on cylinder boundary. ... Sometimes this is indicative that the disk is beginning to fail - especially if more and more sectors show up as bad over time. ...
    (Fedora)