Ubuntu 光盘制作成ISO文件
2015-01-22 by dongnan
目标
Ubuntu 使用命令将DVD
光盘制作成ISO
文件
步骤
第1步,确定设备编号
# usb 光驱
lsusb | grep -i dvd
Bus 002 Device 006: ID 0e8d:1806 MediaTek Inc. Samsung SE-208AB Slim Portable DVD Writer
# 设备编号 sr2
dmesg | tail
[ 6578.315107] usb-storage 2-1.4:1.0: USB Mass Storage device detected
[ 6578.315168] scsi7 : usb-storage 2-1.4:1.0
[ 6579.323134] scsi 7:0:0:0: CD-ROM TSSTcorp CDDVDW SE-208DB TS00 PQ: 0 ANSI: 0
[ 6579.364268] sr2: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
[ 6579.364491] sr 7:0:0:0: Attached scsi CD-ROM sr2
[ 6579.364636] sr 7:0:0:0: Attached scsi generic sg5 type 5
[ 6678.190323] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 6678.265092] ISO 9660 Extensions: RRIP_1991A
[ 6737.179350] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 6737.238942] ISO 9660 Extensions: RRIP_1991A
# 确认为USB DVD光驱设备为: /dev/sr2
lsscsi | grep -i dvd
[1:0:0:0] cd/dvd TSSTcorp DVD+-RW TS-U633J D800 /dev/sr0
[6:0:0:0] cd/dvd Yulong CDROM /dev/sr1
[7:0:0:0] cd/dvd TSSTcorp CDDVDW SE-208DB TS00 /dev/sr2
第二步,插入光盘
略..
第三步,使用dd
命令读取光盘并写入ISO文件
time dd if=/dev/sr2 of=test.iso
9017152+0 records in
9017152+0 records out
4616781824 bytes (4.6 GB) copied, 1164.5 s, 4.0 MB/s
real 19m24.538s
user 0m2.810s
sys 0m40.763s
弹出光盘(可选)
eject /dev/sr2
验证
file
命令可以查看文件类型
file test.iso
test.iso: # ISO 9660 CD-ROM filesystem data 'NeoKylin Linux Advanced Server 6' (bootable)
扩展
相反 dd
命令也可以将iso
文件中的数据写入空白的 DVD光盘。