Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* cdrecord SCSI
@ 1999-10-24  4:00 Raymonds Doetjes
  1999-10-24  4:00 ` Serguei Patchkovskii
  0 siblings, 1 reply; 5+ messages in thread
From: Raymonds Doetjes @ 1999-10-24  4:00 UTC (permalink / raw)


I have a problem with cdrecord.
When I want to run a cdrecord -scanbus i get the following response:
cdrecord:  No such file or directory. Cannot open SCSI driver.

I have all the modules installed (as for as I know)
sr_mod
sg
scsi_mod
and ofcourse the low level SCSI controler.

When I do a write like this:
cdrecord -v speed=4 dev=0,3,0 /image.raw
then I get this message:
TOC type:1 = CD ROM
cdrecord: Invalid argument. shmget failed.

How can I fix this so that I can write my CD's? I can read from this CD
drive so the communication is there.

Raymond




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: cdrecord SCSI
  1999-10-24  4:00 cdrecord SCSI Raymonds Doetjes
@ 1999-10-24  4:00 ` Serguei Patchkovskii
  1999-10-24  4:00   ` Michal Jaegermann
  1999-10-24  4:00   ` Raymonds Doetjes
  0 siblings, 2 replies; 5+ messages in thread
From: Serguei Patchkovskii @ 1999-10-24  4:00 UTC (permalink / raw)


Raymonds Doetjes (rdoetjes@node102bd.a2000.nl) wrote:
: TOC type:1 = CD ROM
: cdrecord: Invalid argument. shmget failed.

This must be a cdrecord FAQ. Either a) run cdrecord with smaller
buffer (not really a good idea), or b) increase the maximum size
of the SystemV shared memory arenas in Linux. See cdrecord
manual on how to accomplish a). See Linux kernel HOWTO on how
to do b).

/Serge.P

--
home page: http://www.cobalt.chem.ucalgary.ca/ps/



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: cdrecord SCSI
  1999-10-24  4:00 ` Serguei Patchkovskii
  1999-10-24  4:00   ` Michal Jaegermann
@ 1999-10-24  4:00   ` Raymonds Doetjes
  1999-10-24  4:00     ` Serguei Patchkovskii
  1 sibling, 1 reply; 5+ messages in thread
From: Raymonds Doetjes @ 1999-10-24  4:00 UTC (permalink / raw)


May I ask what the best buffersize is?
I now tried it on the command line with cdrecord and it works (That
means you have helped me).
Now I would like some advice of a good buffer size for the writer. Or a
good SySTEMV shared mem size. (I always assumed that was 4M on default)
probably not then.

Raymond


Serguei Patchkovskii wrote:

> Raymonds Doetjes (rdoetjes@node102bd.a2000.nl) wrote:
> : TOC type:1 = CD ROM
> : cdrecord: Invalid argument. shmget failed.
>
> This must be a cdrecord FAQ. Either a) run cdrecord with smaller
> buffer (not really a good idea), or b) increase the maximum size
> of the SystemV shared memory arenas in Linux. See cdrecord
> manual on how to accomplish a). See Linux kernel HOWTO on how
> to do b).
>
> /Serge.P
>
> --
> home page: http://www.cobalt.chem.ucalgary.ca/ps/




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: cdrecord SCSI
  1999-10-24  4:00 ` Serguei Patchkovskii
@ 1999-10-24  4:00   ` Michal Jaegermann
  1999-10-24  4:00   ` Raymonds Doetjes
  1 sibling, 0 replies; 5+ messages in thread
From: Michal Jaegermann @ 1999-10-24  4:00 UTC (permalink / raw)


Serguei Patchkovskii (patchkov@acs1.acs.ucalgary.ca) wrote:
: Raymonds Doetjes (rdoetjes@node102bd.a2000.nl) wrote:
: : TOC type:1 = CD ROM
: : cdrecord: Invalid argument. shmget failed.

: This must be a cdrecord FAQ.

Indeed!

: Either a) run cdrecord with smaller
: buffer (not really a good idea),

Actually a very good idea.  A default buffer size for cdrecord is 4M.
If you use instead 4000k (it may be really "nearly" 4M, some 96k is
missing or so, but 4000k is easier to remember :-) then cdrecord will
not notice this small difference and will be happy on all Linux/Alpha
kernels.  I wrote many CDs with such buffer on Linux/Alpha.  The only
failures we ever seen were when we got a batch of a substandard media.

'man cdrecord' explains two methods of setting a size of this
buffer.

or b) increase the maximum size
: of the SystemV shared memory arenas in Linux.

Hacking each and every kernel for such minor purpose is a major PITA.
But if you are running a kernel from 2.2 series you can change that
value in your startup scripts by simply "echoing" that new requested
size in bytes to /proc/sys/kernel/shmmax.  Still see above.

   Michal




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: cdrecord SCSI
  1999-10-24  4:00   ` Raymonds Doetjes
@ 1999-10-24  4:00     ` Serguei Patchkovskii
  0 siblings, 0 replies; 5+ messages in thread
From: Serguei Patchkovskii @ 1999-10-24  4:00 UTC (permalink / raw)


Raymonds Doetjes (rdoetjes@node102bd.a2000.nl) wrote:
: May I ask what the best buffersize is?

The bigest one you can have without degrading the performance of
your system, but not bigger that 700Mb or whereabouts ;-)

Or seriously: it depends on how are you going to use cdrecord.
With a 4x recorder, a four megabyte buffer gives you a cushion 
to survive a three-second hiccup in the data feed going into 
cdrecord. This is plenty for recording image files from a local
hard drive, so if you'll only do that, 4Mb is all you need.

If you are planning to record CDs with slower or less predictable
sources (like a pipe from mkisofs, or an image file on an NFS
file system, or, the worst combination, a pipe from mkisofs running
over an NFS file system ;-)), you'll probably have to increase the 
buffer size.

In fact, cdrecord gives you an indication on how well your buffer
is tuned to your situation: at the end of the recording session,
it will print the lowest low watermark in the buffer during the
recording session. If this value gets low (with "low" being 
determined by the variance in the feed speed), you'll have to
increase buffer size to ensure reliable recording sessions.
I'd say that having the low water mark below 50% is already too
low - but then I tend to be overly cautious ;-)

Cheers,

/Serge.P

--
home page: http://www.cobalt.chem.ucalgary.ca/ps/



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-10-24  4:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-24  4:00 cdrecord SCSI Raymonds Doetjes
1999-10-24  4:00 ` Serguei Patchkovskii
1999-10-24  4:00   ` Michal Jaegermann
1999-10-24  4:00   ` Raymonds Doetjes
1999-10-24  4:00     ` Serguei Patchkovskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox