2009-01-12 14:08:41

by Matthias Kaehlcke

[permalink] [raw]
Subject: [BUG?] SQUASHFS error: Major/Minor mismatch

i get the following error when trying to mount a squashfs partition on
an ARM system (edb9302) with linux 2.6.29-rc1:

mount /dev/mtdblock6 /mnt/
SQUASHFS error: Major/Minor mismatch, older Squashfs 3.1 filesystems
are unsupported
mount: mounting /dev/mtdblock6 on /mnt/ failed: Invalid argument

the image has been created using mksquashfs v3.4:

mksquashfs . /tmp/rootfs.squfs -le -noappend

--
Matthias Kaehlcke
Embedded Linux Engineer
Barcelona

La libertad es como la ma?ana. Hay quienes esperan dormidos a que
llegue, pero hay quienes desvelan y caminan la noche para alcanzarla
(Subcomandante Marcos)
.''`.
using free software / Debian GNU/Linux | http://debian.org : :' :
`. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4 `-


2009-01-12 14:49:56

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: [BUG?] SQUASHFS error: Major/Minor mismatch

On Mon, 12 Jan 2009, Matthias Kaehlcke wrote:
> i get the following error when trying to mount a squashfs partition on
> an ARM system (edb9302) with linux 2.6.29-rc1:
>
> mount /dev/mtdblock6 /mnt/
> SQUASHFS error: Major/Minor mismatch, older Squashfs 3.1 filesystems
> are unsupported
> mount: mounting /dev/mtdblock6 on /mnt/ failed: Invalid argument
>
> the image has been created using mksquashfs v3.4:
>
> mksquashfs . /tmp/rootfs.squfs -le -noappend

You have to use a version of mksquashfs that creates file systems with the v4.0
layout, i.e. from the squashfs-tools on SourceForge.net:

git-cvsimport -v -d :pserver:[email protected]:/cvsroot/squashfs squashfs

With kind regards,

Geert Uytterhoeven
Software Architect

Sony Techsoft Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium

Phone: +32 (0)2 700 8453
Fax: +32 (0)2 700 8622
E-mail: [email protected]
Internet: http://www.sony-europe.com/

A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010

2009-01-12 14:53:25

by Phillip Lougher

[permalink] [raw]
Subject: Re: [BUG?] SQUASHFS error: Major/Minor mismatch

Matthias Kaehlcke wrote:
> i get the following error when trying to mount a squashfs partition on
> an ARM system (edb9302) with linux 2.6.29-rc1:
>
> mount /dev/mtdblock6 /mnt/
> SQUASHFS error: Major/Minor mismatch, older Squashfs 3.1 filesystems
> are unsupported
> mount: mounting /dev/mtdblock6 on /mnt/ failed: Invalid argument
>
> the image has been created using mksquashfs v3.4:
>
> mksquashfs . /tmp/rootfs.squfs -le -noappend
>

You have to use the latest version of Mksquashfs in CVS available
from http://squashfs.org.

git-cvsimport -v -d :pserver:[email protected]:/cvsroot/squashfs squashfs

Phillip

2009-01-12 15:06:21

by Matthias Kaehlcke

[permalink] [raw]
Subject: Re: [BUG?] SQUASHFS error: Major/Minor mismatch

El Mon, Jan 12, 2009 at 03:49:36PM +0100 Geert Uytterhoeven ha dit:

> On Mon, 12 Jan 2009, Matthias Kaehlcke wrote:
> > i get the following error when trying to mount a squashfs partition on
> > an ARM system (edb9302) with linux 2.6.29-rc1:
> >
> > mount /dev/mtdblock6 /mnt/
> > SQUASHFS error: Major/Minor mismatch, older Squashfs 3.1 filesystems
> > are unsupported
> > mount: mounting /dev/mtdblock6 on /mnt/ failed: Invalid argument
> >
> > the image has been created using mksquashfs v3.4:
> >
> > mksquashfs . /tmp/rootfs.squfs -le -noappend
>
> You have to use a version of mksquashfs that creates file systems with the v4.0
> layout, i.e. from the squashfs-tools on SourceForge.net:
>
> git-cvsimport -v -d :pserver:[email protected]:/cvsroot/squashfs squashfs

thanks to both of you for the pointer!

--
Matthias Kaehlcke
Embedded Linux Engineer
Barcelona

Ma patrie est o? je suis, o? personne ne me d?range, o? personne
ne me demande que je suis, d'o? je viens et ce que je fais
(B. Traven)
.''`.
using free software / Debian GNU/Linux | http://debian.org : :' :
`. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4 `-

2009-01-12 22:24:22

by Woody Suwalski

[permalink] [raw]
Subject: Re: [BUG?] SQUASHFS error: Major/Minor mismatch

Phillip Lougher wrote:
> Matthias Kaehlcke wrote:
>> i get the following error when trying to mount a squashfs partition on
>> an ARM system (edb9302) with linux 2.6.29-rc1:
>>
>> mount /dev/mtdblock6 /mnt/
>> SQUASHFS error: Major/Minor mismatch, older Squashfs 3.1 filesystems
>> are unsupported
>> mount: mounting /dev/mtdblock6 on /mnt/ failed: Invalid argument
>>
>> the image has been created using mksquashfs v3.4:
>>
>> mksquashfs . /tmp/rootfs.squfs -le -noappend
>>
>
> You have to use the latest version of Mksquashfs in CVS available
> from http://squashfs.org.
>
> git-cvsimport -v -d
> :pserver:[email protected]:/cvsroot/squashfs
> squashfs
>
> Phillip
>
Does not look good! I have squashfs images which work OK in 3.3 and 3.4,
but now I try to boot 2.6.29-rc1 and it can not mount my squashfs root
partition!
Does it mean that squashfs4 is not backward-compatible? If so - I can
not use it - all my images are generated on 3.3 .. 3.4...

Woody

--
Woody Suwalski, Xandros, Ottawa, Canada, 1-613-842-3498 x414

2009-01-13 09:00:36

by Phillip Lougher

[permalink] [raw]
Subject: Re: [BUG?] SQUASHFS error: Major/Minor mismatch

Woody Suwalski wrote:
> Phillip Lougher wrote:
>>
>> You have to use the latest version of Mksquashfs in CVS available
>> from http://squashfs.org.
>>
>> git-cvsimport -v -d
>> :pserver:[email protected]:/cvsroot/squashfs
>> squashfs
>>
>> Phillip
>>
> Does not look good! I have squashfs images which work OK in 3.3 and 3.4,
> but now I try to boot 2.6.29-rc1 and it can not mount my squashfs root
> partition!
> Does it mean that squashfs4 is not backward-compatible? If so - I can
> not use it - all my images are generated on 3.3 .. 3.4...
>

Backwards compatibility was dropped as part of the original review
complaints against mainlining. The new 4.0 layout was necessary to address
some issues again relating to the original review complaints. The 4.0
layout is designed to hopefully not require any further modification in the
future.

Ultimately this does mean the Squashfs mainline code will never be able to
read older filesystems. But, unsquashfs will always be able to read all
filesystem versions, and I'll maintain out-of-tree patches that add
backwards compatibility to the kernel code for those that need it. This
should be finished in the near future.

Philllip