Strona 1 z 1

Czym otworzyć pliki typu *.sqfs

: 20 października 2013, 00:33
autor: valdi72osw
Czym otworzyć *.sqfs -problem
Witam
Mam system operacyjny który ładuje się z plików *.sqfs
chciałbym go zmodyfikować na swoje potrzeby

I tu się pojawia problem mimo wiedzy zaczerpniętej z internetu nie moge rozpakować tych plik↓w
dowiedziałem się że pliki te są spakowane przy użyciu pakietu squashfs-tools
posiada ona unsqashfs i mksquashfs - do pakowania i rozpakowywania

Przy próbie rozpakowania mam :

Kod: Zaznacz cały

root@kali:/test# unsquashfs bin.sqfs /test/wyp
Parallel unsquashfs: Using 2 processors
gzip uncompress failed with error code -3
read_block: failed to read block @0x16ff13
read_fragment_table: failed to read fragment table block
FATAL ERROR:failed to read fragment table

Kod: Zaznacz cały

root@kali:/test# unsquashfs -d sbin.sqfs /test/wyp
Read on filesystem failed because Is a directory
Read on filesystem failed because Is a directory
Can't find a SQUASHFS superblock on /test/wyp

Kod: Zaznacz cały

root@kali:/test# mount sbin.sqfs /test/wyp/
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

Kod: Zaznacz cały

root@kali:/test# mount -o loop sbin.sqfs /test/wyp/
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
Czy ktoś mi powie co robie żle gdzie tkwi mój błąd?

: 20 października 2013, 01:36
autor: Rafal_F
http://wiki.sagemath.org/UsingSquashFS
http://www.soslug.org/wiki/mounting_com ... le_systems
Przykład:

Kod: Zaznacz cały

mount -o loop -t squashsfs /sciezka/do/pliku.sqfs /media/punkt_montowania
Punkt montowania to katalog do którego chcesz zamontować system plików. Musisz go utworzyć przed próbą montowania.

: 20 października 2013, 23:46
autor: valdi72osw
Tak już robiłem oto efekt

Kod: Zaznacz cały

root@kali:/test# mount -o loop -t squashsfs sbin.sqfs /test/wyp/
mount: unknown filesystem type 'squashsfs'

: 21 października 2013, 00:03
autor: Rafal_F
OK, wdarła się literówka (kopiowałem z jednego z linków). Powinno być:

Kod: Zaznacz cały

mount -o loop -t squashfs /sciezka/do/pliku.sqfs /media/punkt_montowania
A tak właściwie to co to za system?

: 22 października 2013, 00:38
autor: valdi72osw
System Linux coś na bazie Ferdora9 jądro 2.6.25
Rozruch grub.

I coś podpowiem z innego fora gdzie temat się toczy ale coś słabo

Kod: Zaznacz cały

root@kali:/test# unsquashfs -v -s sbin.sqfs  
unsquashfs version 4.2-git (2013/03/13) 
copyright (C) 2013 Phillip Lougher <phillip@squashfs.org.uk> 

This program is free software; you can redistribute it and/or 
modify it under the terms of the GNU General Public License 
as published by the Free Software Foundation; either version 2, 
or (at your option) any later version. 

This program is distributed in the hope that it will be useful, 
but WITHOUT ANY WARRANTY; without even the implied warranty of 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
GNU General Public License for more details. 
Found a valid little endian SQUASHFS 2:9 superblock on sbin.sqfs. 
Creation or last append time Thu Jan  1 00:00:00 1970 
Filesystem size 1880.15 Kbytes (1.84 Mbytes) 
Block size 65536 
Filesystem is not exportable via NFS 
Inodes are compressed 
Data is compressed 
Fragments are compressed 
Always_use_fragments option is not specified 
Check data is not present in the filesystem 
Duplicates are removed 
Number of fragments 35 
Number of inodes 138 
Number of uids 1 
Number of gids 0 

Lub:

Kod: Zaznacz cały

root@kali:/test# unsquashfs -v -s bin.sqfs  
unsquashfs version 4.2-git (2013/03/13) 
copyright (C) 2013 Phillip Lougher <phillip@squashfs.org.uk> 

This program is free software; you can redistribute it and/or 
modify it under the terms of the GNU General Public License 
as published by the Free Software Foundation; either version 2, 
or (at your option) any later version. 

This program is distributed in the hope that it will be useful, 
but WITHOUT ANY WARRANTY; without even the implied warranty of 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
GNU General Public License for more details. 
Found a valid little endian SQUASHFS 2:9 superblock on bin.sqfs. 
Creation or last append time Thu Jan  1 00:00:00 1970 
Filesystem size 1472.00 Kbytes (1.44 Mbytes) 
Block size 65536 
Filesystem is not exportable via NFS 
Inodes are compressed 
Data is compressed 
Fragments are compressed 
Always_use_fragments option is not specified 
Check data is not present in the filesystem 
Duplicates are removed 
Number of fragments 28 
Number of inodes 97 
Number of uids 1 
Number of gids 1 
root@kali:/test# unsquashfs -d /test/wyp sbin.sqfs  
Parallel unsquashfs: Using 2 processors 
gzip uncompress failed with error code -3 
read_block: failed to read block @0x1d5f85 
read_fragment_table: failed to read fragment table block 
FATAL ERROR:failed to read fragment table 

root@kali:/test# mount sbin.sqfs /test/wyp -t squashfs -o loop 
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 

Kod: Zaznacz cały

root@kali:/test# dmesg |tail 
[  162.605981] Loading kernel module for a network device with  CAP_SYS_MODULE (deprecated).  Use CAP_NET_ADMIN and alias netdev-  instead. 
[  162.607747] Loading kernel module for a network device with  CAP_SYS_MODULE (deprecated).  Use CAP_NET_ADMIN and alias netdev-  instead. 
[  162.609054] Loading kernel module for a network device with  CAP_SYS_MODULE (deprecated).  Use CAP_NET_ADMIN and alias netdev-  instead. 
[  162.612677] Loading kernel module for a network device with  CAP_SYS_MODULE (deprecated).  Use CAP_NET_ADMIN and alias netdev-  instead. 
[  162.612677] Loading kernel module for a network device with  CAP_SYS_MODULE (deprecated).  Use CAP_NET_ADMIN and alias netdev-  instead. 
[  162.615583] Loading kernel module for a network device with  CAP_SYS_MODULE (deprecated).  Use CAP_NET_ADMIN and alias netdev-  instead. 
[  162.615583] Loading kernel module for a network device with  CAP_SYS_MODULE (deprecated).  Use CAP_NET_ADMIN and alias netdev-  instead. 
[  826.455131] squashfs: version 4.0 (2009/01/31) Phillip Lougher 
[  826.468549] SQUASHFS error: Major/Minor mismatch, older Squashfs 2.9 filesystems are unsupported 
[ 1011.159210] SQUASHFS error: Major/Minor mismatch, older Squashfs 2.9 filesystems are unsupported
Poradzono mi bym zgrał wszystko przy działającym systemie
Tak też o tym myślałem ale nie mam hasła do root-a a z single nie da się wejść boot wygląda tak:

Kod: Zaznacz cały

default driv01 
timeout 30 
prompt 1 
allowoptions 1 
display bootlogo.msg 
F1 menu.msg 

label driv01 
kernel vmlinuz 
append acpi=off elevator=deadline initrd=initrd ram=/dev/ram0 root=/dev/ram0 vga=788 splash=silent 
label driv02 
kernel vmlinuz 
append elevator=deadline initrd=initrd ram=/dev/ram0 root=/dev/ram0 init=/linuxrc vga=791 splash=silent 
chyba że masz jakiś pomysł

Załączniki na
http://www.elektroda.pl/rtvforum/viewto ... 0#12867750

: 22 października 2013, 01:00
autor: Rafal_F
Na jakim nośniku jest ten system? To nie jest żadna oficjalna dystrybucja?
Zdaje się, że jest konflikt z wersjami. Plik został utworzony przy pomocy starszej wersji squashfs tools i nie jest obsługiwany przez wersję jaką masz w systemie.

: 22 października 2013, 12:43
autor: valdi72osw
Na karcie pamieci system
A zakładając że "squashfs tools" mam starszą wersje to i tak powinno go zmontować poleceniem mount ... a tak nie robi
Zakładając że masz racje z tą wersją to jak sprawdzić jaką wersją są spakowane pliki?

Tylko ze wersja jaką mam squashfs tools jest z systemu który wyszedł koło 6miech temu a system z plikami został utworzony jakieś 2 lata temu

: 22 października 2013, 14:48
autor: Rafal_F
Sugeruje się tym:

Kod: Zaznacz cały

[  826.455131] squashfs: version 4.0 (2009/01/31) Phillip Lougher 
[  826.468549] SQUASHFS error: Major/Minor mismatch, older Squashfs 2.9 filesystems are unsupported 
[ 1011.159210] SQUASHFS error: Major/Minor mismatch, older Squashfs 2.9 filesystems are unsupported
Mount też może nie działać. To nie jest oficjalna dystrybucja? Czepiam się ponieważ wiele tego typu dystrybucji udostępnia jakieś narzędzia, albo odpowiednie instrukcje jak zmodyfikować/spersonalizować system.