zoukankan      html  css  js  c++  java
  • linux下制作ISO文件


    http://blog.chinaunix.net/uid-10449864-id-2956771.html


    linux下制作ISO文件有几种方法,分别如下:

    1,从光盘中制作ISO文件

    cp /dev/cdrom 路径/ISO 文件名

    例子:cp /dev/cdrom /opt/mycd.iso,也可以用 dd if=/dev/cdrom of=/opt/mycd.iso


    2,使用目录文件制作ISO文件

    mkisofs -r -o 路径/ISO 文件名 目录文件路径

    例子:mkisofs -r -o /opt/mycd.iso /home


    制作完ISO文件后,如何挂载呢?

    mount -o loop ISO文件名  挂载点路径

    例子:mount -o loop /opt/mycd.iso /mnt/cdrom


    将制作完的ISO文件刻录到光盘上:

    检测刻录机:

    cdrecord -scanbus

    会出现这样的信息:

    [root@localhost ~]# cdrecord -scanbus
    Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 J枚rg Schilling
    Note: This version is an unofficial (modified) version with DVD support
    Note: and therefore may have bugs that are not present in the original.
    Note: Please send bug reports or support requests to http://bugzilla.redhat.com/bugzilla
    Note: The author of cdrecord should not be bothered with problems in this version.
    scsidev: 'ATA'
    devname: 'ATA'
    scsibus: -2 target: -2 lun: -2
    Linux sg driver version: 3.5.27
    Using libscg version 'schily-0.8'.
    cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.83-RH '@(#)scsi-linux-sg.c        1.83 04/05/20 Copyright 1997 J. Schilling').
    scsibus1:
            1,0,0   100) 'DVDRW   ' 'IDE1004         ' '0043' Removable CD-ROM
            1,1,0   101) *
            1,2,0   102) *
            1,3,0   103) *
            1,4,0   104) *
            1,5,0   105) *
            1,6,0   106) *
            1,7,0   107) *


    光盘刻录机在linux下识别为SCSI设备,我们必须在结果中收集刻录机的SCSI设备识别号,才能在刻录命令中使用,可以看到cdrom的设备号是:1,0,0


    cdrecord -v speed=刻录速度 dev=刻录机设备号 ISO文件名

    例子:cdrecord -v speed=16 dev=1,0,0 /opt/mycd.iso





    <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
    阅读(696) | 评论(0) | 转发(0) |
    给主人留下些什么吧!~~
    评论热议
  • 相关阅读:
    团队作业(9)
    团队作业(8)
    团队作业(7)
    团队作业(6)
    团队作业(5)
    团队作业(4)
    团队作业(3)
    05数据爬去
    02周总结
    04结对开发
  • 原文地址:https://www.cnblogs.com/ztguang/p/12648380.html
Copyright © 2011-2022 走看看