On Tuesday 01 November 2016 22:03:21 Ochressandro Rettinger wrote: > I ran another backup with client compression, and tried > recovering from it. It hung in the same fashion as the previous time I > tried it. I then tried running amrecover on the actual client system > itself (the cleverly named "backuptest"), in the hopes that it would work > better from there. Sadly, it did not. > > I then tried to read the files off the tape directly myself: > > [root@archivist ssh]# tar -tf /dev/st0 > tar: /dev/st0: Cannot read: Cannot allocate memory > tar: At beginning of tape, quitting now > tar: Error is not recoverable: exiting now > > I'm not sure what that's about. > > -Sandro >
The memory error is Linux's way of complaining about a block size problem in the most unhelpful way possible. And you wouldn't be able to read it that way anyway, because amanda prepends a 32K block in front of the backup data, so it's not just a tar file. You should be able to use amrestore to extract the files and then tar -ztf them from there. Or if you want to do it raw, try: dd if=/dev/st0 bs=32k skip=1 of=outputfilename and then tar -ztf that
