On Wed, Nov 13, 2002 at 01:40:18PM -0600, Matthew Boeckman wrote:
> I've got a file that I amrestore'd, but restore is giving me a strange 
> error:
> 
> restore -ivh -f filename
> Verify tape and initialize maps
> Tape block size is 32
> Note: Doing Byte swapping

Eeek!

Sure sounds like you're running restore on hardware/OS that is very
different than that of the original amanda client that generated
the dump.

> Dump   date: Fri Nov  1 01:39:49 2002
> Dumped from: Tue Oct 29 04:47:44 2002
> Level 1 dump of /usr on sparck:/dev/dsk/c0t0d0s4

In particular, it smells like you're trying to run:

    restore(8) on an x86 Linux box
    
using a data file written by:

    ufsdump(1M) on a SPARC Solaris box.

If that's the case (I could be wrong):

    1)  It would have been nice of you to tell us up-front, instead of
        making us reverse-engineer it.

    2)  It's not guaranteed to work in the first place.

    3)  I'm fairly impressed that it gets as far as it does!  :-)

Grab "sparck" or another Solaris box, then just copy/NFS mount the data
file over there and run ufsrestore.

You could try:

% dd if=filename obs=32k conv=swab | sudo restore -ivh -b 32 -f -

But I doubt that will help.

You could also try bare-minimum restore flags, assuming you have
room:

% dd if=filename obs=32k conv=swab | sudo restore -r -b 32 -f -

But I doubt that will help, either.

-- 
Jay Lessert                               [EMAIL PROTECTED]
Accelerant Networks Inc.                       (voice)1.503.439.3461
Beaverton OR, USA                                (fax)1.503.466.9472

Reply via email to