免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1025 | 回复: 0

Linux下刻录CD/DVD [复制链接]

论坛徽章:
0
发表于 2007-10-19 10:39 |显示全部楼层

                                老文章,一直放在公司的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 :
    # emerge cdrtools
    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 CDuse 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.
                   
                   
                   
                   

    本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/34010/showart_403551.html
  • 您需要登录后才可以回帖 登录 | 注册

    本版积分规则 发表回复

      

    北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
    未成年举报专区
    中国互联网协会会员  联系我们:huangweiwei@itpub.net
    感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

    清除 Cookies - ChinaUnix - Archiver - WAP - TOP