From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 30992 invoked from network); 2 Jun 1998 10:08:01 -0000 Received: from stefan.sime.com (193.228.80.247) by mail2.redhat.com with SMTP; 2 Jun 1998 10:08:01 -0000 Received: (from stefan@localhost) by stefan.sime.com (8.8.7/8.8.7) id MAA00781; Tue, 2 Jun 1998 12:06:41 +0200 Date: Tue, 2 Jun 1998 12:06:41 +0200 Message-Id: <199806021006.MAA00781@stefan.sime.com> From: Quant-X Alpha Linux Support To: axp-list@redhat.com In-reply-to: <3573697C.31E57E2E@paralleldata.com> (wsb@paralleldata.com) Subject: Re: Module problems MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: Quant-X Alpha Linux Support Reply-To: Quant-X Alpha Linux Support Organization: Quant-X Service & Consulting Ges.m.b.H. X-Mailer: GNU Emacs 20.2.1 C-x m (X11 ; I; Linux 2.0.32 i586) References: <199806020051.SAA02610@galileo.apo.nmsu.edu> <3573697C.31E57E2E@paralleldata.com> Hi Wes, John ! > > I wrote the tape with a 64KB fixed block size. I get: > > > > % dd if=/dev/tape bs=65536 > > dd: /dev/tape: No space left on device > > 0+0 records in > > 0+0 records out He did _not_ wrote with fixed blocksize to the tape. (He wrote 64KB blocks chunks to the tape, and if I remember correctly setblk was 0, so the tape blocksize was dynamic. 64KB over dynamic) > > % mt -f /dev/tape setblk 0 "-f /dev/tape" is not needed. It's default by mt. > > % dd if=/dev/tape bs=65536 > > dd: /dev/tape: No space left on device > > 0+0 records in > > 0+0 records out > Was the tape created on the system you're trying > to read it on? > > Just tried a dd on my eliant 820. Works fine. Though > /dev/tape doesn't exist on my system. Did you create > that yourself, maybe as a link to /dev/st0?? > Does /dev/st0 work instead of /dev/tape?? > Are the permissions on the device file correct? > I use: > > crw-rw-rw- 1 root disk 9, 0 Jul 1 1996 /dev/st0 It should be not world read/writable ! But if this caused the problem, EPERM would be the correct answer from dd. I have no direct ideas (and no Exabyte), but I'm very interested in the problem. Things that I would try (not in correct order, but try c, b, a, b, d): a) edit /usr/src/drivers/scsi/st.c and change "#if DEBUG 0" to "#if DEBUG 1"; recompile modules. (The chance is high that we get a useful message, so I would try it (EOM, ILI). If it not helps, "insmod st debugging=0" returns to quiet mode. b) Using "strace tar" and "strace dd" (John, please send me your output !) c) Non-rewinding tape (is minor 128 or 0 ? huch !!) (I'm ignoring the output of "mt status" here, ...) mt rewind mt rewind tar cpv /etc/hosts mt rewind tar tvp (or dd) d) Reading the tape by a generic SCSI-interface (/dev/sg under linux) (small code available on request) -- Quant-X Service & Ph: (+43) 4212 6004-0 Consulting Ges.m.b.H. Fax: (+43) 4212 600420 http://www.quant-x.com Email: support@quant-x.com