Manipulation DAT tapes on linux
JM
jerome-mhXWc29+iYPyG1zEObXtfA at public.gmane.org
Fri Nov 19 06:40:03 UTC 2004
thanks for all your replies..
hmm.. the tape says? 20G for uncompressed and 40G for compressed...
does this mean doing tar -zcf /dev/st0 is the 40G?
or
i have to activate the compression and let the drive its job?
TIA
On Wednesday 17 November 2004 13:30, Ilya Palagin wrote:
> JM wrote:
> > Hi,
> >
> > I have a 4mm DDS-150 tape in linux and I was wondering if someone can
> > answer this questions.
>
> First - you need 'mt' tools installed.
>
> > is it possible to extract selected file or files from an archive without
> > extracting all the data from the tape?
>
> Extract separate files like this:
>
> tar xvf /dev/st0 /home/user/file01
>
> > is it possible to add a directory with files to a tape archive? (tape
> > has an existing data on it)
>
> Jump to the end of data:
> mt -f /dev/nst0 eod
>
> And add directory
> tar cvf /dev/nst0 /home/dir
>
> > is it possible to get the tape usage?
>
> Rewind to the end of data and get current block, see man mt. Then
> calculate taken space.
>
> > what i usually do is tar -cvf /dev/st0 ..... .... ....
>
> Use /dev/nst0 for multiple archives, this device doesn't rewind tape
> after command execution. For instance, you have 5 archives on a tape.
> To extract file /etc/passwd from archive #3, execute:
>
> mt -f /dev/nst0 fsf 3
> tar xvf /dev/nst0 /etc/passwd
> mt -f /dev/nst0 rewind
>
> > TIA,
> >
> >
> > --
> > The Toronto Linux Users Group. Meetings: http://tlug.ss.org
> > TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> > How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
>
> --
> The Toronto Linux Users Group. Meetings: http://tlug.ss.org
> TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list