05/04/02 11:46:06

Media Names and Commands for tape drives, floppy drives, CD-ROMs.

Tape Drives
scsi tape drive 0 /dev/rStp0 or /dev/rct0
scsi tape drive 1 /dev/rStp1 or /dev/rct1


If you are using tar command, scsi tape drive 0 is 8 and scsi tape drive 1 is 9.
To tar some files to a tape drive using scsi tape drive 0.
tar cv8 files.names                 You can use wild cards for multiple files or just type in the name of every file
To view the files on a tar backup to tape.
tar tv8
To extract all files from scsi tape drive 0.
tar xv8

                                 
Using cpio to backup files to scsi tape drive 0
find / -depth -print | cpio -ocv -O/dev/rStp0        This will find all files and pike them to scsi tape 0.
find /appl/ -depth -print | cpio -ocv -O/dev/rStp0  This will back up all files in appl (your data).

Using cpio to restore files from a tape
cpio -ivmkBud -I/dev/rStp0 "/appl/fpmerge"        This will restore all files in the /appl/fpmerge directory (print files)


To view the files that have been backed up.
cpio -itv </dev/rStp0

Floppy Drives
floppy drive a is /dev/install
floppy drive b  is /dev/install1


If you are using doscp or dosdir a is a: and b is b:
dosdir a:            View the dos files on floppy drive 0
doscp a:\ source /usr/tmp /target


If you are using tar command, floppy drive a is 6 and floppy drive b is 7.
tar cv6 files.names                 You can use wild cards for multiple files
To view the files on a tar floppy.
tar tv6
To extract all files from floppy.
tar xv6                                  

CD-ROM Drives
CD-ROM drive 0 is /dev/cd0
CD-ROM drive 1 is /dev/cd1
SCO Unix does not support read writeable CD-ROM, but we can mount the CD-ROM to view files and run install programs or copy files to other directorys..
mount -r /dev/cd0 /mnt           This command will mount the CD-ROM in the directory called /mnt
umount /mnt                            This command will unmount the CD-ROM.

To move files around your hard drive you can use mv and cp (move and copy)
To move file from /appl/fpmerge to /usr/tmp and not leave a copy of it in /appl/fpmerge
mv /appl/fpmerge/filename /usr/tmp/filename

To copy a file in /appl/fpmerge to /usr/tmp/ and leave a copy of the file in /appl/fpmerge
cp /appl/fpmerge/filename /usr/tmp/


Back to Hardware Support
Support@crinc.com