LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   CD emulator (https://www.linuxquestions.org/questions/linux-software-2/cd-emulator-564570/)

fofire 06-26-2007 07:01 AM

CD emulator
 
Does anyone know of a CD emulator (like Alcohol or Daemon tools for windows) but made for Linux?

b0uncer 06-26-2007 07:11 AM

"CD emulator"..umm that's a weird term. Do you mean you would like to be able to use a CD image file instead of a real in-drive CD? It depends on what you need, but you can mount a CD image file to a directory like this:
Code:

mount -o loop /home/fofire/cdimage.iso /media/cdrom
which mounts the image to be a part of the filesystem (change path and filename accordingly!) in /media/cdrom. That's how you would mount a regular cdrom too, except that with images you need the loop option (and cdrom device file would be something like /dev/cdrom and not some .iso file).

If it's about games that do cd checks and so on, then I'm not sure if that's enough.

macemoneta 06-26-2007 07:17 AM

Well you can easily create images of CDs or DVDs with 'dd'. For example, if the CD/DVD drive is /dev/hdc:

dd if=/dev/hdc of=myimage.iso

The file then has the image of the CD/DVD. You can use the image of a CD/DVD as it it were a disk in a drive, by "loopback" mounting it. For example:

mkdir somedir
mount -t iso9660 myimage.iso somedir -o loop,ro

The above will create a directory (mountpoint) called somedir, and loopback mount the CD/DVD image. You can then use the files in "somedir/" as if the physical CD/DVD were mounted there.

fofire 06-26-2007 07:34 AM

Quote:

Originally Posted by b0uncer
"CD emulator"..umm that's a weird term. Do you mean you would like to be able to use a CD image file instead of a real in-drive CD? It depends on what you need, but you can mount a CD image file to a directory like this:
Code:

mount -o loop /home/fofire/cdimage.iso /media/cdrom
which mounts the image to be a part of the filesystem (change path and filename accordingly!) in /media/cdrom. That's how you would mount a regular cdrom too, except that with images you need the loop option (and cdrom device file would be something like /dev/cdrom and not some .iso file).

If it's about games that do cd checks and so on, then I'm not sure if that's enough.


Thanks for the help . . . yeah I want to mount a bin/cue in order watch movies.

I will try that option. I didnt think about Linux already haveing it programed into it.

Thanks again

Fofire

macemoneta 06-26-2007 07:43 AM

There's no reason in Linux to mount a bin/cue or iso to play a movie. You can play the bin file directly:

mplayer some.bin

If it's an iso image of a DVD, you can play it with (for example):

mplayer dvd://1 -dvd-device /home/myuser/some.iso

fofire 06-26-2007 10:54 AM

Quote:

Originally Posted by macemoneta
There's no reason in Linux to mount a bin/cue or iso to play a movie. You can play the bin file directly:

mplayer some.bin

If it's an iso image of a DVD, you can play it with (for example):

mplayer dvd://1 -dvd-device /home/myuser/some.iso


I feel so stupid for not trying that . . . you're right it works like that
Thanks

fofire


All times are GMT -5. The time now is 01:13 PM.