A/UX 2.0.1 Hard Disk: Making A Copy


I purchased A/UX 2.0.1 a long time ago, on hard disk only. Now I need to transfer A/UX from one hard drive directly to another. I'm also using third party formatting software on the new disk, and my vendor believes the software should work with A/UX 2.0.

Mounting a new disk and copying the files sounds relatively straight forward, but creating the device drivers is something I don't understand. I have some experiences that leads me to believe that I can't simply copy the /dev directory, although most of the rest of A/UX is easily movable.

How do I do this?


A/UX 2.0 is basically the same as A/UX 3.x.  The main change is the version of the Macintosh System Software used in the Mac environment.

The following sequence of commands will create a duplicate of the directory structure of the source drive onto the target drive.

While logged in as root, follow these steps:

Step 1
------
Mount the drive you want to copy to (target) on /mnt

mount /dev/dsk/c5d0s0 /mnt  (Replace SCSI ID and partition as appropriate)

Step 2
------
Go to the "/" directory, perform the copy, create the mnt directory in /mnt

cd /
find . -print | grep -v /mnt | | grep -v /lost+found | cpio -pdlmuv /mnt
mkdir /mnt/mnt
chmod 777 /mnt

Step 3
------
When the copy is finished, unmount the target disk and perform an fsck

umount /mnt
fsck /dev/dsk/c5d0s0

Now you have a copy of the source drive, complete with the /dev directory.
Published Date: Feb 19, 2012