Click to See Complete Forum and Search --> : mounting a cdrom?


BerkySizzle12
01-30-2001, 10:34 PM
How do u read a cd in linux? What are the commands?

Also how do u copy the files from the cd to a dir?

ph34r
01-30-2001, 10:37 PM
Well, you need to mount the cd and then use the cp command to copy the files.

mount -t iso9660 /dev/cdrom /mnt/cdrom

cp /mnt/cdrom/myfiles /home/myuser

/dev/cdrom should be a link to your /dev/hdX device (assuming ide stuff not scsi).

bobtcowboy
01-31-2001, 02:42 AM
mount -t iso9660 /dev/cdrom /mnt/cdrom

cp /mnt/cdrom/myfiles /home/myuser

/dev/cdrom should be a link to your /dev/hdX device (assuming ide stuff not scsi).


double checking here:

it would be

mount -t iso9660 /dev/scd0 /mnt/cdrom

for a scsi, right?

I've been reading Running Linux (3rd) and quizzing myself http://www.linuxnewbie.org/ubb/redface.gif)

Bill

Muzzafarath
01-31-2001, 04:16 AM
I think it's better to specify -t auto, so you wouldn't have to worry about if the CD is written i Joliet instead of ISO9660.

And yes, /dev/scd0 is the first CDROM unit in a SCSI chain (or if you've got SCSI emulation for your ATAPI cdrom turned on http://www.linuxnewbie.org/ubb/wink.gif).