book graphic unix and linux troubleshooting guide

My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!







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 can I mount a SCO file system in Linux or vice-versa?

Here's a clever VMWare solution: SCO 3.2v4.0 hard disk image in VMware


Hate these ads?

Brian K. White wrote:



 I know I read a readme and downloaded a patch that applied to some way
 back 2.0 or even 1.x kernel that claimed to allow mounting of divvy
 slices, but I never tried it and don't remember where I found it now. I
 think it's out there to be had, but you have to search it out. For some
 reason it's just not being accepted into the kernel tree proper.


 
 For now you can do the following:
 simply create a SCO filesystem on a raw partition manually, Linux will be
 able to mount that filesystem, and so will SCO.


 
 "mdev hd" is a script that runs fdisk, then divvy, then mkfs (among other
 things)







 
 The easiest way to go would be to run mkdev hd to add a new hard drive,
 (this creates the /dev/hdxxx device files for you) then determine the
 device name for your new raw partition (or whole drive for that metter,
 you actually do not need any partitions at all, not even one that takes up
 the whole drive)


 
 then dd if=/dev/zero of=/dev/hd10 (for whole 2nd ide drive for instance)
 then mkfs -f HTFS /dev/hd10
 then mkdir /d2
 then mount -f HTFS /dev/hd10 /d2
 then to copy your "u" filesystem, 
 cd /u; tar cf - . | (cd /d2 ;tar xf -)
 then in Linux:
 mkdir /d2
 modprobe sysv
 mount -t sysv /dev/hdb /d2


 
 Note: if Linux can't read the HTFS filesystem, you may need to try
 substituting one of the following until it works. I know for a fact Linux
 reads Xenix just fine, but Xenix fs has yucky limitations like 14
 character name length


 
   AFS     Acer Fast Filesystem
   DTFS    Desktop Filesystem
   EAFS    Extended Acer Fast Filesystem
   HTFS    High Throughput Filesystem
   S51KB   AT&T UNIX(R) System V 1KB Filesystem
   XENIX   XENIX(R) filesystem


 



ad

Brian also tells us:



Linux doesn't understand divvy, so to mount a xenix fs under linux, you just
need to have created the filsystem under xenix by writing to a whole fdisk
partition or whole-disk device, _not_ the normal way where divvy divides up
a fdisk partition into divvy partitions and then writes filesystems to
those. This means using for example /dev/hd11 as the mkfs target in xenix
for the 1st fdisk partition on the 2nd drive. IE: if migrating an old xenix
box and there is no room to make cpio/tar files, then add a 2nd drive, make
at least one fdisk partition that is only 512 Megs since a xenix filesystem
cannot exceed 512 megs anyways.



Then, in linux, you also have to know that linux and xenix count the fdisk
oartitions backwards from each other. Fdisk partition 1 (counting from 1) in
xenix, is fdisk partition 4 in linux.
xenix: /dev/hd11
linux: /dev/hdb4



Then again, if you are going to go to the trouble of adding a disk and
moving it to a linux box, you could just cpio the whole system, including
all mounted filesystems, (which might exceed 512 megs) directly to the
whole-disk device or a larger-than-512meg fdisk partition and skip creating
a filesystem.





And see http://aplawrence.com/Bofcusm/2644.html for more details on that.

If you are trying to access a crashed SCO drive with Linux, keep these things in mind:

  • Linux uses partitions for one filesystem; SCO puts multiple file systems on an fdisk partition. You might be able to use dd to pull out what you want, but you'll need to know how big the partitions are. Linux mount lets you specify an offset, so if you know where the filesystem starts, you might be able to do it that way.
  • A crashed fs will need to be cleaned- standard Linux fsck may not understand SCO filesystems- and if it *thinks* it does, it could destroy data.

See Linux drivers for SCO HTFS filesystems 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
15668383 11,568

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

pavatar.jpg
More:




Unix/Linux Consultants


SCO, OpenServer, UnixWare, software, servers, security, networks, installation, administration, troubleshooting, maintenance, Watchguard, firewalls, VPNs, e-mail. Visit us at Open Systems Computing and www.go2unix.com.


http://echo3.net/ Unix/Linux Custom Applications, Web Hosting, C/C++ Programming Courses


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



Twitter
o I'll be out gallivanting most of the day. 5:15 AM Mar 11th 2008




card_image







Change Congress