LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-21-2002, 01:57 PM   #1
Jason Foat
LQ Newbie
 
Registered: May 2002
Posts: 3

Rep: Reputation: 0
trouble using dd for tape backups.


Hi,

I think I've found a bug in dd, or at the very least
I'm having trouble using it to write to my tape drive.


In particular, I'm attempting to use a combination of
ssh/dump/dd
to back up a remote linux system to a tape drive on my local
linuxbox.
I'm using dd 4.1 with Linux 7.2, on an i686
architecture. For example,

#ssh REMOTE_LINUXBOX /sbin/dump -0 -f - /dev/sda2 | dd
of=/dev/nst0

yields the following sequence:

DUMP: Date of this level 0 dump: Thu May 16 21:03:40
2002
DUMP: Dumping /dev/sda2 (/) to standard output
DUMP: Exclude ext3 journal inode 8
DUMP: Label: /
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 10472849 tape blocks.
DUMP: Volume 1 started with block 1 at: Thu May 16
21:03:53 2002
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: 2.40% done at 837 kB/s, finished in 3:23
DUMP: 4.84% done at 844 kB/s, finished in 3:16
DUMP: 7.24% done at 842 kB/s, finished in 3:12
DUMP: 9.64% done at 841 kB/s, finished in 3:07
DUMP: 12.03% done at 839 kB/s, finished in 3:02
DUMP: 14.41% done at 838 kB/s, finished in 2:58
dd: writing `/dev/nst0': Invalid argument
3156720+41 records in
3156740+0 records out

Note the 'Invalid argument' error that comes up 15% of

the way through the dump.

I can also generate a similar error by attempting to
write a simple file to the tape:

# echo `date` | dd of=/dev/nst0

yields

dd: writing `/dev/nst0': Invalid argument
0+1 records in
0+0 records out

For a truley bizaare twist to this, if I issue a
simliar
dump command to a REMOTE_SOLARISBOX, the dump completes just
fine.

Is this a bug, or am I doing something wrong?

Thanks,

Jason Foat
 
Old 05-21-2002, 02:03 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Please do not double post same questions/problems in different forums. http://www.linuxquestions.org/rules.php

http://www.linuxquestions.org/questi...threadid=21483
 
  


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
Restoring data from tape backups enygma Linux - General 8 11-11-2004 01:29 PM
Tape incremental backup to different tape tungaw2001 Linux - Software 0 08-13-2003 09:42 PM
tar or cpio - Which is better for tape backups? Br. Nicholas Linux - Software 2 07-02-2003 04:06 PM
trouble with tape bimble Linux - Hardware 1 12-03-2002 02:11 PM
Tape Drive Trouble Paul_assheton Linux - General 8 01-31-2002 07:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:47 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration