天天看點

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

      

繼續閱讀