On Fri, Feb 08, 2002 at 10:15:32PM -0500, John R. Jackson wrote: > You forgot the "bs=32k". What happens if you add that? > > And you need to do a rewind between the two dd's.
sorry, this is better: root@bast:~# mt -f /dev/scsi/host0/bus0/target15/lun0/mtn status SCSI 2 tape drive: File number=0, block number=0, partition=0. Tape block size 4096 bytes. Density code 0x26 (DDS-4 or QIC-4GB). Soft error count since last status=0 General status bits on (41010000): BOT ONLINE IM_REP_EN root@bast:~# mt -f /dev/scsi/host0/bus0/target15/lun0/mtn setblk 0 root@bast:~# mt -f /dev/scsi/host0/bus0/target15/lun0/mtn status SCSI 2 tape drive: File number=1, block number=0, partition=0. Tape block size 0 bytes. Density code 0x26 (DDS-4 or QIC-4GB). Soft error count since last status=0 General status bits on (81010000): EOF ONLINE IM_REP_EN root@bast:~# mt -f /dev/scsi/host0/bus0/target15/lun0/mtn rewind root@bast:~# dd if=/dev/scsi/host0/bus0/target15/lun0/mtn bs=32k of=/tmp/first-record count=1 0+1 records in 0+1 records out root@bast:~# mt -f /dev/scsi/host0/bus0/target15/lun0/mtn rewind root@bast:~# dd if=/dev/scsi/host0/bus0/target15/lun0/mtn bs=32k of=/tmp/first-file 0+7 records in 0+7 records out root@bast:~# ls -la /tmp/first-* -rw-r--r-- 1 root root 32768 Feb 9 14:44 /tmp/first-file -rw-r--r-- 1 root root 32768 Feb 9 14:43 /tmp/first-record root@bast:~#
