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:


cartoon
Need eyes on the ground at your customer's site?
Installation and light training Boston and New England
Reliable and experienced, punctual and professional.


 
   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




Comments /SCOFAQ/FAQ_scotec6drivegeom3.html


Add your comments

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


ad

Views for this page
Today This Week This Month This Year  Overall
1184779 2,265

/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 - $24.00 yearly!

http://www.breakthru.com.au SCO (Openserver and Unixware), Unix, Solaris and Linux Consulting services including: Secure Networking Solutions; Linux based Firewalls; Backup Solutions; Secure Home to Office Network Setup; Phone, Remote and On-Site Support available - Satisfaction Guaranteed!


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.


http://www.cleverminds.net Need expert advice? Want a second opinion? CleverMinds is a one-stop-shop for a wide range of technology solutions. We support Unix, Linux, SCO as well as CMS, ecom, blogs, podcasts, search engines consulting and more. Contact us at web2.0@cleverminds.net 0r (617) 894-1282




card_image








Change Congress

Related Posts