Re: Hard drive geometry

From: David Lord (snews_at_lordynet.demon.co.uk)
Date: 07/14/04


Date: Wed, 14 Jul 2004 17:51:36 +0000 (GMT)

On Wednesday, in article <2ll2t6Fe36thU1@uni-berlin.de>
     prenom.nom@econophone.ch "Vincent Schmid" wrote:

> "jpd" <read_the_sig@do.not.spam.it> a écrit dans le message de
> news:1089755081.152592@ente.ipberlin.com...
> > On 2004-07-13, Vincent Schmid <prenom.nom@econophone.ch> wrote:
> > > Today I have installed a second hard drive in order to write images of
> the
> > > sytem on it. After the installation, I booted again with the FreeBSD CD
> in
> > > order to make a fresh install.
> > >
> > > Now the installation program tells me that "A Geometry of 79428/16/63
> for
> > > ad0 is incorrect". (and it changes it to 4983/255/63)
> >
> > You installed the second drive as slave of the first (same controller)
>
> No, I used the second controler.
>
>
> > and thereby changing the IDE access wossname (CHS/LBA/xxx)[1] so all your
> > geometry are down the drain. And/or you accidentally hit the ``detect
> > drives'' option in the bios so it now lists details instead of ``auto''
> > for all drives. Right?
>
> Neither : the bios does not let me detect or change anything about the
> geometry of IDE hard drives, I can only "look" (This is an old Compaq
> Deskpro)
>
> There is a option called "IDE drive translation" which can be switched on or
> off, but this makes no difference.
>
>
> >
> >
> > > I thought that it was related to the insertion of the new hard drive, so
> I
> > > removed it and retried. But from now on, I can't get rid of this
> message.
> >
> > Change the CHS/LBA/xxx setting back to what it was, or just to ``auto'',
> > and you should be ok again.
>
> I do not know what it was, the bios doesn't show it (as I said there are
> dashes instead of numbers) and there is no "auto" feature... Is it possible
> that something went written somewhere on the drive ?

Normally after the first fdisk when the mbr is written to disk, the
geometry information is included. This is used by the system bios
during bootup.

On reinstalling FreeBSD it's possible to skip the fdisk stage and
go on to edit disklabel and I've found doing this always causes
problems. Going into fdisk is first required and correct geometry
should really be picked up from hdd. I've noticed on some systems
there's a conflict as to geometry returned by two different methods
used, so manual selection is required. I'd try the 4983/255/63
settings first. Don't confirm this unless a reasonable partition
table is displayed showing the existing partitions at correct
locations. With a blank disk it's anyones guess as to what will have
been used, I'd guess the 16 hds version reported by the drive. This
is no problem for FreeBSD but other operating systems rely on bios
to locate partition boundary and there can be constraints on maximum
value for number of cylinders.

I consider it essential to save partition, disklabel and mount point
(fstab) information for all systems I install, partly to avoid this
sort of problem, but also to be used to assist recovery if the mbr
should be overwritten.

David

-- 
The Reply-To: is valid for at least 30 days after posting date
David Lord  - david@lordynet.demon.co.uk


Relevant Pages

  • Re: Grub Manual ... Solved
    ... partition on that drive, which is the second 0 since all this crap runs on ... the hd?'s refer to the bios bootable devices. ... grub, from root to boot, because it actually tells grub where its boot ... 1024 cylinders for some time after larger drives were available. ...
    (Fedora)
  • Re: dd command to clear start of harddrive
    ... An updated BIOS may help. ... using a /boot partition at the start of the drive will help. ... that lets the BIOS work with larger drives. ... nuch an automatic install, apart from OK'ing a few pages, and setting up the ...
    (Fedora)
  • Re: Installed 5.2RC from CDROM, fails to boot in manager
    ... to be able to determine the geometry, but it must end on a cylinder boundary ... virtual cylinder except possibly on 10-20 year old drives. ... The BIOS has ... > partition that you delete in FreeBSD later. ...
    (freebsd-current)
  • Geometry and Mirror
    ... I used to install FreeBSD and when it came to fdisk, ... If this geometry is incorrect or you are ... The BIOS setting was autodetect for both drives. ... "FreeBSD does not use the BIOS, and does not know the ``logical BIOS ...
    (freebsd-questions)
  • RE: Drive Geometry -- confusion.
    ... > Drive Geometry confusion. ... > The following are the only settings offered by my BIOS: ... limitations of "BIOS" disk addressing, ... down the DEL key) may tell you about some ATA/IDE drives, ...
    (freebsd-questions)