07-09-04 04:56 PM
Evgeniy Petrov wrote:
> I have a strimer /dev/st0 (Linux Suse 8.0)
>
> I write to strimer using command
> tar cfv /dev/st0 myfile
This is correct for creating a tape.
> How can I read tape (only read)
> If I write
> tar tf /dev/st0
> nothing happend. Is it correct syntax? Does it meen that tape is empty?
However, this command is only for obtaining a table of contents
from the tape. You are missing the "v", or "verbose" option so you
probably don't see anything on the screen.
>
> How can I restore files from tape to another location (not original)?
> Should I use command mt before read from tape (or write) and what is corre
ct
> syntax?
> Should I do anything with new tape before using it in my strimer?.
>
When you initially created the tape you probably used:
cd [some directory]
tar cfv /dev/st0 myfile
Note that if "myfile" was replaced with "mydirectory", "tar" would
transfer the directory and it's contents to tape.
To obtain a a table of contents from the tape you could use:
tar -tvf /dev/st0
Then to restore your file to another directory you could use:
cd [some other directory]
tar -xvf /dev/st0
You need to carefully read the man page. It gives you some examples
that could be useful.
--
Martin E. Meserve
k7mem@myrealbox.com
http://www.k7mem.150m.com
[ Post a follow-up to this message ]
|