魅力博客

魅力Linux|魅力空间|魅力博客|学习Linux|ubuntu日记|电脑教程|手机软件

linux下制作ISO镜像文件的方法及刻录



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

返回顶部

发表评论:

Powered By Z-BlogPHP 1.7.3


知识共享许可协议
本作品采用知识共享署名 3.0 中国大陆许可协议进行许可。
网站备案号粤ICP备15104741号-1