GNU/Linux Desktop Survival Guide by Graham Williams |
|||||
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 |
$ wajig build cdrtools |
$ wajig install /var/cache/apt/archive/cdrecord_3%3a1.9-1_i386.deb |