APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS











(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Home > News Posts > mounting a xenix drive ––>Re: Lost Partitions onXenix..
Printer Friendly Version




News Group Posts

mounting a xenix drive




From: Steve Fabac <smfabac@att.net>
Subject: Re: Lost Partitions on Xenix..
References: <pBoY6.38063$uR5.3805612@news20.bellglobal.com> 
Date: Fri, 22 Jun 2001 00:02:18 +0100

JJ wrote:
> 
> Here's what happened, (please don't tell me what we did wrong here...we
> know..):
> 
> 1) Removed an existing primary/only drive from a xenix machine with
> intention of copying data to a Unix machine (already existing with multiple
> drives)

I have done this many times when upgrading a client from Xenix to SCO
UNIX. I have a 1G IDE Maxtor with Openserver 5.0.0 Enterprise on one
partition, SCO Xenix 2.3.4 on another, and 32M Dos on a third. 



The Openserver 5.0.0 is configured with five hard drives hd00, hd10,
hd20, hd30, and hd40. These are various combinations of IDE and SCSI 
(on AHA-1542 and AHA-2940) so that I can mount IDE or SCSI Xenix 
disks and the new system's SCSI disk and transfer files. 

> 
> 2) Unplugged existing secondary master IDE drive from Openserver 5.0.4
> machine, which had cyls/head/sectors set in bios (not auto)
> 
> 3) Plug in xenix drive as secondary master on IDE chain

Bet your 5.0.4 system was set for LBA to support large IDE drives. 
Xenix MUST be run in native (un-translated) mode. You should have
detected the IDE drives in CMOS and made sure that you chose "large" 
for untranslated (non LBA).

Also, did you add Xenix file system support to you 5.0.4 system kernel?
With out that, you would not be able to get the data off the disk. 

> 
> 4) Run 'mkdev hd' - add IDE drive - added device /dev/rdsk/4s0, showed
> existing XENIX partition, and reported 'hard disk initialization complete'

There should have been no need to run mkdev hd. Just fdisk to see if
you can see the disk and then divvy to read the partition table. 














you might have to run divvy hd1X where X is the Xenix partition as shown
by fdisk. Use divvy to name the partitions. 

Openserver 5.0.0 for sure can access the Xenix divvy table. You should 
only have had to name the partitions on the Xenix disk and then exit,
installing the division as shown.  Note: Be sure that none of the
division are marked "yes" for new or divvy will clean them out and you
will lose all your information in the partition. 

> 
> 5) Reboot Unix server, invoke mkdev hd again - Instead of invoking divvy, it
> added new device /dev/rdsk/5s0, no drive paramters (since there was no drive
> for this...)
> 
> 6) Realized that divvy wasn't going to be invoked by mkdev hd, we attempted
> to manually run divvy on /dev/rdsk/4s0, it said a valid division table was
> not found.
> 
> 7) We realized at this point the drive paramaters were that of the old
> (original) Secondary Master IDE (a 7GB Drive), and therefore changed them in
> both the bios and using dparam to the correct paramaters for this 204MB IDE
> drive

Yikes! dparam is not needed in this case. Just use the IDE drive
detection in CMOS and choose non LBA.


> 
> 8) Still unable to run divvy on the drive, and now we are out of options...
> 
> Any help or advice on this?  It is over at data recovery labs now, but I am
> afraid they may come back and say we are screwed...and I believe you all may
> know for certain if we are...
> 
> Help?
> 
> Dave Redit

I would put the drive back in the Xenix box, boot your Xenix emergency
boot floppy and type mount -r /dev/hd0root /mnt then see what is on the
disk. You may have to run the Xenix dparam to reset the cyl, heads, and
sectors back to non LBA values. also run fdisk an make sure that the
Xenix partition is marked active. 


If you did not run divvy -I or divvy -m  from the 5.0.4 system on the
hard disk, you probably can fix the parameters and get the disk booting 
in the Xenix box again. Even if you did, you may be able to run 
"divvy -c 1 -b 1 -p 0 -I" from a Xenix emergency boot floppy and re-set
the Xenix division table: DO THIS ONLY ON A COPY OF YOUR DISK. NOT
ON THE ORIGINAL XENIX DISK. FOR THIS TO BE SUCCESSFUL, YOU MUST HAVE
THE EXACT LAYOUT OF THE XENIX DISK AVAILABLE SO THAT YOU CAN ENTER THE
STARTING AND ENDING BLOCKS. BE SURE THAT YOU PREVENT CREATING NEW FILE
SYSTEMS. 


Good luck.


                                       Steve Fabac
                                        S.M. Fabac & Associates
                                         816/765-1670


If this page was useful to you, please click to help others find it:  

Your +1's can help friends, contacts, and others on the web find the best stuff when they search.

Comments?



Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



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

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.

g_face.jpg

This post tagged:

       - SCO_OSR5
       - Xenix




Unix/Linux Consultants

Skills Tests

Guest Post Here