ATAPICAM - Sony AIT SDX-420 ATAPI tape drive on FreeBSD 5.2.1
raymond at unixworks.com.au
raymond at unixworks.com.au
Mon Jun 14 02:31:57 PDT 2004
I have added a Sony SDX-420 ATAPI tape drive to a FreeBSD 5.2.1-RELEASE system.
The following is part of the kernel build:
# ATA and ATAPI devices
device ata
device atadisk # ATA disk drives
device atapicam
# SCSI peripherals
device scbus # SCSI bus (required for SCSI)
device sa # Sequential Access (tape etc)
device cd # CD
dmesg includes:
GEOM: create disk ad0 dp=0xc43f8760
ad0: 114473MB <ST3120026A> [232581/16/63] at ata0-master UDMA100
GEOM: create disk cd0 dp=0xc44e7600
sa0 at ata1 bus 0 target 0 lun 0
sa0: <SONY SDX-420C 0101> Removable Sequential Access SCSI-2 device
sa0: 3.300MB/s transfers
SMP: AP CPU #1 Launched!
cd0 at ata1 bus 0 target 1 lun 0
cd0: <SONY CD-RW CRX175A1 5YS3> Removable CD-ROM SCSI-0 device
cd0: 3.300MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
A dump appears to work:
monster# mt rew
monster# dump -ua0 -b64 /usr
DUMP: WARNING: should use -L when dumping live filesystems!
DUMP: Date of this level 0 dump: Mon Jun 14 18:45:49 2004
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/ad0s1f (/usr) to /dev/sa0
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 1668552 tape blocks.
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: DUMP: 1800569 tape blocks on 1 volume
DUMP: finished in 262 seconds, throughput 6872 KBytes/sec
DUMP: level 0 dump on Mon Jun 14 18:45:49 2004
DUMP: Closing /dev/sa0
DUMP: DUMP IS DONE
But restore does this:
monster# mt rew
monster# restore -t -b 64
Mount tape volume 2
Enter ``none'' if there are no more tapes
otherwise enter tape name (default: /dev/sa0) none
Tape read error while trying to resynchronize
continue? [yn] y
continuation failed: Bad file descriptor
I have tried quite a number of differing things...
Any hints or suggestions welcome.
Ray Newman
Message sent at 07:13 PM on 14 Jun 2004 by PUP::RAYMOND. Id: 368387.
Message sent at 07:31 PM on 14 Jun 2004 by PUP::RAYMOND. Id: 368396.
More information about the freebsd-questions
mailing list