How do I read a file on the holding disk?

Example: I have let AMANDA do all dumps to holding disk. This created
several files. I want to read one of them, say bacchus._dos_c.1. If I
flush the files to tape, then do the usual "dd if=/dev/... bs=32k skip=1
> test", I can read test with tar and gzip (I just have to position the tape correctly 
>with "mt...fsf 1"). So far, so good.

But when I copy the file to a MO-disk (2048 bytes per sector) and then
try to read it, I get:

dd if=/scsi/DynaMo/linux/20001212/bacchus._dos_c.1 bs=32k  skip=1 | gzip
-dc | tar -xvf -
1+0 records in
1+0 records out
tar: This does not look like a tar archive
tar: Skipping to next header

gzip: stdin: decompression OK, trailing garbage ignored
tar: Error exit delayed from previous errors

Why does if=<some device> work and if=<some file> does not? Is this
because I have an ext2 filesystem on the disk and copied the file with
cp?

-- 
Regards

Chris Karakas
Don´t waste your cpu time - crack rc5: http://www.distributed.net

Reply via email to