From: Richard Kettlewell <rjk@greenend.org.uk>
To: linux-kernel@vger.kernel.org
Subject: Re: problem with ide-scsi and IDE tape drive
Date: Wed, 31 Oct 2001 09:23:31 +0000 [thread overview]
Message-ID: <wwvg080macs.fsf@rjk.greenend.org.uk> (raw)
In-Reply-To: <3BDF45B6.5B7FA397@fc.hp.com>
In-Reply-To: <mailman.1004484541.12716.linux-kernel2news@redhat.com> <200110302359.f9UNxht09639@devserv.devel.redhat.com> <3BDF45B6.5B7FA397@fc.hp.com>
Khalid Aziz writes:
> Pete Zaitcev wrote:
>> Try "mt fsf" instead dd, see if that helps.
>
> dd is not guaranteed toposition you beyond the filemark after the
> first record. You have to be positioned beyond the filemark to start
> writing. Pete's suggestion is a good one. "mt fsf" will position
> the tape beyond the filemark and writing to the tape should work at
> that point.
Thankyou for the suggestions. However, mt reports that the tape is
positioned beyond the filemark before the failed write. Using "mt
fsf" doesn't make any difference - the problem still occurs.
sfere# cat t
#! /bin/sh
set -e
TAPE=/dev/nst0
hsize=512
set -x
mt -f $TAPE rewind
echo "tape 1" | dd conv=sync of=$TAPE bs=$hsize count=1
for x in 1 2 3; do
mt -f $TAPE rewind
dd if=$TAPE of=/dev/null bs=$hsize
date
mt -f $TAPE status
tar -c -b 20 -f $TAPE /boot
done
sfere# ./t
+ mt -f /dev/nst0 rewind
+ echo 'tape 1'
+ dd conv=sync of=/dev/nst0 bs=512 count=1
0+1 records in
1+0 records out
+ mt -f /dev/nst0 rewind
+ dd if=/dev/nst0 of=/dev/null bs=512
1+0 records in
1+0 records out
+ date
Wed Oct 31 09:06:24 GMT 2001
+ mt -f /dev/nst0 status
drive type = Generic SCSI-2 tape
drive status = 1191182848
sense key error = 0
residue count = 0
file number = 1
block number = 0
Tape block size 512 bytes. Density code 0x47 (unknown).
Soft error count since last status=0
General status bits on (81010000):
EOF ONLINE IM_REP_EN
+ tar -c -b 20 -f /dev/nst0 /boot
tar: Removing leading `/' from absolute path names in the archive
+ mt -f /dev/nst0 rewind
+ dd if=/dev/nst0 of=/dev/null bs=512
1+0 records in
1+0 records out
+ date
Wed Oct 31 09:06:59 GMT 2001
+ mt -f /dev/nst0 status
drive type = Generic SCSI-2 tape
drive status = 1191182848
sense key error = 0
residue count = 0
file number = 1
block number = 0
Tape block size 512 bytes. Density code 0x47 (unknown).
Soft error count since last status=0
General status bits on (81010000):
EOF ONLINE IM_REP_EN
+ tar -c -b 20 -f /dev/nst0 /boot
tar: Removing leading `/' from absolute path names in the archive
tar: Cannot write to /dev/nst0: I/O error
tar: Error is not recoverable: exiting now
sfere# cat ./t
#! /bin/sh
set -e
TAPE=/dev/nst0
hsize=512
set -x
mt -f $TAPE rewind
echo "tape 1" | dd conv=sync of=$TAPE bs=$hsize count=1
for x in 1 2 3; do
mt -f $TAPE rewind
# dd if=$TAPE of=/dev/null bs=$hsize
mt -f $TAPE fsf
date
mt -f $TAPE status
tar -c -b 20 -f $TAPE /boot
done
sfere# ./t
+ mt -f /dev/nst0 rewind
+ echo 'tape 1'
+ dd conv=sync of=/dev/nst0 bs=512 count=1
0+1 records in
1+0 records out
+ mt -f /dev/nst0 rewind
+ mt -f /dev/nst0 fsf
+ date
Wed Oct 31 09:14:16 GMT 2001
+ mt -f /dev/nst0 status
drive type = Generic SCSI-2 tape
drive status = 1191182848
sense key error = 0
residue count = 0
file number = 1
block number = 0
Tape block size 512 bytes. Density code 0x47 (unknown).
Soft error count since last status=0
General status bits on (81010000):
EOF ONLINE IM_REP_EN
+ tar -c -b 20 -f /dev/nst0 /boot
tar: Removing leading `/' from absolute path names in the archive
+ mt -f /dev/nst0 rewind
+ mt -f /dev/nst0 fsf
+ date
Wed Oct 31 09:14:52 GMT 2001
+ mt -f /dev/nst0 status
drive type = Generic SCSI-2 tape
drive status = 1191182848
sense key error = 0
residue count = 0
file number = 1
block number = 0
Tape block size 512 bytes. Density code 0x47 (unknown).
Soft error count since last status=0
General status bits on (81010000):
EOF ONLINE IM_REP_EN
+ tar -c -b 20 -f /dev/nst0 /boot
tar: Removing leading `/' from absolute path names in the archive
tar: Cannot write to /dev/nst0: I/O error
tar: Error is not recoverable: exiting now
sfere#
ttfn/rjk
next prev parent reply other threads:[~2001-10-31 9:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1004484541.12716.linux-kernel2news@redhat.com>
2001-10-30 23:59 ` problem with ide-scsi and IDE tape drive Pete Zaitcev
2001-10-31 0:28 ` Khalid Aziz
2001-10-31 9:23 ` Richard Kettlewell [this message]
[not found] <mailman.1004529422.24577.linux-kernel2news@redhat.com>
2001-10-31 16:48 ` Pete Zaitcev
2001-10-30 23:25 Richard Kettlewell
2001-10-31 2:49 ` Tim Moore
2001-10-31 11:56 ` Kai Makisara
2001-10-31 12:58 ` Richard Kettlewell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=wwvg080macs.fsf@rjk.greenend.org.uk \
--to=rjk@greenend.org.uk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox