On Thursday 07 June 2007 15:07, Tim Kientzle wrote: > >>> This morning I have revert libarchive (src/lib/libarchive) and > >>> tar (src/usr.bin/tar) back to RELENG_6_1 and surprisingly (or > >>> maybe not) it works fine now. > > > > After that I try to read/list the tar from tape with tar -t: > > $ sudo tar -tf /dev/sa0 > > archive.dmp > > tar: Unrecognized archive format: Inappropriate file type or format > > > > But when I extract the archive from tape, it works perfectly: > > $ sudo tar -xvf /dev/sa0 > > x archive.dmp > > What SCSI controller are you using? This could > conceivably be an issue with a particular SCSI > controller.
ahc0: <Adaptec 29160 Ultra160 SCSI adapter> port 0xd000-0xd0ff mem 0xd0820000-0xd0820fff irq 23 at device 3.0 on pci5 ahc0: [GIANT-LOCKED] aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs ... sa0 at ahc0 bus 0 target 2 lun 0 sa0: <TANDBERG TS400 0290> Removable Sequential Access SCSI-3 device sa0: 160.000MB/s transfers (80.000MHz, offset 126, 16bit) > A few lines from 'dmesg' could help here. > > If I must, I suppose I could make 'tar' never > try to seek if it's talking directly to a device. > That would penalize devices that can seek, so I'd > rather find an alternate solution. Yeah that would be a gross work around :( > P.S. In the meantime, of course, tar from 6.1 and > gtar should both work in this situation. Or you can use dd to read from the tape. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
pgp7ZQ4zxl2Mf.pgp
Description: PGP signature