From: Stelian P. <st...@po...> - 2008-05-27 21:55:19
|
Hi Eric, > restore -t -b 64 -f /dev/nst0 > > I get an error saying that the block size is wrong, and I should try > "-b 64" instead! [...] > But if instead I do this: > > dd if=/dev/nst0 bs=64k | restore -t -b 64 -f - > > everything works fine. That is, restore can read 64k blocks from > standard input just fine, but doesn't seem to want to read them > directly from the tape (or somehow the tape drive isn't delivering > them correctly to restore when called directly). I checked the source code and didn't find anything obviously wrong which could explain what is happenning. I suggest adding -d and -v to your restore command line (debug and verbose enabled) and see if this generates more information. You can also try to instrument the findtapeblksize() function in restore/tape.c, which is probably the place where something goes wrong. Thanks, Stelian. -- Stelian Pop <st...@po...> |