NSLU2-Linux
view · edit · print · history

OpenSlug.RecordCDROMandDVD History

Hide minor edits - Show changes to markup

April 23, 2006, at 08:05 PM by Robert Demski -- Changing ring buffer size from command line
Changed lines 90-91 from:
to:

It's possible to change ring buffer size from command line.

  • growisofs ... -use-the-force-luke=bufsize:16M ...

Option -use-the-force-luke=bufsize is undocumented (may be chenged in future). Additionally: dvd+rw-tools-6.1/growisofs.c states that minimum size is 1 MB and that only powers of 2 are permitted (i.e. 2M, 4M, ...).


April 12, 2006, at 02:10 AM by mrkzander --
Changed lines 77-79 from:

Actually 'growisofs' is very murderous. I found this in 'dmesg'
"Out of Memory: Killed process 2171 (rtorrent)"
In order to get enough resources to run 'growisofs' will kill any process in it's way.

to:

Actually, I've done some testing and 6x is the fastest I can record DVD's.

Added lines 127-130:

If you have problems with the above on DVD-R's try this

  • growisofs -use-the-force-luke=dao -dvd-compat -Z /dev/sr0=image.iso
April 10, 2006, at 04:02 PM by Chris Burghart burghartucaredu -- For Unslung, cdrtools is now available as a package, so that\'s now documented.
Changed lines 14-15 from:
  • Download the source from http://freshmeat.net/projects/cdrecord/
to:
  • If you're running Unslung, you can just install the cdrtools package:
ipkg install cdrtools
  • Otherwise, download the source from http://freshmeat.net/projects/cdrecord/, and follow the build instructions below.
Added lines 36-37:

If you installed the "cdrtools" package above, you can skip this part and move on to compiling CDRDAO.

Changed lines 90-93 from:

If your at this point then YEAH! pat yourself on the back, you can now record CD's and DVD's!

to:

If you're at this point then YEAH! pat yourself on the back, you can now record CD's and DVD's!

April 01, 2006, at 05:05 PM by mrkzander --
Changed lines 88-89 from:
to:

Known Problems

You will not be able to record files which are larger than 2GB. This is a 'mkisofs' limitation that probably won't be fixed any time soon.
If you need to save files larger that 2GB you could use UDF writing or record a raw data stream.

  • tar -czvf - /home/ | growisofs -Z /dev/sr0=/proc/self/fd/0

To read it back, access the CDROM directly with

  • tar tvzf /dev/sr0

Ofcourse, doing the above will only allow you to read the CDROM from a UNIX OS.

April 01, 2006, at 04:11 AM by mrkzander --
Changed lines 3-4 from:

If you are not familiar with setting up a compiler environment or compiling then I suggest you stop here.

to:

If you are not familiar with setting up a compiler environment or compiling then I suggest you stop here.

Changed lines 67-70 from:

Actually 'growisofs' is very murderous. I found this in 'dmesg'

"Out of Memory: Killed process 2171 (rtorrent)"

to:

The default compile of 'growisofs' will not run on Openslug. This is because by default 'growisofs' will try to reserve 32MB for buffer. Since the Slug only has 32MB of RAM the process will fail.
To get around this you have to lower the buffer to 16MB. But let me tell you will other processes running it's still a tight squeeze. There is barely enough room. The result of lowering the buffer size available to 'growisofs' will ofcourse reduce your maximum burn speed. So don't think that you will be able to do 16x burns, more like the max will be 8x.


Actually 'growisofs' is very murderous. I found this in 'dmesg'
"Out of Memory: Killed process 2171 (rtorrent)"\\

Changed lines 74-80 from:

The default compile of 'growisofs' will not run on Openslug. This is because by default 'growisofs' will try to reserve 32MB for buffer. Since the Slug only has 32MB of RAM the process will fail. To get around this you have to lower the buffer to 16MB. But let me tell you will other processes running it's still a tight squeeze. There is barely enough room. The result of lowering the buffer size available to 'growisofs' will ofcourse reduce your maximum burn speed. So don't think that you will be able to do 16x burns, more like the max will be 8x.

to:

April 01, 2006, at 04:05 AM by mrkzander --
Changed lines 65-67 from:

Writing a DVD will take up alot of slug resources. I would recommend that you kill all unneccesary processes to keep the idle time as high as possible. Not doing so will give you alot of coasters for your dinner table!!

to:

Writing a DVD will take up alot of slug resources. I would recommend that you kill all unneccesary processes to keep the idle time as high as possible. Not doing so will give you alot of coasters for your dinner table

Actually 'growisofs' is very murderous. I found this in 'dmesg'

"Out of Memory: Killed process 2171 (rtorrent)"

In order to get enough resources to run 'growisofs' will kill any process in it's way.

April 01, 2006, at 03:59 AM by just this guy -- typo in the growisofs command
Changed lines 102-103 from:
  • growisofs-dvd-compat -Z /dev/sr0=image.iso
to:
  • growisofs -dvd-compat -Z /dev/sr0=image.iso
April 01, 2006, at 03:45 AM by mrkzander --
Changed lines 12-13 from:

The most popular(only?) software for recording CD's on Linux is the CDRtools? package.

to:

The most popular(only?) software for recording CD's on Linux is the CDRtools? package. This package is also required for DVD recording.

Changed lines 20-21 from:

For DVD recording the DVD+RW-Tools package is required.

to:

For DVD recording the DVD+RW-Tools package is required. CDRtools? must also be installed for DVD recording to function.

Changed lines 92-93 from:

Format a DVD-+RW disc.

to:

Format a DVD+RW disc. (only needs to be done once!)

March 31, 2006, at 09:56 PM by mrkzander --
Changed lines 78-83 from:

If your at this point the YEAH! you can now record CD's and DVD's!

to:

If your at this point then YEAH! pat yourself on the back, you can now record CD's and DVD's!

March 31, 2006, at 09:56 PM by mrkzander --
Added lines 82-83:
Added line 88:
March 31, 2006, at 09:55 PM by mrkzander --
Added lines 36-38:

Then compile.

Added lines 43-44:

And Install.

Added lines 77-111:

If your at this point the YEAH! you can now record CD's and DVD's!

Sample commands

A good article to read on how to record CD/DVD's on Linux is http://www.linux.com/article.pl?sid=04/11/16/1555246

Format a DVD-+RW disc.

  • dvd+rw-format -blank /dev/sr0

Format a CD-RW disc.

  • cdrdao blank --device /dev/sr0

Record an ISO image to a DVD+-R

  • growisofs-dvd-compat -Z /dev/sr0=image.iso

Record an ISO image to a CD-r

  • cdrecord -v dev=/dev/sr0 image.iso

Backup files/directories to a DVD-+RW

  • growisofs -dvd-compat -Z /dev/sr0 -J -R /path/to/disc/root
March 31, 2006, at 09:46 PM by mrkzander --
Changed lines 40-44 from:
to:
  • make install

The files will be installed in '/opt/schily/bin' I found this to be a silly place to put them so I just moved everything in '/opt/schily' to '/usr/local'

Changed lines 52-53 from:
  • make
to:
  • make
  • make install
Changed lines 57-58 from:
to:

DVD+RW-Tools

Writing a DVD will take up alot of slug resources. I would recommend that you kill all unneccesary processes to keep the idle time as high as possible. Not doing so will give you alot of coasters for your dinner table!!

The default compile of 'growisofs' will not run on Openslug. This is because by default 'growisofs' will try to reserve 32MB for buffer. Since the Slug only has 32MB of RAM the process will fail. To get around this you have to lower the buffer to 16MB. But let me tell you will other processes running it's still a tight squeeze. There is barely enough room. The result of lowering the buffer size available to 'growisofs' will ofcourse reduce your maximum burn speed. So don't think that you will be able to do 16x burns, more like the max will be 8x.

To build with a smaller buffer size.

  • make WARN=-DDEFAULT_BUF_SIZE_MB=16
  • make +rpl8
  • make install
March 31, 2006, at 09:29 PM by mrkzander --
Changed lines 32-33 from:
to:

Just doing 'make' will screw up. There isn't a RULE for the ARM that the Slug uses. This fixes that problem.

  • cd ./RULES
  • cdrtools-2.01/RULES$ cp armv4l-linux-cc.rul armv5teb-linux-cc.rul
  • make

(be patient! The compile takes a while. You can safely ignore any non-fatal errors)

CDRDAO

The same thing applies here for the missing RULES as for CDRTools?. But this time the RULES have to be fixed in the 'scsilib' portion.

  • cd ./scsilib/RULES
  • cdrdao-1.2.1/scsilib/RULES$ cp armv4l-linux-cc.rul armv5teb-linux-cc.rul
  • cd ../../
  • make

(be patient! The compile takes a while. You can safely ignore any non-fatal errors)

March 31, 2006, at 09:22 PM by mrkzander --
Changed lines 20-23 from:
to:

For DVD recording the DVD+RW-Tools package is required.

  • Download the source from http://fy.chalmers.se/~appro/linux/DVD+RW/

Compile, Compile, Compile...

Now that you have the software you need to compile it. I won't describe how to setup the compile environment cause there's a good wiki on it. (You may need to install additional LIBs? over and above what the standard compile environment requires. My Openslug has soo much crap installed I can't be sure what the exact requirements are to compile the recording software!)

CDRTools?

March 31, 2006, at 09:17 PM by mrkzander --
Changed lines 12-13 from:

The most popular software for recording CD's is the CDRtools? package.

to:

The most popular(only?) software for recording CD's on Linux is the CDRtools? package.

March 31, 2006, at 09:16 PM by mrkzander --
Changed lines 5-7 from:

Your CDRW or DVDRW drive must be recognised in Linux. If you cannot mount a CDROM or DVDROM then you should not continue!

to:

Your CDRW or DVDRW drive must be recognised in Linux.

If you cannot mount a CDROM or DVDROM then you should not continue!

Changed lines 12-15 from:

The most popular software for recording CD's is the CDRtools? package.

Download the source from http://cdrecord.berlios.de/old/private/cdrecord.html

to:

The most popular software for recording CD's is the CDRtools? package.

  • Download the source from http://freshmeat.net/projects/cdrecord/

If you need to record Bin/TOC images or Erase(Blank) a CD ReWritable? from Openslug then you need to also get the CDRDAO package.

  • Download the source from http://cdrdao.sourceforge.net/
March 31, 2006, at 09:11 PM by mrkzander --
Changed lines 5-7 from:

Your CDRW or DVDRW drive must be recognised in Linux. If you cannot mount a CDROM or DVDROM then you should not continue!

to:

Your CDRW or DVDRW drive must be recognised in Linux. If you cannot mount a CDROM or DVDROM then you should not continue!

Added line 11:
March 31, 2006, at 09:10 PM by mrkzander --
Deleted line 0:
Changed lines 10-12 from:
to:

The most popular software for recording CD's is the CDRtools? package. Download the source from http://cdrecord.berlios.de/old/private/cdrecord.html

March 31, 2006, at 09:09 PM by mrkzander --
Added lines 1-13:

Record CDROM and DVDROM on Openslug

If you are not familiar with setting up a compiler environment or compiling then I suggest you stop here.

Your CDRW or DVDRW drive must be recognised in Linux. If you cannot mount a CDROM or DVDROM then you should not continue!

Required Software

view · edit · print · history · Last edited by Robert Demski.
Based on work by mrkzander, Chris Burghart burghartucaredu, and just this guy.
Originally by mrkzander.
Page last modified on April 23, 2006, at 08:05 PM