04-13-2006
I take it this is a separate pc?
Tar doesn't work quite well when backing up system files, so use cpio instead.
Try the following:
Boot the new system with the rescue disks, set up the partitions.
On the origanal pc insert a blank tape and type:
find "/stand" -depth -print -mount | /bin/cpio -ovcB -O /dev/(tape device)
then copy the / filesystem using a separate tape using the same command as above substituting the / for the /stand.
Once the stand filesystem is copied onto the tape, place in the new PC and type:
mkdir stand <enter>
chmod 777 stand <enter>
mount /dev/boot /stand <enter>
cd stand <enter>
cpio -iudvcmB -I /dev/(tape device)
unmount the /stand filesystem
Place the / filesystem tape into the new pc and type the following:
mount /dev/hd0root /mnt <enter>
cd /mnt <enter>
cpio -icvudA -I /dev/(tape device)
unmount the /mnt filesystem when tape is done
this will put the / filesystem on the hard drive.
Type the following to set up the new hd boot sequence:
/bin/dparam -w <enter>
dd if=/etc/hdboot0 of=/dev/hd0a <enter> (this is the default hd value, if your hd is different then change this parameter)
dd if=/etc/hdboot1 of=/dev/hd0a bs=1k seek=1 <enter> (if you changed the hd value in the above entry, this one must be the same)
/etc/haltsys to reboot
Upon reboot, make a stand directory and chmod 777 it. Add your other mount points and their chmod values.
Then type:
isverify -I <enter>
shutdown -g0 <enter> answer "y" to the question
Once rebooted, you can backup your other filesystems to tape and put them on the new system.
If you have any questions, pls let me know.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
HI ALL,
I need to backup HDD with SCO UNIX. I need to have a full functionaly backup of this hard disk. Does anybody have any tool or subsription how to do it. I tried some SW, but after when I tried to use this copy of my original disk "can not find a root directory". Thanks in advance. (1 Reply)
Discussion started by: jardas
1 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
I'm trying to set up a system that will backup one hard drive to another automatically, so in case the main disk fails, I can just swap it out for the backup. Hopefully someone out there knows what I am talking about. Anyway, can anyone recommend any programs for Sco Unix 5 that will... (0 Replies)
Discussion started by: wbishop311
0 Replies
3. SCO
i have 2 server, one is running on windows and the other one is running on sco. both have their own dds4 drive but the sco server is not malfunctioning. is it possible to backup data from sco server to our windows server remotely.
thanks (1 Reply)
Discussion started by: yackim
1 Replies
4. SCO
Hello All,
We have Veritas Backup Exec on a Windows 2003 OS and trying to setup the Ralus agent on SCO to perform regular backups of our Unixware system; but for some reason after "I believe" installing the agent on SCO; and launching it using the 'agent.be" command I receive a syntax error... (1 Reply)
Discussion started by: Yorgy
1 Replies
5. SCO
I've installed a CD-RW rom using SCO OSR 5.0.7, but I cannot open the dev to perform backup (6 Replies)
Discussion started by: tsc_hk
6 Replies
6. UNIX for Dummies Questions & Answers
I know very little about UNIX, (so please type slow enough so that I can understand). I have inherited an old UNIX SCO OpenServer 5 that is used to run Dentech, a dental office practice management software program. I need to extract the database so that it could be converted for use in a newer... (3 Replies)
Discussion started by: rpmaps
3 Replies
7. UNIX for Dummies Questions & Answers
I would like to know if I can do a full system back
up on my Unix Sco openserver 5.0.5 Machine. If so, What
is the syntax to do this or where can I find this
information at?
Also, is it possible to make this tape bootable so
that I can easily do a full system restore? Any
information on... (2 Replies)
Discussion started by: nellenodrog
2 Replies
8. UNIX for Dummies Questions & Answers
I fairly new to UNIX and LINUX. I am trying to resolve an issue with my SCO OpenServer Release 5. My backups are failing with the following error:
cpio: MT_RECOVER failed for this device: Bad address (error 14)
cpio: Error occurred during end-of-media operations.
cpio: Please reissue the cpio... (9 Replies)
Discussion started by: ddsakline
9 Replies
9. SCO
hi guys
im beginner in unix and have many problem with this.
i have one old machine that Sco unix OpenServer 5.0.7 installed on it.
i wana backup from all partition of hard disk and restore it on another unix machine. how can i do that ?
thing like hard to hard for windows !!!
i only know how... (1 Reply)
Discussion started by: farzad226
1 Replies
10. SCO
hi guys
im beginner in unix and have many problem with this.
i have one old machine that Sco unix OpenServer 5.0.7 installed on it.
i wana backup from all partition of hard disk and restore it on another unix machine. how can i do that ?
thing like hard to hard for windows !!!
i only know how... (14 Replies)
Discussion started by: farzad226
14 Replies
mt(1) General Commands Manual mt(1)
Name
mt - magnetic tape manipulating program
Syntax
mt [-f tapename] command [count]
Description
The command permits the operation of a magnetic tape drive.
Options
The -f flag option uses the specified tape device (next argument) in place of either that tape device defined by your TAPE environment
variable (.login or .profile) or /dev/nrmt0h.
Some operations may be performed multiple times by specifying count. By default, performs the requested operation once.
The command argument defines the operation to be performed. Only as many characters as are required to uniquely identify a command need be
specified.
The following is a list of commands:
bsf Backspace count files.
bsr Backspace count records.
cache Allows to use the cache buffer on a tape drive that has the cache buffer feature.
clhrdsf Clear hardware/software problem. Works with tape drives which use the TMSCP tape controller interface This command is
restricted to root access only.
clserex Clear serious exception. Works with tape drives which use the TMSCP tape controller interface
clsub Clear subsystem. Works with tape drives which use the TMSCP tape controller interface This command is restricted to
root access only.
eof, weof Write count end-of-file marks at the current position on the tape.
eotdis Disable end-of-tape detection. When the end of tape is reached, the tape will run off the reel. Only the superuser
can issue this command. The command remains in effect for the device until end-of-tape detection is enabled with the
eoten command.
eoten Enable end-of-tape detection. When the end-of-tape markers are reached, the tape is halted on the reel, between the
two end-of-tape markers. Only the superuser can issue this command. The command remains in effect for the device
until end-of-tape detection is disabled with the eotdis command. This is the default mode after a system boot.
fsf Forward-space count files.
fsr Forward-space count records.
nocache Disables the use of the cache buffer for any tape drive that has the cache buffer feature.
offline, rewoffl Rewind the tape and place the tape unit off-line.
retension Retensions the tape. Retension means moving the tape one complete pass between EOT and BOT.
rewind Rewind the tape.
status Print status information about the tape unit.
Examples
This example shows how to rewind the tape
mt -f /dev/rmt0l rewind
This example shows how to backspace the tape nmt1h three files:
mt -f /dev/nrmt1h bsf 3
This example shows how to write two end-of-file marks at the current position on tape nmt6h:
mt -f /dev/nrmt6h eof 2
Return Values
In shell scripts, returns a 0 exit status when the operation(s) were successful, 1 if the command was unrecognized, and 2 if an operation
failed.
Files
/dev/rmt?h or /dev/rmt?l
Raw magnetic tape interface with rewind when closed
/dev/nmt?h or /dev/nmt?l
Raw magnetic tape interface with no rewind when closed
See Also
dd(1), tar(1), ioctl(2), mtio(4), tms(4), environ(7)
mt(1)