跳轉至內容

Linux 上的 ECM 檔案資料壓縮/可執行檔案壓縮

來自華夏公益教科書,自由的教科書

如何在 GNU/Linux 上壓縮或解壓縮 ECM 檔案?

ECM 格式允許您減少典型 CD 映象檔案的大小(ISO、BIN、CDI、NRG、CCD 或任何其他使用原始扇區的格式)。它透過儘可能地從每個扇區中消除錯誤校正/檢測程式碼 (ECC/EDC) 來實現。編碼器會自動適應不同的扇區型別,並自動跳過遇到的任何頭部。由於跳過的資料幾乎不可能用傳統工具壓縮,因此生成的 ECM 檔案將比原始 CD 映象壓縮得更好。

Linux 上的 ECM

[編輯 | 編輯原始碼]

安裝 “ecm” 包,它在 Debian 倉庫中可用

https://packages.debian.org/stretch/ecm

apt install "ecm"

使用 “ecm-compress” 命令

例子

      ecm-compress foo.bin
strips  the  ECC/EDC  data  from  the  foo.bin CD image and save the resulting file as foo.bin.ecm
      ecm-compress foo.img foobar
strips the ECC/EDC data from the foo.img  CD  image  and  save the resulting file as foobar

執行 “man ecm-compress” 以獲取更多資訊

解壓縮

[編輯 | 編輯原始碼]

使用 “ecm-uncompress” 命令

例子

      ecm-uncompress foo.bin.ecm
regenerate the ECC/EDC data from foo.bin.ecm and save the resulting CD image as foo.bin
      ecm-uncompress foo.img.ecm foobar
regenerate the ECC/EDC data from foo.img.ecm and save the resulting CD image as foobar

執行 “man ecm-uncompress” 以獲取更多資訊

華夏公益教科書