This article is from a FAQ concerning SCO operating systems. While some of the information may be applicable to any OS, or any Unix or Linux OS, it may be specific to SCO Xenix, Open Desktop or Openserver.

There is lots of Linux, Mac OS X and general Unix info elsewhere on this site: Search this site is the best way to find anything.

Unix, Xenix and ODT General FAQ

How do I learn the drive geometry of an old drive?

Contributed by Bela Lubkin:


Hate these ads?

There are many ways to learn the old parameters. Perhaps the easiest is this: connect it to a working system and dump the contents of the drive, searching for "cyls=". See, somewhere on the root filesystem on that drive are the files /usr/adm/messages and /usr/adm/syslog, both of which will have a whole bunch of messages similar to:



 
    %disk     0x01F0-0x01F7  14   -  type=W0 unit=0 cyls=2434 hds=255 secs=63


 







(slightly different format for SCSI but the concept is the same)

You're looking for the messages associated with the drive.

For example, if you had an IDE drive installed as a secondary, you'd need to do something like:



 
    strings -a /dev/rhd10 | grep cyls= > /tmp/old-parms


 


Then look through the output. You will have lost the "%disk... 0x" parts because `strings` thinks a TAB is a non-printable char. So the output might look like a bunch of:



 
   14   -  type=W0 unit=0 cyls=2434 hds=255 secs=63


  


 


lines. Pick out the appropriate entries. If they aren't all identical, choose the one that appears most frequently. Apply those parameters to the drive (see /SCOFAQ/scotec6.html#drivegeom2. Then look at it with fdisk & divvy, see if things look sane (in particular, you're looking for divvy to report sane filesystem types).

See these articles also





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


M3IP inc.

Views for this page
Today This Week This Month This Year  Overall
120771,218 2,704

/SCOFAQ/FAQ_scotec6drivegeom3.html copyright 1997-2003 (various) 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:
       - FAQ




Unix/Linux Consultants

Your ad here - $48.00 yearly!

http://thatitguy.com Business networking servers, Linux and Unix experts. In business since 1997! Windows and Exchange to Samba and Scalix migration experts.


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.m3ipinc.com Security, firewalls, ids, audits, vulnerability assesments, BS7799, HIPAA, GLB, incident handling



Twitter
  • Nov 21 07:55
    @loudmouthman: correct, but how do you prove ANYTHING like that is accurate? You can't. A text file is no better or worse than anything.
  • Nov 21 07:40
    @loudmouthman: well, a digital signature could prove it hadn't been altered. Text is no more insecure than anything else in that sense.




card_image








Change Congress


Related Posts