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

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


Support further development by purchasing the PDF version of the book.
Other online resources include the Data Science Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 1995-2020 Togaware Pty Ltd. . Creative Commons ShareAlike V4.