Jump to content

cdemu for linux


Recommended Posts

ok so i have a bin and cue files of a cd i have on my hard drive, normally on windows i will use daemon tools to mount it and then whatch the files in it , but in linux i have found a program called cdemu http://cdemu.sourceforge.net , ok now i have the tar file and i alread extracted it then here are the instructions on install it

 

Install

 

The install is quite simple:

 

   1. extract the archive:

      $ tar -jxvf cdemu-<VER>.tar.bz2

   2. you need the source of your current running kernel.

      /lib/modules/$(shell uname -r)/build/include needs to point at it.

   3. build the module:

      $ make

   4. install the module and user space utilities:

      $ sudo make install

   5. now simply load the kernel module:

      $ sudo modprobe cdemu

      (no message should be displayed after running modprobe)

   6. to load a bin/cue image:

      $ cdemu 0 image.cue

      $ mount /dev/cdemu/0 /mnt/cdrom

      (some things may be different on your system, YMMV)

   7. for more information, please review the help output:

      $ cdemu -h

 

i did the step one (that was easy) , then i dont know what else to do cause i tells me that i need the source fo my current kernel i have no idea how to get that done

 

so i skip to step 3 and typed make and this is what i got

[rdoggsv@bulletproof cdemu-0.7]$ make

make: *** No rule to make target `cdemu.ko', needed by `modules'.  Stop.

 

can someone point me in the right direction to get this software installed it will be really apreciated as usual :thanks:

 

Added:

Btw im running mandrake 10.1 powerpack

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

First: if it's just a movie, mplayer plays bin files without problems (open a console, cd to bin file and type: mplayer <name of>.bin. No need to use cdemu.

 

Source: Open a console, log in as root and type: uprmi kernel-source

 

Error: probably related to kernel source.

 

Good luck.

Link to comment
Share on other sites

ok i went to the urpmi and installed urpmi kernel-source

now looks like i got something else

 

[rdoggsv@bulletproof cdemu-0.7]$ make

make -C /usr/src/linux SUBDIRS=/home/rdoggsv/Documents/installers/cdemu-0.7 modules

make[1]: Entering directory `/usr/src/linux-2.4.27-0.pre2.1mdk'

make -C  /home/rdoggsv/Documents/installers/cdemu-0.7 CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.27-0.pre2.1mdk/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.27-0.pre2.1mdk/include/linux/modversions.h" MAKING_MODULES=1 modules

make[2]: Entering directory `/home/rdoggsv/Documents/installers/cdemu-0.7'

make[2]: *** No rule to make target `cdemu.ko', needed by `modules'.  Stop.

make[2]: Leaving directory `/home/rdoggsv/Documents/installers/cdemu-0.7'

make[1]: *** [_mod_/home/rdoggsv/Documents/installers/cdemu-0.7] Error 2

make[1]: Leaving directory `/usr/src/linux-2.4.27-0.pre2.1mdk'

make: *** [all] Error 2

i dont know why i never get to compile a software :(

 

ok so i noticed that by default urpmi installed a kernet 2.4.xxxx so i went and uninstalled it and with the same urpmi installed the kernel linux-2.6.8.1-24mdk , and now i have this

 

[rdoggsv@bulletproof cdemu-0.7]$ make

make -C /usr/src/linux SUBDIRS=/home/rdoggsv/Documents/installers/cdemu-0.7 modu

les

make[1]: Entering directory `/usr/src/linux-2.6.8.1-24mdk'

  CC [M]  /home/rdoggsv/Documents/installers/cdemu-0.7/cdemu.o

  Building modules, stage 2.

  MODPOST

  CC      /home/rdoggsv/Documents/installers/cdemu-0.7/cdemu.mod.o

  LD [M]  /home/rdoggsv/Documents/installers/cdemu-0.7/cdemu.ko

make[1]: Leaving directory `/usr/src/linux-2.6.8.1-24mdk'

 

[root@bulletproof cdemu-0.7]# make install

**** Installing files ****

install -D -m 644 cdemu.ko      /lib/modules/2.6.8.1-12mdk/misc/cdemu.ko

install -D -m 644 libcdemu.py  /usr/lib/python2.3/site-packages/libcdemu.py

install -D -m 755 cdemu        /usr/bin/cdemu

install -D -m 755 create_cdemu_devs.sh  /usr/bin/create_cdemu_devs.sh

sh create_cdemu_devs.sh

if no error did show up device files created ;-)

 

[root@bulletproof cdemu-0.7]# modprobe cdemu

FATAL: Error inserting cdemu (/lib/modules/2.6.8.1-12mdk/misc/cdemu.ko): Invalid module format

 

so finally i decided that i will burn the 2 bins that i have to a cd and whatch them :D because i dont think i will be able to install cd emu :D

 

btw they are not a movie are other files

Edited by rdoggsv
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...