文件 casper/filesystem.squashfs 已损坏

文件 casper/filesystem.squashfs 已损坏

我尝试使用 Xfburn 和 braseo 将 Lubuntu 12.04 刻录到 CD-RW,但它一直损坏。我尝试检查我的哈希值,但:

Lubuntu 12.04 i386$ md5sum -c md5sum.txt | grep -v "OK$"
md5sum: ./casper/filesystem.squashfs: Input/output error
./casper/filesystem.squashfs: FAILED open or read
md5sum: WARNING: 1 listed file could not be read

我的磁盘有足够的空间。此外,iso 的校验和也没有问题。

~/Desktop$ md5sum -c MD5SUMS.txt
md5sum: lubuntu-12.04-alternate-amd64+mac.iso: No such file or directory
lubuntu-12.04-alternate-amd64+mac.iso: FAILED open or read
md5sum: lubuntu-12.04-alternate-amd64.iso: No such file or directory
lubuntu-12.04-alternate-amd64.iso: FAILED open or read
md5sum: lubuntu-12.04-alternate-i386.iso: No such file or directory
lubuntu-12.04-alternate-i386.iso: FAILED open or read
md5sum: lubuntu-12.04-alternate-powerpc.iso: No such file or directory
lubuntu-12.04-alternate-powerpc.iso: FAILED open or read
md5sum: lubuntu-12.04-desktop-amd64+mac.iso: No such file or directory
lubuntu-12.04-desktop-amd64+mac.iso: FAILED open or read
md5sum: lubuntu-12.04-desktop-amd64.iso: No such file or directory
lubuntu-12.04-desktop-amd64.iso: FAILED open or read
lubuntu-12.04-desktop-i386.iso: OK <--------------------------------This is the file
md5sum: lubuntu-12.04-desktop-powerpc.iso: No such file or directory
lubuntu-12.04-desktop-powerpc.iso: FAILED open or read
md5sum: WARNING: 7 listed files could not be read

到底是怎么回事?

答案1

在 CD 的末尾,输入/输出错误并不罕见。(通常由写入类型“TAO”引起,这会在范围末尾创建两个非数据块,驱动器将其宣传为可读。又称“预读错误”。传统上,300 kB 的填充可使此错误无害。如果您选择了写入类型“SAO”,则不会发生这种情况。)

确保您尝试从 CD 读取的字节数与存储在原始 .iso 映像文件中的字节数相同。

ISO 映像的大小应该是 2048 的整数倍。例如,如果您的 .iso 文件的大小为 4,581,523,456 字节,则它有 2,237,072 个块。因此使用

dd if=/dev/sr0 bs=2048 count=2237072 | md5sum

(假设你的 CD 驱动器地址为 /dev/sr0)

读取完成后(希望没有 i/o 错误),然后在文件“md5sums.txt”中查找生成的 MD5 校验和。例如“a87d2796b7acf90fbe48dcaeb27dc7cc”

使用写入类型 SAO 写入 CD 的命令行示例:

xorriso -as cdrecord -v /dev/sr0 -sao -eject lubuntu-12.04-desktop-i386.iso

相同的选项也适用于程序 cdrecord 或 wodim,而不是“xorriso -as cdrecord”。

相关内容