On 11 Mar 2002 at 1:49pm, Brad Tilley wrote

> [root@reg root]# dd if=/dev/st0 bs=32k skip=2 count=1
> AMANDA: FILE 20020304 reg /root lev 0 comp N program /bin/tar
> To restore, position tape at start of file and run:
>       dd if=$tape bs=32k skip=1 | /bin/tar -f... -
> 
> 1+0 records in
> 1+0 records out
> [root@reg root]#
> 
> So, I cd to a /tmp directory and try to run the command as it appeared
> in the amanda header, but I always get a tar error.

For the dd command to work, you need to be at the beginning of a tape 
file.  Since your first dd command referenced /dev/st0, the rewinding tape 
device, you were at BOT.  To restore the first file off the tape:

mt -f /dev/nst0 rewind
mt -f /dev/nst0 fsf 1
dd if=/dev/nst0 bs=32k skip=1 | /bin/tar -f -

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University

Reply via email to