LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-22-2004, 07:38 AM   #1
hastur
LQ Newbie
 
Registered: Oct 2004
Location: Amsterdam
Posts: 1

Rep: Reputation: 0
Problem with dd and tar to tape


Well I have inherited this pile of DLT-4000 tapes which were written with the command .....

tar cvf - somefiles | dd of=/dev/nst0 bs=256k

Now it falls to me to restore this data .... but (and yes I rewound the tape )

dd if=/dev/nst0 bs=256k | tar xvf -

fails ..... some files can be read fine but mostly it starts reading the file and then says skipping to next file header, and the file read back from tape is truncated

Maybe I am ignorant but it seems to me this is becase the block size coming out of tar is 20 x 512 bytes while bs=256k sets both the input and output size to 256k.

So I tried a scratch tape with ...

tar cvf - somefiles | dd of=/dev/nst0 ibs=10240 obs=256k

and recovered with

dd if=/dev/nst0 ibs=256k obs=10240 | tar xvf -

which works perfectly

So ..... how can I get the data back from these tapes properly???

Thanks in advance for any help you can offer (otherwise I will be expected to fall on my sword at work .....)

S.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Tar/Star to copy a compressed file from tape geokker Linux - Software 1 09-09-2005 07:32 AM
Using the Multiple tape option with TAR bassman Programming 0 07-08-2004 12:49 PM
Help restoring from tape and tar...... TheDirtyPenguin Linux - Software 1 02-17-2004 07:42 AM
HELP, corrupted tar tape Paul_assheton Linux - General 1 01-20-2004 10:37 AM
tar or cpio - Which is better for tape backups? Br. Nicholas Linux - Software 2 07-02-2003 04:06 PM


All times are GMT -5. The time now is 10:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration