On Wed, Jan 21 2004, Ljubomir Bozic Jr. wrote:
On Monday 19 January 2004 04:03, Carl Luescher wrote:
I would appreciate some help on how or what I need to do in order to compile cdmrw.c. I get tons of errors when using gcc -I and errors about functions because cdrom.h isn't found. Obviously not doing this correctly.
Thank you in advance /Carl
I'm not an expert, but I have tried this:
I use 2.6.2-mm4 kernel.
- Edit the cdmrw.c file if needed. Make sure that linux/cdrom.h points to mrw patched file from your 2.6.x kernel:
/* * you probably want to copy 2.6.0 (patched mrw) to /usr/include/linux * or change the include path */ #include <linux/cdrom.h>
In my case:
#include </usr/src/linux/include/linux/cdrom.h>
then I did:
gcc cdmrw.c -o cdmrw.bin
That should be it.
That's basically the way to go, since the glibc cdrom.h doesn't include the necessary mrw structures yet.
You can try to execute and see if cdmrw.bin gives you options output.
ljubich@hanuman ljubich $ ./cdmrw.bin ./cdmrw.bin: options: -d: <device> -f: <{restart, full} format type -F: force format -s: suspend format -p: poll for format completion
Somehow I hae managed to format it, but I don't know how to mount it or copy files on it
It behaves like a hard drive, essentially, although partitioning doesn't work on cdrom devices. So you just mkfs the device and mount it somewhere. -- Jens Axboe