CD Burning Tips
From ArchWiki
| i18n |
|---|
| English |
| Italiano |
This document outlines various methods of burning CDs.
[edit] Commandline CD-burning
[edit] Install cd-burning utilities
# pacman -Sy cdrkit
And if you intend to use cdrdao (for writing cue/bin files to cd)
# pacman -S cdrdao
[edit] Setting permissions
Users that should be able to use cd/dvd burning devices must have permissions to access the devices. If you are using udev (which is default in Archlinux kernels), you only need to add the user(s) to the optical group:
# gpasswd -a <username> optical
[edit] Modifying the CD-RW
For the remainder of this section the name of your recording device is assumed to be /dev/cdrw. If that is not the case, modify the commands accordingly. In order to write to the CD it needs to be unmounted. If it is not, wodim will give you an error message.
[edit] Erasing CD-RW
CD-RW media usually need to be erased before you can write new data on it. To blank cd-rw medium use this command:
wodim -v dev=/dev/cdrw -blank=fast
As you might have guessed, this blanks your medium really fast, but you can also use some other options, just replace the word fast with one of the following:
- all
- blank the entire disk
- disc
- blank the entire disk
- disk
- blank the entire disk
- fast
- minimally blank the entire disk (PMA, TOC, pregap)
- minimal
- minimally blank the entire disk (PMA, TOC, pregap)
- track
- blank a track
- unreserve
- unreserve a track
- trtail
- blank a track tail
- unclose
- unclose last session
- session
- blank last session
[edit] Burning an iso-image
To burn an iso-image run:
wodim -v dev=/dev/cdrw isoimage.iso
[edit] Burning a bin/cue
To burn a bin/cue image run:
cdrdao write --device /dev/cdrw image.cue
[edit] Making an iso-image from an existing cd
To copy an existing cd just type:
dd if=/dev/cdrw of=/home/user/isoimage.iso
or even simpler:
cat /dev/cdrw > isoimage.iso
Or use readcd program, also in the cdrtools package
readcd -v dev=/dev/cdrw -f isoimage.iso
If the original cd was bootable it will be a bootable image.
[edit] Making an iso-image from existing files on harddisk
To make an iso-image just copy the needed files to one folder, then do a
mkisofs -V volume_name -J -r -o isoimage.iso ~/folder
[edit] Mounting an iso-image
To test if the iso image is proper, you can mount it:
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom
[edit] Converting to iso-image
To convert a .img / ccd image, you can use ccd2iso :
pacman -Sy ccd2iso ccd2iso /home/archman/image.img /home/archman/image.iso
[edit] Burning CDs with a GUI
There are several applications available to burn CDs in a graphical environment. The use of these programs are self-explanatory.
[edit] Nero Linux
Just the same Nero on windows. Official link|AUR package
It's not free and the UI is not as good as the windows version. Also, 3.0.0 beta can't burn bootable cd from files correctly.
If you happen to have a DVD-burner unsupported by dvd+rw-tools (which also means k3b and all other free GUIs), nero would be your only choice.
[edit] K3B
According to http://www.k3b.org, k3b is "The CD/DVD Kreator for Linux - optimized for KDE". k3b uses the QT toolkit.
- Install k3b with pacman.
# pacman -Sy k3b
- As root, run
k3bsetup, - Here you can set up your preferences about permissions etc.
- Run
k3bto run the main program.
[edit] Gnomebaker
Gnomebaker is a solution to CD burning if you are using Gnome. Gnomebaker is no longer maintained upstream as the author of the program has indicated. Consider using Brasero instead.
- Install gnomebaker with pacman.
# pacman -Sy gnomebaker
- Run
gnomebakerto run the main program.
[edit] Brasero
Brasero is another solution to CD burning if you are using Gnome.
- Install brasero with pacman.
# pacman -Sy brasero
- Run
braseroto run the main program.
[edit] Graveman
Graveman is a simple and almost dependency-free application for burning CDs.
- Install graveman with pacman.
# pacman -Sy graveman
- As root, run graveman, go to menu File > Preferences... > Devices and add your CD burners.
- Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc
- Run
gravemanto run the main program.
[edit] Bashburn
Alternatively theres also Bashburn in AUR as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It's not the best looking CD-burning application out there, but it does what you want it to do.
[edit] Troubleshooting
[edit] PATA and SATA problems around 2.6.20/2.6.21
For some kernels on some machines, CD burning works very unreliably. This is not fully diagnosed but appears to be related to DMA and having SATA Hard Drives and older IDE CD/DVD Burners and is possibly more prevalent on PIIX Motherboards. On newer kernels there is a new driver whereby the CD/DVD Burner behaves as if it is a SCSI drive, even though it isn't.
The symptom for this problem is an almost total refusal to burn anything at all. It 'seems' to work fine, but if you verify the burn it invariably fails. If this is happening to you and you have an IDE burner try this fix.
You will need to install mkinitcpio as described here,Configuring_mkinitcpio so you can rebuild the kernel. You now need to reconfigure your /etc/mkinitcpio.conf file to reuse the old IDE drivers.
gedit /etc/mkinitcpio.conf
Find the line:
MODULES="ata_generic ata_piix"
and change it to (insert piix in the front)
MODULES="piix ata_generic ata_piix"
Then, find the line:
HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"
and change that to (replace pata with ide)
HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"
Use mkinitcpio to rebuild the kernel as described in it's own wiki page, and reboot. In brief :
mkinitcpio -g /boot/kernel26.img