10-16-06 12:39 AM
kavin wrote:
>
> but v dont know anything about how to manage that Tape drive from A to
> Z...
Depending on what your expectations on "manage" are, this may
be a question that can't be answered. UNIX has never had good
support for tapes just a bunch of commands that might or might
not deal with tapes. Remember that in Unix a file is a file is a file
so programs aren't necessarily even aware that their I/O is to/from
a tape since Unix tends to not care.
> 1.how to make linux to detect the drive first?
To specific to the individual distribution and I know Solaris, HPUX
and so on better than Linux distribs.
> 2.then how to list the tape drives?
ls /dev/rmt
> 3. commands to wotk with the tapes and tape drive in linux?
The main manipulation program is "mt". It can move tapes forward
and backward by files, rewind, eject and so on. Manipulation as in
not moving data just effecting state.
Plenty of programs are often used with tapes. One of my favorites
is tcopy which can copy from one drive to another but will also tell
you numner of files, blocksizes of those files, numbers of those
blocks. Since each program that commonly writes a specific
blocksize you can guess at the contents.
Other common tape programs: tar, cpio, dump, dd ...
[ Post a follow-up to this message ]
|