Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Programming in Linux _ Copying Files Onto Cdrom Using Unix Commands

Posted by: jetpacmidge Jun 2 2005, 10:22 AM

I am new to using SUSE linux 9.0 I am having difficulty in copying files from a directory onto a CDROM using UNIX commands.
So far I have been able to mount the CDROM and view the files on the CDROM. When I try to copy files onto the CDROM, they are stored in the directory /media/cdrom and not on the CDROM.

The commands I have been using are as follows :-

mount -o rw -f dev/cdrom

cp -R Tadburn (directory) /media/cdrom

When I type in the following command :-

more /etc/fstab

dev/cdrecorder /media/cdrecorder auto ro,auto,user,exec

dev/cdrom /media/cdrom auto ro,auto,user,exec

Any help to resolve my problem would be much appreciated.



Andy M.

Posted by: DS2K3 Jun 2 2005, 11:35 AM

CD-Rom = Comapact Disk - READ ONLY Memory

I guess you eman CD-R - However, you cant jsut copy files onto a CD - they are not random access like hard disks or floppy disks. Use a program like "k3b" to burn CDs, just like you would use Nero etc. on Windows.


Posted by: michaelk Jun 2 2005, 06:50 PM

Futhermore, linux does not use the /etc/fstab file for writing to a CD ie. it writes to the actual device. cdrecord is the command line application for writing to a CD.

so a typical cdrecord command line would look like:
cdrecord -v speed=24 -dev=ATA:1,0,0 cd.image (2.6 kernel)
cdrecord -v speed=24 -dev=1,0,0 cd.image (2.4 kernel)

Powered by Invision Power Board (
© Invision Power Services (