Skip to contentSkip to conversation

SQUASHFS error: Major/Minor mismatch

BUG? Matthias Kaehlcke 4 participants 6 messages Jan 12, 2009 – Jan 13, 2009

lore
Share & tools
lore
#0 lore raw

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

Signature · 11 lines
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                  `-
#1 lore raw
Quoted 11 lines · Matthias Kaehlcke

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

#2 lore raw

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

Quoted 9 lines · Matthias Kaehlcke
Quoted 8 lines

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

Quoted 8 lines
Quoted 3 lines

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!

Signature · 11 lines
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                  `-
#3 lore raw
In reply to Matthias Kaehlcke
Quoted 12 lines · Matthias Kaehlcke

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

#4 lore raw
Quoted 14 lines · Phillip Lougher
Quoted 12 lines · Matthias Kaehlcke

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

Quoted 7 lines

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

Signature · 1 line
Woody Suwalski, Xandros, Ottawa, Canada, 1-613-842-3498 x414
#5 lore raw
Quoted 5 lines · Woody Suwalski
Quoted 4 lines · Phillip Lougher

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

Quoted 7 lines
Quoted 4 lines

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