[Linux] 使用 isoinfo+dd 指令,將光碟片內容轉成 ISO 檔

[Linux] 使用 isoinfo+dd 指令,將光碟片內容轉成 ISO 檔

今天想在 Linux 把一張光碟轉成 .iso 檔,

平常應該是可以用 dd 指令,

不過不曉得 block size 和 block count 要設成多少…

 

查了一下,可以用 isoinfo 指令來查看,例如:

testuser@localhost ~ $ isoinfo -d -i /dev/cdrom

CD-ROM is in ISO 9660 format
System id:
Volume id: J_CENA_X64FREV_EN-US_DV5
Volume set id: J_CENA_X64FREV_EN-US_DV5
Publisher id: MICROSOFT CORPORATION
Data preparer id: MICROSOFT CORPORATION, ONE MICROSOFT WAY, REDMOND WA 98052, (425) 882-8080
Application id: CDIMAGE 2.53 (01/01/2005 TM)
Copyright File id:
Abstract File id:
Bibliographic File id:
Volume set size is: 1
Volume set sequence number is: 1
Logical block size is: 2048
Volume size is: 1923455
El Torito VD version 1 found, boot catalog is in sector 22
NO Joliet present
NO Rock Ridge present
Eltorito validation header:
    Hid 1
    Arch 0 (x86)
    ID 'Microsoft Corporation'
    Key 55 AA
    Eltorito defaultboot header:
        Bootid 88 (bootable)
        Boot media 0 (No Emulation Boot)
        Load segment 0
        Sys type 0
        Nsect 8
        Bootoff 221 545

 

可以看到這張光碟的 Logical block size 是 2048、以及 Volume size 是 1923455,

於是我們可以用下面的 dd 指令,將光碟轉成 .iso 檔案:

dd if=/dev/cdrom of=Win10TH1.iso bs=2048 count=1923455 status=progress

 

加上 status=progress 參數,這樣可以一邊看到轉換進度,

否則預設是要全部轉完才有訊息的喔~

 

參考資料:Create an ISO Image from a source CD or DVD under Linux – Thomas-Krenn-Wiki

(本頁面已被瀏覽過 822 次)

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料