Use sudo to mount isos.
[blog.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 If you don't like cdrtools, there is also the fork [cdrkit][] which
22 dates back to a 2006 license dispute between cdrtools author Jörg
23 Schilling and the folks at Debian.
24
25 [cdrtools]: http://cdrecord.berlios.de/private/cdrecord.html
26 [Gentoo tutorial]: http://www.gentoo-wiki.info/HOWTO_ATAPI_CD_Burning
27 [ISO-9660]: http://en.wikipedia.org/wiki/ISO_9660
28 [Wikipedia]: http://en.wikipedia.org/wiki/ISO_9660#File_and_directory_name_restrictions
29 [cdrkit]: http://www.cdrkit.org/
30
31 [[!tag tags/linux]]
32 [[!tag tags/tools]]