LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   cant mount cds after recording them (https://www.linuxquestions.org/questions/linux-software-2/cant-mount-cds-after-recording-them-68688/)

bignester 06-28-2003 02:13 PM

cant mount cds after recording them
 
here is the command that I use to record CD's

cdrecord -v speed=16 driver=generic_mmc dev=0,0,0 driveropts=burnfree <the data files i want to include> -data

The writing procedure goes on without a problem.

But when try to mount it i an error

mount: wrong fs type, bad option, bad superblock on /dev/scd0,
or too many mounted file systems
Ive been able to make audio cds that work fine in the past. But my data cds arent working.

Could this be a drive problem, or is my command wrong.

MasterC 06-28-2003 05:09 PM

It's a command problem. Cdrecord does not create an iso9660 filesystem, instead it's just burning the data to the cd's as if it were an hd. I don't even know how to grab info from them after you have done that, or if it's even possible.

You need to create an iso first:
mkisofs -lJR /path/to/data /path/to/more/data

Now with that you have 2 choices, on the fly iso creation, meaning no iso is kept on the HD. If you are just going to burning this iso once, this is probably your best bet if your system can handle it, the syntax is:
mkisofs -lJR /path/to/data /path/to/more/data | cdrecord <options> -
Don't miss that last - on cdrecord. It's telling cdrecord to take the output from mkisofs as the input to burn the cd with. This creates the necessary filesystem on the CD to be able to read it.

If you want to keep the iso on the HD or if your system cannot handle creation on the fly, then:
mkisofs -lJR -o /path/to/image.iso /path/to/data /path/to/more/data &&
cdrecord <options> /path/to/image.iso

&& tells cdrecord not to start until mkisofs is completely finished and without errors. IF there are errors, cdrecord will not start at all.

HTH

Cool


All times are GMT -5. The time now is 03:10 AM.