cdrecord says shmget failed

cdrecord says shmget failed

Post by Robert M. Riches J » Thu, 25 May 2000 04:00:00



I'm trying to use cdrecord on a basically stock Redhat 6.1 Alpha
system.  Following (or trying to follow) the How-To instructions,
I edited /etc/cdrecord.conf until it appears to be right.  Then,
I ran mkisofs.  Then I tried

    cdrecord -dummy /tmp/dobackup.iso

Here's what it gives (indentation mine):

    Cdrecord release 1.8a29 Copyright (C) 1995-1999 Jorg Schilling
    cdrecord: Invalid argument. shmget failed

(Well, there are two dots above the 'o' in the first name.)

I can successfully use the -scanbus and -inq switches.  However,
the -prcap switch gives essentially the message shown above.

Does the above message give any clue as to what I'm doing wrong?

Thanks.

Robert Riches

 
 
 

cdrecord says shmget failed

Post by Tony Hammit » Thu, 25 May 2000 04:00:00


Two ways to fix this:

Knock the fifo size down to 3 MB:

cdrecord -v fs=3m /tmp/dobackup.iso

or increase the shared memory maximum:

echo 5000000 > /proc/sys/kernel/shmmax

which only works on >= 2.2 version kernels

Using the 3MB fifo size is easier...

Regards,

Tony Hammitt


> I'm trying to use cdrecord on a basically stock Redhat 6.1 Alpha
> system.  Following (or trying to follow) the How-To instructions,
> I edited /etc/cdrecord.conf until it appears to be right.  Then,
> I ran mkisofs.  Then I tried

>     cdrecord -dummy /tmp/dobackup.iso

> Here's what it gives (indentation mine):

>     Cdrecord release 1.8a29 Copyright (C) 1995-1999 Jorg Schilling
>     cdrecord: Invalid argument. shmget failed

> (Well, there are two dots above the 'o' in the first name.)

> I can successfully use the -scanbus and -inq switches.  However,
> the -prcap switch gives essentially the message shown above.

> Does the above message give any clue as to what I'm doing wrong?

> Thanks.

> Robert Riches



 
 
 

cdrecord says shmget failed

Post by h0l0gRa » Thu, 25 May 2000 04:00:00



> Two ways to fix this:

> Knock the fifo size down to 3 MB:

> cdrecord -v fs=3m /tmp/dobackup.iso

> or increase the shared memory maximum:

> echo 5000000 > /proc/sys/kernel/shmmax

> which only works on >= 2.2 version kernels

> Using the 3MB fifo size is easier...

> Regards,

> Tony Hammitt

Or you can edit linux/include/asm-alpha/shmparam.h
change #define SHMMAX 0xverysamall
 to
#define SHMMAX 0x1000000

then recompile kernel

--
Bahdges?  We don't need no stinkin' bahdges!
                -- "The Treasure of Sierra Madre"

 
 
 

1. cdrecord: Invalid argument. shmget failed


I seem to remember getting this. It's trying to grab a chunk of shared
memory but the system won't give it. If you hack the code to ask for a
smaller chunk it works. I think there may be a command line argument
to do it without recompiling but I forget what it was. Sorry I can't
be more specific but I'm at work and my linux box is at home. Try
grepping the code for shmget.

Martin
_________________________________________________________________
We see here a curious instance of that frequent mental phenomenon
:- the precise inversion of the truth by a superficial view.
                                          Benjamin R. Tucker 1899

2. REDHAT 6.0 Boot problemes

3. How to get last created file name in a directory?

4. CDRECORD *shmget failed*

5. migrating to Linux from UNIX System 5 rel 4.0

6. Gdk-WARNING **: shmget failed!

7. Fixes for cmdtool

8. Shmget failed!

9. Help messg: Invalid argument. SHMGET failed.

10. Apache/Linux Failed Startup (shmget)

11. alpha : shmget failed && ethernet problems

12. "shmget failed!". kernel mem leak, maybe?