Hi Joel
On Wed, 7 Jun 2000, Joel Lansden wrote:
>
> I am running kernel 2.3.50 and I have an HP Colorodo 5Gb IDE Tape Drive
> installed. The kernel detects the tape drive at bootup, and calls it
> /dev/hdc (at the same time it detects the hard drive & cd-rom).
>
> My question is, how do I either 1) search out the device file that I would
> use to TAR to this tape, or 2) create this device file?
The devices should already exist. You will use two
/dev/ht0 the rewinding device
/dev/nht0 the non-rewindind device
What's this rewinding business you say? Did Al Gore invent it during bored
moments of creating the internet? No.
If you use the rewinding device the tape will be rewound after the command
completes. If you use the non-rewinding device it will not, and keep it's
place.
So if you did
tar cf /dev/ht0 /etc
tar cf /dev/ht0 /root
you will end up with *only* /root backed up (test with tar tf
/dev/ht0) since the tape gets rewound and you just overwrote the first.
but, if you did
/bin/mt -f /dev/ht0 rewind # just in case
tar cf /dev/nht0 /etc
/bin/mt -f /dev/nht0 fsf 1 # might not be needed (sorry, don't remember)
tar cf /dev/nht0 /root
/bin/mt -f /dev/ht0 rewind
tar tf /dev/ht0 # should see /etc stuff
/bin/mt -f /dev/nht0 fsf 1
tar tf /dev/ht0 # should see root!
check out the man/info pages on mt and tar for more info
hth
charles
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.