Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions

  




 

 

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 [email protected]

 
 
  Published under the terms fo the GNU General Public License Design by Interspire