免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2370 | 回复: 0
打印 上一主题 下一主题

linux下制作iso文件 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-10-22 18:56 |只看该作者 |倒序浏览

                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
               
               
               
               
               

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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP