压缩时SquashFS mksquashfs段错误

我试图在Ubuntu 11.04(1TB硬盘,8Gb RAM)下创buildSquashFS分区。 源文件夹包含91Gb的html文件(几个镜像网站)。

试图做到这一点:

mksquashfs content_folder content.xz.sfs -comp xz OR mksquashfs content_folder content.gz.sfs 

经过几个小时的处理后,我得到:7.4GB的content.xz.sfs或9.1GB的content.gz.sfs但我无法安装它们:

 root@server:/backup# file content.xz.sfs content.xz.sfs: data root@server:/backup# mount -t squashfs -o loop content.xz.sfs /mnt/sfs mount: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so 

mksquashfs的最后一行输出(最后没有统计):

 [=======================================================-] 5296672/5296672 100% 

dmesg的:

 dmesg | tail [3118916.840011] mksquashfs[14787]: segfault at 7fff08e20300 ip 0000000000406c46 sp 00007fff08e20300 error 6 in mksquashfs[400000+1e000] 

试图重复这个过程几次,但我总是在100%的压缩段错误。

更新:我只是在FreeBSD 8.1(squashfs-tools 4.0)下的100%阶段获得了同样的segfault

似乎这是mksquashfs错误

你有没有试过最新版本的squashfs-tools,4.2? 至less有一个版本偶尔会出现重复文件检测的错误。 您也可以尝试将“-no-duplicates”parameter passing给mksquashfs。