What parts of disk geometry are relevant?

From: James Quick (jq_at_quick.com)
Date: 08/13/03

  • Next message: James Quick: "Questions about stability of snapshots and vinum in 5.1"
    Date: Tue, 12 Aug 2003 20:19:45 -0400
    To: current@freebsd.org
    
    

    I'm setting up 5.1 with a couple of new drives. Sysinstall, and for
    that matter,
    any combination of command line tools, all seem have different ideas
    about
    geometry. Sysinstall would use any of the numbers I threw at it, and
    even after using sysinstalls values, fdisk and bsdlabel find reasons to
    gripe.

    Configuration data:
    The geometry from the manufacturers docs, which is reported several
    times at boot, is: 152627MB <ST3160023A> [310101/16/63].
    The geometry mandated by sysinstall is: 19475/255/63
    (The drive physically has 2 platters and 4 heads - but at least 16
    is a multiple of that)

    Both sysinstall-help and most of my web research says that the
    way to be sure about what to use is to boot to dos or windows and
    see what it says. That is hardly convenient as my only use of Intel
    based systems has been confined to {NeXT,Open}Step and now
    FreeBSD. What does DOS know that FreeBSD doesn't?

    I'm migrating from a 2+ year old 5.0 installation, which is in
    production
    use, so I don't have the luxury of just playing with the parameters to
    see what boots and what doesn't.

    As far as compatilbilty goes, I need 5.x BootEasy, the loader, and the
    kernel to be happy about all the slices+partitions on the drive.
    If there is any difference, Compatibility with 4.x as well would be
    nice but is not required.

    I'll ask two questions first, since yes answers will relegate the others
    to matters of idle curiosity.

    1. If newfs succeeds for a ufs2 partitions extending beyond 120GB,
    does that mean the configuration is OK?

    2. Is sysinstall's cryptic refusal to use the reported values, (and
    astoundingly
    poor choice of alternate values), solely to ensure that Wintel OSes
    sharing
    the drive don't get confused?
    (c'mon 255 heads? And don;t get me started about a cylinder size
    whose factors are all prime!!)

    If the answer to either of those is no, I would appreciate further
    clarification.

    The rest of my confusion surrounds related issues of geometry, and
    whether or not they are important, or irrelevant.

    The original design of ffs/ufs mkfs was heavily dependent on geometry
    for performance and reliability. These are memories from v7, but
    I seem to recall that rpm, skew factors and interleave were important,
    and that incorrect vs. correct values had significant impact on both
    performance and reliability. bsdlabel -A reports 3600 for rpm (a very
    old default) interleave is 1, and the rest are 0. Are these just legacy
    structures on disk, or is anyone paying attention to them?

    Fdisk reports cylinder numbers which obviously depend on the geometry
    used when the partition (slice) was written. It always complains that
    the in-core disk label will not work beyond cylinder 1. Is this more
    pandering to DOS or can I ignore it?

    Bsdlabel complains about c partitions not covering the whole unit.
    I checked and found that sizes of all defined partitions sum to c, and
    that the size of c equals the size of the slice reported by fdisk.
    I checked the code, and it seems to be saying that by 'c' partition
    in a slice doesn't cover the whole drive. In that case, the warning
    just seems out of place. Is that what's going on?

    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: James Quick: "Questions about stability of snapshots and vinum in 5.1"

    Relevant Pages

    • Re: Clone a Windows XP with dd
      ... >>I'd only expect this to work if the two drives have identical geometry. ... generally use CHS - hence the 1024 cylinder issue in locating bootable ... For booting there are constraints on where partitions start, ...
      (comp.unix.misc)
    • Sysinstall and drive geometry
      ... configuring drives and installing FreeBSD 5.2 on an Intel box. ... 2 channels provided by the motherboard (FreeBSD probe reports ... The problem I am having is that when ever I go into sysinstall either from ... the installer or /stand/sysinstall it complains that the drive geometry is ...
      (freebsd-questions)
    • Re: Disk geom and freeBSD 6.2 on lenovoe T60 thinkpad laptop
      ... this is my second attempt to install freeBSD 6.2 on the ... At the sysinstall Main Menu which appeared next, ... Next is the fdisk message. ... A geometry of 232581/16/63 for ad4 is ...
      (comp.unix.bsd.freebsd.misc)
    • Re: Why is disklabelng a new drive so difficult?
      ... I actually started writing my own partitioning/labelling tool based on libdisk, as part of a custom install CD I was building, but discovered that it did not support non-disk devices... ... explanation on disk geometry, and why it is/isn't relevant in this day and age. ... The big scary warnings sysinstall likes to throw up made me think it must have some significance, but from days of searching/reading, the general gist I came up with is that geometry was a largely obsolete concept, largely only relevant if you have other operating systems on the drive, in which case all OSes needed to agree on the drive geometry in order for the fdisk slice table to make any sense to all of them... ... If they are needed, should some of the sysinstall magic be added to the command line fdisk tool as well, so it can perform the same modifications if it detects non-sane BIOS C/H/S values? ...
      (freebsd-questions)
    • Re: 5.2 Install CD doesnt detect all scsi drives
      ... At the sysinstall menu, hit scroll lock, then arrow up and check ... console redirect in the bios, it stops outputting once the loader starts ... drives on the motherboard are part of the RAID (since it is Zero ...
      (freebsd-current)