Linux下将dvd转成iso文件


Linux下将dvd转成iso文件
 
=========
dvd转iso
=========
[root@CC01 yum.repos.d]# dd if=/dev/sr0 of=/home/windows7_x86.iso 5182208+0 records in
5182208+0 records out
2653290496 bytes (2.7 GB) copied, 365.753 s, 7.3 MB/s
[root@CC01 yum.repos.d]#
Message from syslogd@CC01 at Aug 30 10:02:30 ...
 kernel:EDAC MC0: UE row 1, channel-a= 0 channel-b= 1 labels "-": (Branch=0 DRAM-Bank=6 RDWR=Read RAS=16339 CAS=0 FATAL Err=0x4 (>Tmid Thermal event with intelligent throttling disabled))
 
[root@CC01 yum.repos.d]# cp /dev/cdrom /home/win7.iso
note:if是指源设备,of是指输出设备,这里/dev/sr0是光驱设备。
 
=========
将目录转iso
=========
[root@CC01 etc]# mkisofs -V repo -o /home/repo.iso /etc/yum.repos.d I: -input-charset not specified, using utf-8 (detected in locale settings)
Total translation table size: 0
Total rockridge attributes bytes: 0
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 0
180 extents written (0 MB)
 
[root@CC01 etc]# cd /home
[root@CC01 home]# ls
iso  repo.iso  software  system
 
[root@CC01 home]# mount repo.iso /mnt -o loop [root@CC01 home]# cd /mnt
[root@CC01 mnt]# ls
epel.rep  local.rep  packagek.rep  redhat.rep  rhel_sou.rep  rpmfusio.rep
 
note:-V 是指卷标,不用也可以。

相关内容

    暂无相关文章