Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 27 Nov 2014, 15:30
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
squashfs-tools 4.1 for Windows
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [15 Posts]  
Author Message
disciple

Joined: 20 May 2006
Posts: 6458
Location: Auckland, New Zealand

PostPosted: Wed 16 Feb 2011, 02:00    Post subject:  squashfs-tools 4.1 for Windows  

So... you want to extract the filesystem from Puppy's .sfs while running Windows.
Are you mentally unbalanced?! Forget about that Microsoft rubbish and get a real operating system! Laughing

Anyway, I've compiled squashfs-tools 4.1 on Windows, so I might as well post it somewhere in case anyone else is crazy enough to want it.

On WinXP and Win7 I can successfully extract the .sfs from a recent debian-compatible puppy inpu-001.iso (What its name actually is, I can't remember Smile )
I'm not sure if it would work with the older .sfs versions used in older puppies. If not, you could try a package from http://fragilematter.blogspot.com/2010/02/squashfs-tools-40-windows-binaries.html I used his squashfs-tools 4.0 patch. I have no idea why my build pulled in the cyg-gcc dependency as well.

BTW using his squashfs-tools 4 build I was getting the same error (below) reported in one of the comments there, so I'm interested as to whether it didn't work because 4.0 is not new enough for this .sfs, or whether my build works because of a newer cygwin.
Code:
assertion "root_idx != -1" failed: file "/ext/build/netrel/src/cygwin-1.7.1-1/wi
nsup/cygwin/mount.cc", line 363, function: void mount_info::init()


EDIT
Warning - I think that you will lose permissions and stuff if you extract an .sfs in Windows.
Squashfstools-4.1-Win32.zip
Description 
zip

 Download 
Filename  Squashfstools-4.1-Win32.zip 
Filesize  1.01 MB 
Downloaded  2431 Time(s) 

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
Terryphi


Joined: 02 Jul 2008
Posts: 763
Location: West Wales, Britain.

PostPosted: Wed 16 Feb 2011, 06:13    Post subject:  

Thanks, disciple. Another tool for my toolbox.

I have noted your edit about the permissions issue. Can anyone who has tested it clarify?
Back to top
View user's profile Send private message Visit poster's website 
donkey

Joined: 22 Jun 2012
Posts: 1

PostPosted: Fri 22 Jun 2012, 16:39    Post subject: thank you very much
Subject description: playing with tomato firmwares
 

[quote=desiple]Are you mentally unbalanced?[/quote] Laughing yep
[quote=desiple]Forget about that Microsoft rubbish and get a real operating system![/quote]will do, but not quite yet

tyvm, extracting and playing with tomato firmwares

any extremely helpful advice Question
Back to top
View user's profile Send private message 
calin3

Joined: 22 Aug 2012
Posts: 6
Location: Germany

PostPosted: Wed 22 Aug 2012, 04:19    Post subject: "failed to read the xattr table"  

Hello,

when using unsquashfs for WinXP to see the file list of an Android system.sfs, I get this error message:

D:\temp\Android>unsquashfs -ll system.sfs
Parallel unsquashfs: Using 2 processors
Read on filesystem failed because EOF
FATAL ERROR aborting: failed to read the xattr table

Any ideas?

THX
val
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6458
Location: Auckland, New Zealand

PostPosted: Thu 23 Aug 2012, 00:40    Post subject:  

Did you try the squashfs4.0 at the fragilematter link instead?
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
calin3

Joined: 22 Aug 2012
Posts: 6
Location: Germany

PostPosted: Thu 23 Aug 2012, 02:14    Post subject:  

I can't, as I am unable to compile the source.
If there is a possibility for you to send the 2 .exe's (unsquash & mksquash, plus dll's), please do it, to calin3@gmx.de

THX
val
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6458
Location: Auckland, New Zealand

PostPosted: Thu 23 Aug 2012, 02:50    Post subject:  

You don't need to compile the source - there are binaries there. And you should try the 3.x versions as well.
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3393
Location: Oregon

PostPosted: Thu 23 Aug 2012, 03:25    Post subject:  

I just have two questions.
What is the advantage of being able to expand a SFS file in windows?
What would one hope to find inside that was of any use in windows?
Back to top
View user's profile Send private message 
calin3

Joined: 22 Aug 2012
Posts: 6
Location: Germany

PostPosted: Thu 23 Aug 2012, 03:39    Post subject:  

@disciple: thanks, I'll give it a try this evening!
In fact, I downloaded 4.0 yesterday, but saw only source at first glance.

@8-bit: no use at all, you're right!
I must be mentally unbalanced, see posting above Smile
Here's the background:
I'm playing with android-x86 on a hp550 notebook. The German keyboard layout has a mistake (missing @). So I need to unsquashfs the android system.sfs, correct a file and mksquashfs it back.
I tried it under a live Ubuntu 12.04, but get Bad magic when trying to unsquashfs system.img.
Just playing around, nothing serious...
Back to top
View user's profile Send private message 
calin3

Joined: 22 Aug 2012
Posts: 6
Location: Germany

PostPosted: Fri 24 Aug 2012, 02:38    Post subject:  

@disciple: it did not work. See results below.

_____________________________________________________________
squashfs_tools 4.1:
D:\temp\Android>unsquashfs system.sfs -ll
Parallel unsquashfs: Using 2 processors
Read on filesystem failed because EOF
FATAL ERROR aborting: failed to read the xattr table

squashfs_tools 4.0:
D:\temp\Android>unsquashfs system.sfs -ll
Parallel unsquashfs: Using 2 processors
0 inodes (0 blocks) to write
2 [main] unsquashfs 6056 _cygtls::handle_exceptions: Exception: STATUS_INT
EGER_DIVIDE_BY_ZERO
19696 [main] unsquashfs 6056 open_stackdumpfile: Dumping stack trace to unsquashfs.exe.stackdump
***contents of stackdump***
Exception: STATUS_INTEGER_DIVIDE_BY_ZERO at eip=0040D91F
eax=00000001 ebx=00000000 ecx=00000000 edx=00000000 esi=00000000 edi=00000000
ebp=0022CC98 esp=0022CC78 program=D:\temp\Android\unsquashfs.exe, pid 4500, thread main
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame Function Args
0022CC98 0040D91F (00000000, 00000000, 00000000, 00000000)
0022CCE8 00405AF0 (00000000, 00000000, 00000000, 00000000)
0022CD48 00406B61 (00000003, 007183B8, 00718260, 00000001)
0022CDA8 61006DDA (00000000, 0022CDE0, 610066E0, 7FFD8000)
***End of stack trace***

squashfs_tools 3.4:
D:\temp\Android>unsquashfs system.sfs -ll
Filesystem on system.sfs is (4:0), which is a later filesystem version than I support!

squashfs_tools 3.1:
D:\temp\Android>unsquashfs system.sfs -ll
Major/Minor mismatch, filesystem on system.sfs is (4:0)
I only support Squashfs 3.0 filesystems! Later releases will support older Squashfs filesystems

squashfs_tools 3.0:
D:\temp\Android>unsquashfs system.sfs -ll
Major/Minor mismatch, filesystem on system.sfs is (4:0)
I only support Squashfs 3.0 filesystems! Later releases will support older Squashfs filesystems
_____________________________________________________________

Hints / ideas welcome!
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6458
Location: Auckland, New Zealand

PostPosted: Fri 24 Aug 2012, 02:49    Post subject:  

The message with 4.1 actually sounds like it might not be the complete file. Have you tried downloading/extracting it again?
Have you tried the unsquashfs in Puppy?

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
calin3

Joined: 22 Aug 2012
Posts: 6
Location: Germany

PostPosted: Fri 24 Aug 2012, 04:17    Post subject:  

The file seems to be complete, as I boot my netbook with Android from it and it runs stable.
Puppy is a good idea, thanks! I'll give it a try under Ubuntu (I have an USB memo stick for a Live Ubuntu 12.04). Under Ubuntu, I tried to mount system.sfs, but it did not work (I saw a file system.sfs, bun not its contents). Now I'll try to unsquash it and copy the contents.

THX!
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6458
Location: Auckland, New Zealand

PostPosted: Fri 24 Aug 2012, 06:34    Post subject:  

Also, on Linux you can use the `file` command to find out what version of squashfs it is supposed to be... or maybe that it is something else entirely (I seem to remember seeing the same file extension used for something else).
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
calin3

Joined: 22 Aug 2012
Posts: 6
Location: Germany

PostPosted: Sun 26 Aug 2012, 13:22    Post subject:  

I used this weekend's rainy weather to play a little around.
Managed to solve it like this:
- boot Ubuntu 12.04 from USB stick, SD card with Android plugged in
- copy system.sfs from SD-Android to Ubuntu
- unsquashfs system.sfs
- mount system.img (result of unsquashfs)
- edit needed files and save (rw now granted Smile
- mksquashfs back to system.sfs
Now, Android needs a rename system.sfs -> system.img, but
that's another story Smile
Thanks for your ideas!
Back to top
View user's profile Send private message 
brokenman

Joined: 20 Oct 2011
Posts: 25

PostPosted: Sat 06 Oct 2012, 08:57    Post subject: Thanks  

Not having much luck trying to decompress squashfs using lzma2. I can think of a great reason to want to use mksquashfs on windows. An installer. I am currently building an installer that allows widnows users to build there custom portable linux distro by downloading a base, unpacking it, downloading the user choices (firefox, chrom etc) and then packing everything together. Permissions are not a problem as the boot scripts will sort out the mess.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [15 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0830s ][ Queries: 13 (0.0096s) ][ GZIP on ]