-   Linux - General (
-   -   mkisofs & symbolic links to directories (

Imek 10-28-2004 04:45 PM

mkisofs & symbolic links to directories

I've been trying to use ln, mkisofs and cdrecord to make MP3 CD's for my player. To achieve this I planned to put symbolic links to each album directory I want in a seperate directory, which I would then use mkisofs on to make my ISO image. However, when I use 'mkisofs -f' to do this, it follows the links - then just dumps all the contents of the symlinks to the root of the ISO image. In fact, it majorly messes up the names of all the files too, though the files themselves are intact. Is there any way to make mkisofs do it properly, or am I stuck with XCDRoast? I've been Ring TFM, but with no luck.


J.W. 10-28-2004 06:32 PM

I'd say just forget about the symlinks. Instead, create a new directory, which I'll call "/home/user/whatever", and copy the appropriate files into it. Next you would make your image file, which I'll call "my_image.img" by running this command

mkisofs -r -o my_image.img /home/user/whatever
Burn it to CD by running this command:

cdrecord -v speed=8 dev=0,0,0 -data my_image.img
Obviously you would want to adjust the speed parameter to fit your hardware. Good luck with it -- J.W.

All times are GMT -5. The time now is 04:10 PM.