Go to TogaWare.com Home Page.
GNU/Linux Desktop Survival Guide
by Graham Williams
Google

cdrecord Problem: Cannot ...Bytes on /dev/zero


Under Debian, cdrecord version 1.10a18 was compiled with kernel version 2.4.x which has some incompatibilities with kernel version 2.2.x, resulting in an error in trying to mmap on /dev/zero.

The typical scenario is:

  # cdrecord -dummy -v dev=2,0,0 -data test.iso
  Cdrecord 1.10a18 (i686-pc-linux-gnu) 
  Copyright (C) 1995-2001 Jorg Schilling
  TOC Type: 1 = CD-ROM
  cdrecord: Invalid argument. 
  Cannot get mmap for 4198400 Bytes on /dev/zero.

and again:

  # mkisofs -r cdr/ | cdrecord speed=8 dev =0,1,0 tsize=281056s -data -
  Cdrecord 1.10a18 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jorg Schilling
  cdrecord: Invalid argument. Cannot get mmap for 4198400 Bytes on /dev/zero.

The solution is simply to recompile it:

  $ wajig build cdrecord

or

  $ wajig build cdrtools

Alternatively, install an older version of cdrecord that might be available on your machine in the archive of downloads:

  $ wajig install /var/cache/apt/archive/cdrecord_3%3a1.9-1_i386.deb


Copyright © 1995-2006 Graham.Williams@togaware.com
Contribue and access the PDF Version