Re: Re: dd problems

2006-11-06 Thread [EMAIL PROTECTED]
I will be out of the office until Monday, November 13th.  I will respond to 
your e-mail at that time. 



Re: dd problems

2006-11-06 Thread Jon LaBadie
On Mon, Nov 06, 2006 at 04:43:26PM -0500, Mitch Collinsworth wrote:
> 
> >I am trying to use dd to copy a tape made by amanda to a temp spot on the 
> >HDD, but I am having great difficulty.  When I try to use dd, it will only 
> >copy one file at a time then stop, no matter what I do.  As far as I know, 
> >dd should just take the entire tape from beginning to end. . .
> 
> dd does one tape file at a time, which yes, is what amanda writes.
> In order to do what you're trying to do you just need to write a
> short script to put your dd into a loop.

If you are copying to HD in order to copy to another tape,
you will have to keep each tape file in a separate disk file
and then dd them to the new tape in the same order.

If, just by chance, you are working on Solaris, look for the
"tcopy" command.  It will copy an entire tape.  But I've
never seen it available on other OS's.

I just googled for tcopy.  Seems it is BSD derived.  Seems to
be available on Darwin OSx, and on AIX.  There is also a
sourceforge project to create a linux clone of tcopy.

I generally used it to determine unknown tape block sizes
and number of files with "tcopy tape_dev", no destination.

-- 
Jon H. LaBadie  [EMAIL PROTECTED]
 JG Computing
 4455 Province Line Road(609) 252-0159
 Princeton, NJ  08540-4322  (609) 683-7220 (fax)


Re: dd problems

2006-11-06 Thread Mitch Collinsworth


I am trying to use dd to copy a tape made by amanda to a temp spot on the 
HDD, but I am having great difficulty.  When I try to use dd, it will only 
copy one file at a time then stop, no matter what I do.  As far as I know, dd 
should just take the entire tape from beginning to end. . .


dd does one tape file at a time, which yes, is what amanda writes.
In order to do what you're trying to do you just need to write a
short script to put your dd into a loop.

-Mitch


dd problems

2006-11-06 Thread Nick Brockner

Hi All,

I am trying to use dd to copy a tape made by amanda to a temp spot on 
the HDD, but I am having great difficulty.  When I try to use dd, it 
will only copy one file at a time then stop, no matter what I do.  As 
far as I know, dd should just take the entire tape from beginning to 
end. . .


See below for a transcript of my command line dealings with dd:

[root ~]# mt -f /dev/st0 rewind
[root ~]# mt -f /dev/nst0 tell
At block 0.
[root ~]# dd if=/dev/nst0 of=/dumps/amanda/copy bs=32k
1+0 records in
1+0 records out
32768 bytes (33 kB) copied, 9.28853 seconds, 3.5 kB/s
[root ~]# mt -f /dev/nst0 tell
At block 1.
[root ~]# dd if=/dev/nst0 of=/dumps/amanda/copy bs=32k
197+0 records in
197+0 records out
6455296 bytes (6.5 MB) copied, 1.79274 seconds, 3.6 MB/s
[root ~]# mt -f /dev/nst0 tell
At block 198.
[root ~]# dd if=/dev/nst0 of=/dumps/amanda/copy bs=32k
281+0 records in
281+0 records out
9207808 bytes (9.2 MB) copied, 2.6173 seconds, 3.5 MB/s
[root ~]# mt -f /dev/nst0 tell
At block 479.
[root ~]#


It will continue like this for all of the DLEs on the tape, one at a 
time. Any ideas??  Is this due to some strange way Amanda writes out the 
tapes??


Thanks,
Nick