Cannot mount Squashfs

Werner Schram wrschram at
Fri Feb 5 10:52:44 UTC 2010

On Fri, Feb 5, 2010 at 4:25 AM, Detlef Lechner <Detlef.Lechner at> wrote:
> Hello Werner,
> Am Donnerstag, den 04.02.2010, 18:20 +0100 schrieb Werner Schram:
>> What is the output of 'dmesg | tail' right
>> after you try to mount the file?

Hmm, nothing notable.

>> And which ubuntu version are you using?
> Ubuntu 9.10 all current updates.
>> There seem to be problems with squashfs-3.1 and squashfs-4.0 which might
>> be related to your problem.
> I agree but I do not know to solve it.
>> I don't know what exactly you are trying to do,
> I am trying to use sage for mathematical calculations. I did not use
> sage before.

I should have posed my question better. I was wondering if your goal
was to extract files from the squashfs file, or if you want to change
the content of the squashfs-image, or maybe something else.

>> but maybe the unsquashfs
>> command from the squashfs-tools package can help you get better results.
> I cannot imagine how that could function.

unsquashfs extracts the contents of the file to a target directory.
Because squashfs-tools is developed and distributed seperately from
the kernel module, it might be able to handle squashfs images which
you can't mount.

If you install squashfs-tools (sudo apt-get install squashfs-tools),
you can use the unsquashfs command to extract the files from the

unsquashfs /home/detlef/Naturwissenschaften/Mathematik/sage-4.3.1.sqfs -d /tmp/x

Possibly you can specify which files you want to extract. I'm
currently at a location at which I don't have a test machine handy to
check that. If you use the -ls option, you can list the files inside
the image:

unsquashfs /home/detlef/Naturwissenschaften/Mathematik/sage-4.3.1.sqfs -ls


More information about the ubuntu-users mailing list