Users online right now: 67 - Login  » search  » forum index  

How to mount a file contains squashfs on Windows

ceremcem_
wrote 5 years ago


reply
Hi,

We know that we can mount a file that contains squashfs in it on Linux like that:

#mount thefile /mnt/mountpoint -t squashfs -o loop


Then, how could we perform the same operation on Windows?
 
Dude
wrote 5 years ago


reply
ceremcem_ wrote:
Hi,

We know that we can mount a file that contains squashfs in it on Linux like that:

#mount thefile /mnt/mountpoint -t squashfs -o loop


Then, how could we perform the same operation on Windows?
As far as I know, squasgfs is linux only, so, you can't use it in windows.
 
Ponce
wrote 5 years ago


reply
squashfs is a linux kernel module, you don't have a linux kernel on windows.

you can try to compile userspace tools, there's a guide and some patches that probably have to be updated

http://sourceforge.net/forum/forum.php?thread_id=1892634&forum_id=215699

you may better ask the author of that thread, Rajiv Narayan.
 
ceremcem_
wrote 5 years ago


reply
Actually I need to mount and browse the Slax modules on Windows. I don't need to create them on Windows, just mounting is needed.

As far as I understand without reading all of the thread, he compiled mksquashfs for Windows. It's not what I'm looking for. Thanks though, I'll ask Rajiv Narayan...
 
Guest
wrote 5 years ago


reply
a simple linux virtual machine with samba bridges the o/s gap quite nicely
 
the_greek
wrote 5 years ago


reply
you can not mount it on windous ,it s not allowed :)
ne ,really ,you can not mount it ,just possibly extract its contents
 
nikolay pelov
wrote 5 years ago


reply
if you use squashfs tools windows patch you can extract slax cd to windows directory using unsquashfs.

And there is a way to "mount" squashfs on windows.
Install vmware, install linux on a virtual machine, mount the directory and share it with samba. then you can mount it as a network drive. I've built live cd that can mount any squashfs image - including 3.0, 3.1 and also supports LZMA compression. it uses CentOS installation and a SLAX kernel. I'll post a link later (I have to install samba on it). mail me if I forget - nicksoft at g mail
 
squashfs-tools for windows
wrote 5 years ago


reply
I know that this thread is quite old but it'll be useful for people that find it later. I've compiled squashfs tools for windows - everyone posts patches and no one compiled files:
http://download.nicksoft.info/linux/backuplivecd/squashfs-tools.zip

Also I have made the live cd that mounts squashfs filesystems. Here is the url:
http://download.nicksoft.info/linux/backuplivecd/backlivecd.iso

How to use the CD:
1. name all filesystems you want to mount .sqfs.img
2. inject squashfs filesystem(s) using ultraiso or other iso tool.
3. boot the live cd.
4. if you don't have DHCP server or it doesn't work - login as root (no password) and configure your network
5. you should be able to mount squashfs images as \\ip\backuplivecd (no password needed)

good luck
 
Tomas M
wrote 5 years ago


reply
This looks cool. I will put those two mksquashfs.exe and unsquashfs.exe files on Slax FTP. Would you please tell me your name or something, so I could put it to the README file so you'll get credit for your work? Thank you.
 
nikolay pelov
wrote 5 years ago


reply
I forgot to menthion that it needs cygwin1.dll - I included it in zip file - download it again
 
nikolay pelov
wrote 5 years ago


reply
hmmm. I don't see my previous post.
Again - my name is Nikolay Pelov.
thanks for mention it in readme
 
nikolay pelov
wrote 5 years ago


reply
if you also include my site www.nicksoft.info I would be grateful.
 
Tomas M
wrote 5 years ago


reply
I put it on ftp.
Nevertheless, I had to add a warning to the readme file... your tools do not support LZMA compression at all so it is completely unusable for Slax modules.
 
npelov
wrote 5 years ago


reply
If I succeed compiling squashfs tools for windows with lzma support I'll post it here.
 
npelov
wrote 5 years ago


reply
As I promised - you can download squashfs tools with LZMA support from here:

http://download.nicksoft.info/linux/backuplivecd/squashfs-tools.zip

Have a nice squashing and slaxing :)
 
teo
wrote 5 years ago


reply
Nikolay: it works like a charm!

There is a easy way to use your program from Win: unzip your pack wherever you want, go to a module, right click, "open with", browse to unsquashfs.exe and you're done. Now you have got the decompressed module in a new folder called squashfs-root. More, it works with the old format modules for Slax 5, as well.
 
markds
wrote 5 years ago


reply
Works perfectly Nikolay. May I have your permission to distribute the tools as part of my own Slax based livecd?
 
npelov
wrote 5 years ago


reply
You can distribute it. I'll be glad if you put my name (Nikolay Pelov) and my homepage (http://www.nicksoft.info).

However I had some problems with it. I had exception while I tried to compress some files:

1 [main] mksquashfs 2076 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
155 [main] mksquashfs 2076 open_stackdumpfile: Dumping stack trace to mksquashfs.exe.stackdump
18313 [main] mksquashfs 2076 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
18710 [main] mksquashfs 2076 _cygtls::handle_exceptions: Error while dumping state (probably corrupted stack)


That's why I tried different linking - with static and dynamic cygz.dll linking. Also there are problems with filenames which contain non-ascii characters.
Here is stackdump:

Exception: STATUS_ACCESS_VIOLATION at eip=610DEDF8
eax=00686710 ebx=00000000 ecx=00686710 edx=00000000 esi=00686710 edi=00686710
ebp=002236F8 esp=002236EC program=D:\Install\Programs\squashfs-tools\static\mksquashfs.exe, pid 2076, thread main
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame Function Args
002236F8 610DEDF8 (00686710, 00000000, 009BA930, 0042F870)
00223718 00408FF3 (0022CCC6, 0042F870, 00000001, 7E410000)
00223758 004096AA (00225780, 00223780, 009BA930, 00260024)
002277F8 0040BB60 (0042F870, 00000000, 00409550, 7FEC0008)
00227888 0040C0D4 (00227A70, 0042F870, 00409550, 00000001)
0022CC88 0040D48D (00000005, 009A0188, 009A0090, 0022CE64)
0022CD98 610060D8 (00000000, 0022CDD0, 61005450, 0022CDD0)
61005450 61004416 (0000009C, A02404C7, E8611021, FFFFFF48)
18313 [main] mksquashfs 2076 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
18710 [main] mksquashfs 2076 _cygtls::handle_exceptions: Error while dumping state (probably corrupted stack)
 
markds
wrote 5 years ago


reply
Thanks - will include your name and website in my distro.

Will also look out for the exceptions. I've had no issues so far with these windows tools.

npelov wrote:
You can distribute it. I'll be glad if you put my name (Nikolay Pelov) and my homepage (http://www.nicksoft.info).

However I had some problems with it. I had exception while I tried to compress some files:

1 [main] mksquashfs 2076 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
155 [main] mksquashfs 2076 open_stackdumpfile: Dumping stack trace to mksquashfs.exe.stackdump
18313 [main] mksquashfs 2076 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
18710 [main] mksquashfs 2076 _cygtls::handle_exceptions: Error while dumping state (probably corrupted stack)


That's why I tried different linking - with static and dynamic cygz.dll linking. Also there are problems with filenames which contain non-ascii characters.
Here is stackdump:

Exception: STATUS_ACCESS_VIOLATION at eip=610DEDF8
eax=00686710 ebx=00000000 ecx=00686710 edx=00000000 esi=00686710 edi=00686710
ebp=002236F8 esp=002236EC program=D:InstallProgramssquashfs-toolsstaticmksquashfs.exe, pid 2076, thread main
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame Function Args
002236F8 610DEDF8 (00686710, 00000000, 009BA930, 0042F870)
00223718 00408FF3 (0022CCC6, 0042F870, 00000001, 7E410000)
00223758 004096AA (00225780, 00223780, 009BA930, 00260024)
002277F8 0040BB60 (0042F870, 00000000, 00409550, 7FEC0008)
00227888 0040C0D4 (00227A70, 0042F870, 00409550, 00000001)
0022CC88 0040D48D (00000005, 009A0188, 009A0090, 0022CE64)
0022CD98 610060D8 (00000000, 0022CDD0, 61005450, 0022CDD0)
61005450 61004416 (0000009C, A02404C7, E8611021, FFFFFF48)
18313 [main] mksquashfs 2076 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
18710 [main] mksquashfs 2076 _cygtls::handle_exceptions: Error while dumping state (probably corrupted stack)
 
alMubarmij
wrote 5 years ago


reply
npelov wrote:
As I promised - you can download squashfs tools with LZMA support from here:

http://download.nicksoft.info/linux/backuplivecd/squashfs-tools.zip

Have a nice squashing and slaxing :)

Thank you.

I think we can't mount squashfs images under Windows,
We can just extract or make it.
 
npelov
wrote 5 years ago


reply
alMubarmij wrote:
Thank you.

I think we can't mount squashfs images under Windows,
We can just extract or make it.


Yes, but that is very useful when you use squashfs as backup and you don't have linux with squashfs support nearby.
 
forum
wrote 5 years ago


reply
markds wrote:
Thanks - will include your name and website in my distro.

Will also look out for the exceptions. I've had no issues so far with these windows tools.

npelov wrote:
You can distribute it. I'll be glad if you put my name (Nikolay Pelov) and my homepage (http://www.nicksoft.info).

However I had some problems with it. I had exception while I tried to compress some files:

1 [main] mksquashfs 2076 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
155 [main] mksquashfs 2076 open_stackdumpfile: Dumping stack trace to mksquashfs.exe.stackdump
18313 [main] mksquashfs 2076 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
18710 [main] mksquashfs 2076 _cygtls::handle_exceptions: Error while dumping state (probably corrupted stack)


That's why I tried different linking - with static and dynamic cygz.dll linking. Also there are problems with filenames which contain non-ascii characters.
Here is stackdump:

Exception: STATUS_ACCESS_VIOLATION at eip=610DEDF8
eax=00686710 ebx=00000000 ecx=00686710 edx=00000000 esi=00686710 edi=00686710
ebp=002236F8 esp=002236EC program=D:InstallProgramssquashfs-toolsstaticmksquashfs.exe, pid 2076, thread main
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame Function Args
002236F8 610DEDF8 (00686710, 00000000, 009BA930, 0042F870)
00223718 00408FF3 (0022CCC6, 0042F870, 00000001, 7E410000)
00223758 004096AA (00225780, 00223780, 009BA930, 00260024)
002277F8 0040BB60 (0042F870, 00000000, 00409550, 7FEC0008)
00227888 0040C0D4 (00227A70, 0042F870, 00409550, 00000001)
0022CC88 0040D48D (00000005, 009A0188, 009A0090, 0022CE64)
0022CD98 610060D8 (00000000, 0022CDD0, 61005450, 0022CDD0)
61005450 61004416 (0000009C, A02404C7, E8611021, FFFFFF48)
18313 [main] mksquashfs 2076 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
18710 [main] mksquashfs 2076 _cygtls::handle_exceptions: Error while dumping state (probably corrupted stack)

I solve this problem without installation Cygwin : you must create environment variable PWD with any value.
 
att
wrote 5 years ago


reply
Has anybody tried to write a decompressor for lzm-files as a plugin for Totalcommander yet ?
 
Ian
wrote 4 years ago


reply
Hi,
I have unpacked a squash file and deleted files I don't want ( in windows ).
When I try to make the squash file I get the below errors. Any ideas please.


C:\Home\Apps\squashfs-tools>mksquashfs.exe Ubuntu c:\apps\filesystem.squashfs -b
e
Parallel mksquashfs: Using 2 processors
Creating big endian 3.1 filesystem on c:\apps\filesystem.squashfs, block size 13
1072.
lzmadic 131072
[err -22=======- ] 29528/113710 25%
==============\ ] 29530/113710 25%sq
lzma_un: LZMA Unknown error 4294967274

FATAL ERROR:get_fragment:1465: res -22

C:\Home\Apps\squashfs-tools>mksquashfs.exe Ubuntu c:\apps\filesystem.squashfs -b
e -check_data
Parallel mksquashfs: Using 2 processors
Creating big endian 3.1 filesystem on c:\apps\filesystem.squashfs, block size 13
1072.
lzmadic 131072
[====sqlzma_un: ZLIB data error ] 24779/113710 21%
========\ ] 24804/113710 21%
FATAL ERROR:get_fragment:1465: res -3

C:\Home\Apps\squashfs-tools>mksquashfs.exe Ubuntu c:\apps\filesystem.squashfs -b
e -nolzma
Parallel mksquashfs: Using 2 processors
Creating big endian 3.1 filesystem on c:\apps\filesystem.squashfs, block size 13
1072.
[============- ] 24804/113710 21%s
qlzma_un: ZLIB data error
[============| ] 24804/113710 21%
FATAL ERROR:get_fragment:1465: res -3

C:\Home\Apps\squashfs-tools>
 
jayflood
wrote 4 years ago


reply
What file system are you working on?
 
Spykosimullawich Sitenko Yurievo
wrote 4 years ago


reply
Blasing all's comunash !!!

Ahropka Ykwobmba Fhjmbawrjhba
 
Patrick·ST·James
wrote 4 years ago


reply
Spykosi...

You cool much crazy.
You brain not balance.
 
mohammad
wrote 2 years ago


reply
ceremcem_ wrote:
Hi,

We know that we can mount a file that contains squashfs in it on Linux like that:

#mount thefile /mnt/mountpoint -t squashfs -o loop


Then, how could we perform the same operation on Windows?

I open than with 7zip
 
forum
wrote 1 year ago


reply
please give me software to extract suashfsfiles on windows
 
thanks
wrote 224 days ago


reply
thanks nikolay
 

  » search  » forum index  

Post your reply

Your name (Login):

Message:

These HTML tags are allowed: <quote>, <b>, <u>, <i>, <pre>, <code>, <small>, <h1>, <h2>, <h3>, <li>



Slax is generously supported by: P&P Software GmbH and wisol technologie GmbH