mkogg.py: Prefix imports with underscores for a clean namespace
[mw2txt.git] / posts / cdrtools.mdwn
1 [cdrtools][] is my package of choice for burning CDs, DVDs, etc.
2 There is a detailed [Gentoo tutorial][] to get you started, but usage
3 will look something like
4
5     $ mkdir /tmp/image
6     (populate /tmp/image)
7     $ mkisofs -o /tmp/image.iso /tmp/image
8     $ sudo cdrecord -eject dev=/dev/cdrom /tmp/image.iso
9
10 [ISO-9660][] has fairly strict filename restrictions, see `-iso-level`
11 in `mkisofs(8)` or [Wikipedia][] for details.
12
13 To rip an ISO from a CD, you can use
14
15     $ sudo readcd dev=/dev/cdrom f=/tmp/image.iso
16
17 You can mount an ISO using the `loop` option
18
19     $ sudo mount -o loop image.iso /mnt/image
20
21 To burn an audio CD (for old-school players that don't understand
22 filesystems), try something like:
23
24     $ cdrecord -v speed=1 dev=/dev/cdrom -eject -dao -audio -pad *.wav
25
26 To rip audio CDs, I usually use [abcde][].
27
28     $ abcde -o flac
29
30 If you don't like cdrtools, there is also the fork [cdrkit][] which
31 dates back to a 2006 license dispute between cdrtools author Jörg
32 Schilling and the folks at Debian.
33
34 [cdrtools]: http://cdrecord.berlios.de/private/cdrecord.html
35 [Gentoo tutorial]: http://www.gentoo-wiki.info/HOWTO_ATAPI_CD_Burning
36 [ISO-9660]: http://en.wikipedia.org/wiki/ISO_9660
37 [Wikipedia]: http://en.wikipedia.org/wiki/ISO_9660#File_and_directory_name_restrictions
38 [abcde]: http://code.google.com/p/abcde/
39 [cdrkit]: http://www.cdrkit.org/
40
41 [[!tag tags/linux]]
42 [[!tag tags/tools]]