iso文件制作 linux,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

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

阅读(12047) | 评论(0) | 转发(2) |

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值