LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-22-2006, 09:43 AM   #1
geordzilla
LQ Newbie
 
Registered: Dec 2005
Posts: 28

Rep: Reputation: 15
Angry dd command


Hi

I trying to copy a bunch of files from 3590 media to disk using the following dd command "dd if=/dev/rmt/0 of=xxx.txt ibs=8000 cbs=80 conv=unblock". The output is only the 1st file. There 20 files on the 3590. How do i modify the dd command to retrieve all the files?

Tanx geordzilla
 
Old 03-22-2006, 09:58 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Code:
dd if=/dev/rmt/0 of=*.txt ibs=8000 cbs=80 conv=unblock
try this........the "*"(star) is a wildcard indentifier.......
 
Old 03-22-2006, 10:15 AM   #3
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
May be each file is in a "session" of dd.
Try to use the non-rewind tape device, and, after you get the first, repeat the command to retrieve the next. Its important to specify the non-rewind device here, otherwise, the tape is rewinded after the dd command finish. You may use the mt forward space options to positioning the tape in an arbitrary position. Of course, again, you must use the non-rewind device to to this.
 
Old 03-28-2006, 04:32 AM   #4
geordzilla
LQ Newbie
 
Registered: Dec 2005
Posts: 28

Original Poster
Rep: Reputation: 15
dd command

Hi

Tanx y'all for helping. I was away to a place the net doesn't exist.

Yea, the problem was due to the fact that the no rerwind option was left out of the command. So it read and writes the first file only and stops.

Much obliged guys.


georzdilla
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 07:19 PM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 02:23 AM
Why after start of a command the invitation for input next command has not appeared. ukrainet Linux - General 3 06-24-2005 08:16 AM
Redirecting output to a command-line argument of another command madiyaan Linux - Newbie 1 02-19-2005 04:35 PM
Key stroke/command to shut down x and go into the command prompt screen? Fear58 Linux - General 1 07-14-2004 07:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:42 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