Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dd command?????

Status
Not open for further replies.

230173

MIS
Jun 22, 2001
208
SG
What am i doing wrong?

$ dd if=/oradata4/prodenv/tools01.dbf of=/dev/rmt1 bs=64k
dd: 0511-053 The write failed.
: A system call received a parameter that is not valid.
3+0 records in.
0+0 records out.
$
 
root@quality:/ # lsattr -El rmt1
mode yes Use DEVICE BUFFERS during writes True
block_size 10240 BLOCK size (0=variable length) True
extfm yes Use EXTENDED file marks True
res_support no RESERVE/RELEASE support True
var_block_size 0 BLOCK SIZE for variable length support True
density_set_1 0 DENSITY setting #1 True
density_set_2 0 DENSITY setting #2 True
delay 45 Set delay after a FAILED command True
rwtimeout 144 Set timeout for the READ or WRITE command True
ret_error no RETURN error on tape change or reset True
root@quality:/ #


The block size i'm writing with (64k) doesn't have to be 1024k. right?
 
I have made an adjustment to the blocksize of the tapedrive.
Instead of 10240 i made it 1024.
Then i tried the folowing:

$ dd if=/oradata4/prodenv/tools01.dbf of=/dev/rmt1 bs=1024k
5+1 records in.
5+1 records out.

So it seems to work but how can i see what's on the tape?
I tried tar but no luck.

$ tar -tvf /dev/rmt1
$
 
Make first a tar of what you backup... so you can use this command....
 
Read the tape with "dd if=/dev/rmt1 count=1 bs=64k".

You can't use "tar" to read non-tar tapes.

Bill.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top