reconstructing dparam disk geometry changed


What is this stuff?

If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):



From: Bela Lubkin <belal@caldera.com>
Subject: Re: OSR 5.0.6a Strange problem after BIOS upgrade FLASH and IDE
Date: Wed, 16 Jan 2002 23:05:26 GMT References: <20020113144645.I14415@mammoth.ca.caldera.com> <Pine.SC5.4.43.0201161231040.3858-100000@xenau105.zenez.com>


Hate these ads?



Boyd Lynn Gerber wrote:



> On Sun, 13 Jan 2002, Bela Lubkin wrote:
> > Since you have a new blank-slate Unix install on the 80GB drive, and
> > have the 40GB drive in place, you're most of the way there.  You need to
> > do something like:
> >
> >   strings -a /dev/rhd20 | grep cyls= > /tmp/old-parms

> I found 9693 128 63 as the correct parameters.

> >   dparam /dev/rhd10                         # print existing parms
> >   dparam /dev/rhd10 cyls hds ... cyls secs

> dparam /dev/rhd20 9693 128 0 0 0 8 19157 63 and setting the bios to auto
> was the solution.

> I have found through a bit of testing that after a HD has been installed
> and working to not run the BIOS HD detect when adding a new HD.  It is
> better to manually set it up with the proper HD settings.

> Thanks to every one.  I was finally able to recover my friends data.














You seem to think that the most important thing learned here is "don't
run BIOS HD detect after the HD is already working with OpenServer".  I
say you've learned something far more important (which ought to be
written up for the FAQ).



That is: if you _do_ run the BIOS HD detect, and lose control of the
drive, you can recover it.



First, learn the "right" parameters according to Unix.  You might have
previously recorded them, might be able to `strings` the drive, might be
able to examine /usr/adm/messages or /usr/adm/syslog from a prior backup
of the drive.  Or you might, in fact, be able to use one of the BIOS's
parameter sets (does 9693/128/63 match any of the configs the BIOS came
up with?)  -- that is, it may be the case that even with the BIOS
claiming the same parameters as it always did, you still need to have
Unix restamp the drive.


ad



Second, restamp the drive.  That means getting the Unix kernel up and
running, could be from a boot floppy, the install CD with "tools", a 3rd
party crash recovery floppy (RecoverEDGE, AirBag, etc.), or by putting
in a different hard disk and doing a minimal install.  Get to a shell
prompt.  Find or create a device node that points to the drive in
question (/dev/rhd00 if it's primary/master; could be rhd10 or something
else).  Run:



  dparam -w /dev/rhd00
  dparam    /dev/rhd00
            # or rhd10 or whatever



to print existing parameters, then run:









  dparam    /dev/rhd00 cyls hds ppp qqq rrr sss cyls secs
            # or rhd10 or whatever



where ppp/qqq/rrr/sss are the middle 4 of the existing parameters, and
cyls/hds/secs are the "right" parameters.  "cyls" gets stamped twice,
once for the size of the drive and once for landing zone.



Third, go into BIOS setup and set the drive back to "auto".



Fourth, if necessary, rearrange drives (e.g. if this was once, and is
desired again to be the boot drive, move it back to primary/master).



This won't necessarily work in all cases, it's just _one_ discovered way
of recovering from an IDE disk geometry problem.  Also, steps "Second"
and "Third" might need to be done in the reverse order, and you will
probably have to change things again in the BIOS if you physically
rearrange drives.



>Bela<





Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner


Views for this page
Today This Week This Month This Year  Overall
128148 921

/Bofcusm/1410.html copyright 1997-2004 Bela Lubkin All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

More:
       - Bela




Unix/Linux Consultants

Your ad here - $48.00 yearly!

SCO, OpenServer, UnixWare, software, servers, security, networks, installation, administration, troubleshooting, maintenance, Watchguard, firewalls, VPNs, e-mail. Visit us at http://opensystemscomputing.com and www.go2unix.com.


larryi@ccamedical.com SCO OS5, Debian Linux, RedHat Linux, MySQL, Apache, AJAX development using dXport/dL4/Unibasic, Windows Connectivity, Sharing Resouces, Automation, Shell Scripting


http://www.vss3.com SCO/Caldera OpenServer, Unixware & Linux. Tarantella & Non-stop Clustering



Twitter
  • Nov 18 20:41
    I'll be out all day Wednesday the 19th, hard to reach even by phone. Leave a message and have patience.
  • Nov 18 10:07
    What am I doing? Not doing what I WANT to be doing! Oh, well, in every life a little work must fall..




card_image








Change Congress


Related Posts