Re: Disk geometry from /sys



In article <20080409212840.GB2160@xxxxxxxxxxxxxxxxxxx> you wrote:
Simplest way to find out what geometry a disk pretents to have is to ask
fdisk, and since the only use for the information is when creating
partitions, then fdisk's opinion is really all that seems to matter.

Unfortunatelly there is also bios' view of the geometry, which is especially
a problem for boot loaders. Just another hint:

# lilo -T geom

bios=0x00, cylinders=80, heads=2, sectors=18
( 1.44Mb 2,880 sectors) C:H:S supported (PC bios)

BIOS reports 2 hard drives
bios=0x80, cylinders=527, heads=255, sectors=63 vol-ID: 2C731DD1
( 4.33Gb 8,467,199 sectors) LBA32 supported (EDD bios)
bios=0x81, cylinders=527, heads=255, sectors=63
( 4.33Gb 8,467,199 sectors) LBA32 supported (EDD bios)

(um yes my system is somewhat outdated, thats an adaptec scsi bios.

Gruss
Bernd
--
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: Linux drive and partition mapping
    ... > possible, though normally forbidden, to have partitions overlap this way. ... > Try booting from a rescue CD and examining the fdisk -l and contents of both ... >> The Linux partitions are definetly on hdb and not hda. ... I didn t change anything to my BIOS to do weird stuff. ...
    (comp.os.linux.setup)
  • Re: Installing a new hard drive
    ... The bios ... > create partitions, ... To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org ...
    (Debian-User)
  • Re: fdisk question (long)
    ... > I have a 120G HDD, in the BIOS is set as LBA. ... > I've used sysinstall to make partitions and the result is bellow: ... BIOS sector numbering starts with sector 1 ... The CHS descriptor has overflowed -- nolonger meaningful. ...
    (freebsd-questions)
  • Re: Update the BIOS
    ... to boot the Windows 2000 install CD-Rom. ... When the Windows 2000 Professional ... partitions and the unpartitioned spaces are listed for each physical hard ... mb or hardware manufacturer's web site for the latest bios ...
    (microsoft.public.win2000.general)
  • FreeBSD/FDisk geometry problems - SOLVED!
    ... the problem is that FreeBSD's FDisk and the motherboard BIOS ... while keeping the total sector count the same). ... SCSI drives, ...
    (freebsd-questions)