Re: Unable to read/write to a tape with tar in Red Hat AS4
- From: Cameron Simpson <cs@xxxxxxxxxx>
- Date: Fri, 26 May 2006 08:55:52 +1000
On 25May2006 15:24, Posey, Jake E <Jake.E.Posey@xxxxxxxxxx> wrote:
| 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
|
| Then I attempt to read the tape and get the following errors:
| [root@darc200 ~]# tar -b32768 -tvf /dev/nst0
Don't you mean -b 64? -b takes units of 512 bytes you know...
| tar: This does not look like a tar archive
[...]
| When I don't specify the block size it just hangs.
| [root@darc200 ~]# tar tvf /dev/nst0
Is the tape doing anything?
Does this:
strace -e trace=file tar tvf /dev/nst0
show anything happening?
This will be doing 512 byte sized block reads.
| When attempting to write to the tape using tar -cvf temp.tar /dev/nst0
| it fails also.
Certainly. You have that backwards. You want:
tar cvf /dev/nst0 ...
to write to the tape. And why write a tar file containing a tar file?
| 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.
Using what command? Or is the HP not running UNIX?
--
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/
Morality is the herd-instinct in the individual. - Nietzsche
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- References:
- Unable to read/write to a tape with tar in Red Hat AS4
- From: Posey, Jake E
- Unable to read/write to a tape with tar in Red Hat AS4
- Prev by Date: Unable to read/write to a tape with tar in Red Hat AS4
- Next by Date: Re: a fax viewer for linux similar to "Imaging for Windows"
- Previous by thread: 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)