I'm trying to create SquashFS partition under Ubuntu 11.04 (1TB harddisk, 8Gb RAM). Source folder contains 91Gb html files (several mirrored websites).
Trying to do this:
mksquashfs content_folder content.xz.sfs -comp xz
OR
mksquashfs content_folder content.gz.sfs
After several hours of processing i'm getting: 7.4Gb content.xz.sfs OR 9.1Gb content.gz.sfs But I can't mount them:
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
Last output line of mksquashfs (no stats at end):
[=======================================================-] 5296672/5296672 100%
Dmesg:
dmesg | tail
[3118916.840011] mksquashfs[14787]: segfault at 7fff08e20300 ip 0000000000406c46 sp 00007fff08e20300 error 6 in mksquashfs[400000+1e000]
Tried to repeat this process several times but i'm always getting segfault at 100% of compressing.
UPDATE: I just have got the same segfault at the stage of 100% under FreeBSD 8.1 (squashfs-tools 4.0)
Seems like this is mksquashfs bug