Unable to read/write to a tape with tar in Red Hat AS4
- From: "Posey, Jake E" <Jake.E.Posey@xxxxxxxxxx>
- Date: Thu, 25 May 2006 15:24:10 -0700
I'm getting the following error when trying to read a tape. I check the
status of the drive.
[root@darc200 ~]# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block number=-1, partition=0.
Tape block size 32768 bytes. Density code 0x26 (DDS-4 or QIC-4GB).
Soft error count since last status=0
General status bits on (1010000):
ONLINE IM_REP_EN
[root@darc200 ~]#
Then I attempt to read the tape and get the following errors:
[root@darc200 ~]# tar -b32768 -tvf /dev/nst0
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: /dev/nst0: Cannot read: Input/output error
tar: /dev/nst0: Cannot read: Input/output error
tar: /dev/nst0: Cannot read: Input/output error
tar: /dev/nst0: Cannot read: Input/output error
tar: /dev/nst0: Cannot read: Input/output error
tar: /dev/nst0: Cannot read: Input/output error
tar: /dev/nst0: Cannot read: Input/output error
tar: /dev/nst0: Cannot read: Input/output error
tar: /dev/nst0: Cannot read: Input/output error
tar: /dev/nst0: Cannot read: Input/output error
tar: /dev/nst0: Cannot read: Input/output error
tar: /dev/nst0: Cannot read: Input/output error
tar: Too many errors, quitting
tar: Error is not recoverable: exiting now
[root@darc200 ~]#
When I don't specify the block size it just hangs.
[root@darc200 ~]# tar tvf /dev/nst0
When attempting to write to the tape using tar -cvf temp.tar /dev/nst0
it fails also.
The tape is a HP StorageWorks Dat 40 scsi tape and usb tape devices.
The OS is Red Hat AS 4.0 with kernel 2.6.9-5.EL i686 GNU/Linux. I have
the same problem with both tape devices.
I can take the tape and put it in a dat drive on a hp and read it just
fine.
Jake E. Posey
Boeing Commerical Airplanes
Lab Test Systems Support
Email: jake.e.posey@xxxxxxxxxx <mailto:jake.e.posey@xxxxxxxxxx>
Phone: (206) 544-1778
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- Follow-Ups:
- Re: Unable to read/write to a tape with tar in Red Hat AS4
- From: Cameron Simpson
- Re: Unable to read/write to a tape with tar in Red Hat AS4
- Prev by Date: Re: echo command as in windows
- Next by Date: Re: Unable to read/write to a tape with tar in Red Hat AS4
- Previous by thread: echo command as in windows
- Next by thread: Re: Unable to read/write to a tape with tar in Red Hat AS4
- Index(es):
Relevant Pages
- RE: redhat-list Digest, Vol 27, Issue 26
... The reason I was tarring a tar file to the tape I didn't want to backup a whole
file system just to test the tape drive. ... I take that same tape and try to read it on the tape
drive that is connected to the linux machine and it doesn't work. ... echo command
as in windows ... (RedHat) - tar backup ok but restore errors w/ scsi dat dds2
... Using tar, I can write a tape archive to the scsi dat drive (tar cvf
... Archive contains obsolescent base-64 headers ... (Debian-User) - Re: problem with restore
... can tar be used to backup files on a machine with remote tape drive..?? ...
the '-' on the tar command makes the 'f' go to stdout. ... Have you tried taking backup
using tar utility instead of rdump. ... If you take backup and try restore using tar, ...
(RedHat) - Re: Copying tar archives/tarballs to tape
... You may want to play about with the block size arguments in tar to find ...
Some tape drives, when written to in ... Some apply error correction only on a per-block
basis, ... for bzip2) flag when writing to tape, but bear in mind that compression uses
CPU ... (uk.comp.os.linux) - RE: problem with restore
... Have you tried taking backup using tar utility instead of rdump. ...
If you take backup and try restore using tar, ... Also you can verify the content of tape
after backup using ... (RedHat)