* Re: Module problems
@ 1998-06-02 0:51 brinkmann
1998-06-02 2:54 ` Wes Bauske
1998-06-02 5:52 ` Michal Jaegermann
0 siblings, 2 replies; 8+ messages in thread
From: brinkmann @ 1998-06-02 0:51 UTC (permalink / raw)
To: axp-list
> The 'No space left on device' usually means you specified
> reading a block size smaller than what is on the tape. In
> particular, I think the default block size for a tar tape
> is 10240. Try your dd with a block size at least 10240 and
> it should work. Also, I've found using 'mt -f /dev/st0 setblk 0'
> helps if you read tapes with variable length blocks. 8mm
> tape drives are actually variable length block devices.
> You can put pretty much any size block you want on them up
> to the system limit. On some AIX systems, I've written up
> to 256KB-1 block. Think you set that limit when you configure
> Linux in the SCSI section. It asks about the maximum transfer
> you want to handle.
Wes,
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
and
% mt -f /dev/tape setblk 0
% dd if=/dev/tape bs=65536
dd: /dev/tape: No space left on device
0+0 records in
0+0 records out
Jon
---
Dr. Jon Brinkmann Apache Point Observatory
Instrument Scientist 2001 Apache Point Road
Internet: brinkmann@nmsu.edu P.O. Box 59
URL: http://www.apo.nmsu.edu/brinkmann/ Sunspot, NM 88349-0059
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Module problems
1998-06-02 0:51 Module problems brinkmann
@ 1998-06-02 2:54 ` Wes Bauske
1998-06-02 10:06 ` Quant-X Alpha Linux Support
1998-06-02 5:52 ` Michal Jaegermann
1 sibling, 1 reply; 8+ messages in thread
From: Wes Bauske @ 1998-06-02 2:54 UTC (permalink / raw)
To: axp-list
brinkmann@nmsu.edu wrote:
>
> > The 'No space left on device' usually means you specified
> > reading a block size smaller than what is on the tape. In
> > particular, I think the default block size for a tar tape
> > is 10240. Try your dd with a block size at least 10240 and
> > it should work. Also, I've found using 'mt -f /dev/st0 setblk 0'
> > helps if you read tapes with variable length blocks. 8mm
> > tape drives are actually variable length block devices.
> > You can put pretty much any size block you want on them up
> > to the system limit. On some AIX systems, I've written up
> > to 256KB-1 block. Think you set that limit when you configure
> > Linux in the SCSI section. It asks about the maximum transfer
> > you want to handle.
>
> Wes,
>
> 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
>
> and
>
> % mt -f /dev/tape setblk 0
> % 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??
Here's how my devices look:
[wsb@wsb5 scsi]$ cat scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: IBM OEM Model: DCHS09U Rev: 5353
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 06 Lun: 00
Vendor: EXABYTE Model: EXB-85058HE-0000 Rev: 0076
Type: Sequential-Access ANSI SCSI revision: 02
I am using a customized kernel though, not the standard
RH5.0 one.
My modules:
[wsb@wsb5 scsi]$ lsmod
Module Size Used by
tulip 29120 1
st 33264 0
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
Wes
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Module problems
1998-06-02 2:54 ` Wes Bauske
@ 1998-06-02 10:06 ` Quant-X Alpha Linux Support
0 siblings, 0 replies; 8+ messages in thread
From: Quant-X Alpha Linux Support @ 1998-06-02 10:06 UTC (permalink / raw)
To: axp-list
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Module problems
1998-06-02 0:51 Module problems brinkmann
1998-06-02 2:54 ` Wes Bauske
@ 1998-06-02 5:52 ` Michal Jaegermann
1 sibling, 0 replies; 8+ messages in thread
From: Michal Jaegermann @ 1998-06-02 5:52 UTC (permalink / raw)
To: axp-list
>
> 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
/dev/tape is obviously a link. A correct one, i.e. not to /dev/rft0,
or something like that, for example? There are times when such
"convenience shortcuts" became misfeatures.
What 'mt -f /dev/tape status' has to say? Is st.o a module? If yes
then is it loaded? If no, then is tape support compiled in your kernel?
Michal
^ permalink raw reply [flat|nested] 8+ messages in thread
* Module problems
@ 1998-06-01 17:49 brinkmann
1998-06-01 10:56 ` Jay.Estabrook
1998-06-01 21:06 ` Wes Bauske
0 siblings, 2 replies; 8+ messages in thread
From: brinkmann @ 1998-06-01 17:49 UTC (permalink / raw)
To: axp-list
I've had limited success installing modules on my system, an EB164 running
2.0.30.
1) The SCSI tape module loads without any problems and appears to
work. I'm using an ISP 1020 (not 1020A), and an Exabyte 8500
tape drive. The readme says that the driver doesn't support
disconnects, so it will be very slow I get:
% mt status
SCSI 2 tape drive:
File number=0, block number=1, partition=0.
Tape block size 0 bytes. Density code 0x15 (EXB-8500 (RLL 45434 bpi)).
Soft error count since last status=0
General status bits on (5010000):
WR_PROT ONLINE IM_REP_EN
% dd if=/dev/tape bs=1024 count=1
dd: /dev/tape: No space left on device
0+0 records in
0+0 records out
with a write protected TAR tape in the drive. I get the same
error with a write enabled tape in the drive.
2) Installing the sound module locks up the keyboard and mouse. I
have a Soundblaster 16 card. The system still runs, since I
can telnet in. I suspected an I/O address or IRQ conflict but
find:
Device IRQ Addresses
Keyboard 1 ?
PS/2 Mouse 12 ?
Sound 7 audio 0x0220-33
midi 0x0330
game 0x0200-7
synth 0x0388-B
cdrom 0x0170-7
0x0376-7
I get the same problem if I statically compile sound support
into the kernel.
Any ideas?
Jon
---
Dr. Jon Brinkmann Apache Point Observatory
Instrument Scientist 2001 Apache Point Road
Internet: brinkmann@nmsu.edu P.O. Box 59
URL: http://www.apo.nmsu.edu/brinkmann/ Sunspot, NM 88349-0059
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Module problems
1998-06-01 17:49 brinkmann
@ 1998-06-01 10:56 ` Jay.Estabrook
1998-06-01 21:06 ` Wes Bauske
1 sibling, 0 replies; 8+ messages in thread
From: Jay.Estabrook @ 1998-06-01 10:56 UTC (permalink / raw)
To: axp-list
>>> brinkmann@nmsu.edu said:
> I've had limited success installing modules on my system, an EB164 running
> 2.0.30.
>
> 2) Installing the sound module locks up the keyboard and mouse. I
> have a Soundblaster 16 card. The system still runs, since I
> can telnet in. I suspected an I/O address or IRQ conflict but
> find:
>
> Device IRQ Addresses
>
> Keyboard 1 ?
> PS/2 Mouse 12 ?
> Sound 7 audio 0x0220-33
> midi 0x0330
> game 0x0200-7
> synth 0x0388-B
> cdrom 0x0170-7
> 0x0376-7
>
> I get the same problem if I statically compile sound support
> into the kernel.
Don't use IRQ 7, that is normally the parallel port. Use 5, 9, 10, or 11.
Also, sound support as a module has been notoriously variable in stability.
--Jay++
-------------------------------------------------------------------------------
American Non Sequitur Society: we don't make sense, but we do like pizza...
Jay A Estabrook Alpha Motherboards - LINUX Project
Digital Equipment Corp. (508) 841-3241 or (DTN) 237-3241
334 South Street, Shrewsbury, MA 01545 Jay.Estabrook@digital.com
-------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Module problems
1998-06-01 17:49 brinkmann
1998-06-01 10:56 ` Jay.Estabrook
@ 1998-06-01 21:06 ` Wes Bauske
1 sibling, 0 replies; 8+ messages in thread
From: Wes Bauske @ 1998-06-01 21:06 UTC (permalink / raw)
To: axp-list
brinkmann@nmsu.edu wrote:
>
> I've had limited success installing modules on my system, an EB164 running
> 2.0.30.
>
> 1) The SCSI tape module loads without any problems and appears to
> work. I'm using an ISP 1020 (not 1020A), and an Exabyte 8500
> tape drive. The readme says that the driver doesn't support
> disconnects, so it will be very slow I get:
>
> % mt status
> SCSI 2 tape drive:
> File number=0, block number=1, partition=0.
> Tape block size 0 bytes. Density code 0x15 (EXB-8500 (RLL 45434 bpi)).
> Soft error count since last status=0
> General status bits on (5010000):
> WR_PROT ONLINE IM_REP_EN
> % dd if=/dev/tape bs=1024 count=1
> dd: /dev/tape: No space left on device
> 0+0 records in
> 0+0 records out
>
> with a write protected TAR tape in the drive. I get the same
> error with a write enabled tape in the drive.
>
I use SCSI 8mm on my Alphas under RH5.0 without problems.
The 'No space left on device' usually means you specified
reading a block size smaller than what is on the tape. In
particular, I think the default block size for a tar tape
is 10240. Try your dd with a block size at least 10240 and
it should work. Also, I've found using 'mt -f /dev/st0 setblk 0'
helps if you read tapes with variable length blocks. 8mm
tape drives are actually variable length block devices.
You can put pretty much any size block you want on them up
to the system limit. On some AIX systems, I've written up
to 256KB-1 block. Think you set that limit when you configure
Linux in the SCSI section. It asks about the maximum transfer
you want to handle.
Wes
^ permalink raw reply [flat|nested] 8+ messages in thread
* Module problems
@ 1997-08-04 3:43 Scott Cunningham
0 siblings, 0 replies; 8+ messages in thread
From: Scott Cunningham @ 1997-08-04 3:43 UTC (permalink / raw)
After doing a full install of the RH4.1 distribution (kernel version
2.0.27), the first thing I went to do was reconfigure the kernel to support
my ZIP drive as a module. I have spent the last week pulling my hair out
trying to figure out what I've done wrong. (I've done this before on an
Intel machine with no problems)
First problem: After rebooting with the new kernel, I do a insmod ppa and
get a file not found error. (Might be a problem with my MODPATH?)
Second problem: try giving the command with the full path to ppa and get an
error saying that the module was not linked properly ("did you use -dc when
linking")
Third: Went to Red Hat's website and read some of the tech notes and help
docs. One of them said to do a "depmod -a" after "make modules_install".
Tried it and found that the depmod binary was not on the system. So I
installed the modules-2.0.0 source and tried to recompile the programs and
got more errors than I would care to list.
Now I've decided to swallow my pride and ask for help.
Any and all help is greatly appreciated.
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~1998-06-02 10:08 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-02 0:51 Module problems brinkmann
1998-06-02 2:54 ` Wes Bauske
1998-06-02 10:06 ` Quant-X Alpha Linux Support
1998-06-02 5:52 ` Michal Jaegermann
-- strict thread matches above, loose matches on Subject: below --
1998-06-01 17:49 brinkmann
1998-06-01 10:56 ` Jay.Estabrook
1998-06-01 21:06 ` Wes Bauske
1997-08-04 3:43 Scott Cunningham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox