老文章,一直放在公司的wiki上,转过来归档,懒得再翻回来,凑或着看吧=。=
仅仅针对CUI,对倒腾感兴趣的可以看看。至于图形界面的工具,也就不介绍了
This article describes How to burn CDs in the Linux
Kernel Setup
Linux Kernel Configuration: ATAPI Support. You should make you system support the CDr devices.
Device Drivers -> ATA/ATAPI/MFM/RLL support ->
[*] ATA/ATAPI/MFM/RLL support
[*] Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
[*] Include IDE/ATAPI CDROM support
[*] generic/default IDE chipset support
|
Basic Tools Installation
Install the base tools :
User and Group
# gpasswd -a $username cdrw
# chmod 750 /usr/bin/cdrecord # chown squall:cdrw /usr/bin/cdrecord
|
og out and log in. User burning should work now.
If cdrecord still complains permissions denied ("Cannot open
'/dev/hdc'. Cannot open SCSI driver."), make sure the user who runs
cdrecord is also in the group which owns the CDRW drive (ie /dev/hdc).
The default group is cdrom:
# ls /dev/hdc -l
brw-rw---- 1 root cdrom 3, 64 Mar 23 12:58 /dev/hdc
|
Add the user to the cdrom group:
# gpasswd -a $username cdrom
|
log out, log in and try again.
Configure Device
To burn an iso with cdrecord you will have to find out the device id.
This is used to identify your burner on the scsi bus. Yes even for
ATAPI drives you will need the device id. Find it by issuing the
following command
# cdrecord dev=ATAPI -scanbus
|
It will give out put like below:
Cdrecord-ProDVD-Clone 2.01.01a11 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2006 JÃ;¶rg Schilling
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related Linux kernel interface code seems to be unmaintained.
Warning: There is absolutely NO DMA, operations thus are slow.
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) '_NEC ' 'DVD_RW ND-3540A ' '1.F1' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
|
Notice the 3 numbers seperated by commas, this is the device id that
should be used for cdrecord. Mine is 0,0,0 but yours could be different
so you need to replace it below with your device id.
Some people will advice to use dev=/dev/hdc but this is unsupported and
might not work. It might work for you, but it is wrong. Try this
method, however, if the recommended method returns no results.
Blank CD
use the command below to erase your CD
# cdrecord blank=fast dev=ATAPI:0,0,0
|
Change 0,0,0 with the device id you found
Burn CDRW
Preparing the ISO image
First, create a directory and then copy all the files you want to burn into /tmp/iso. Then create the image.iso
# mkdir /tmp/iso
# cp *.doc /tmp/iso
# mkisofs -o /tmp/image.iso /tmp/iso
|
Burn CD
To burn the iso use the following command. Replace the 0,0,0 (device id) with the id you found
cdrecord dev=ATAPI:0,0,0 /tmp/image.iso
|
You might also want to add driveropts=burnfree to turn on buffer
underrun protection. Note that your burner will have to support buffer
underrun protection for this to work.
Save the settings to the configure file
Create the config file for cdrecord:
/etc/default/cdrecord
And put there something like this:
mycdr=ATAPI:0,0,0 -1 -1 burnfree
CDR_DEVICE=mycdr
CDR_SPEED=24
CDR_FIFOSIZE=30000k
|
In this example the cd-r device is /dev/hdb, burnfree is enabled,
writing speed is reduced to 24x (set CDR_SPEED to -1 and max speed
supported by drive and media will be used) and fifo size is increased
to 30 megs.
阅读(2228) | 评论(0) | 转发(0) |