SquashFS is a read-only compressed file system intented mainly to create live CD-ROM and DVD-ROM Linux installations.
Questions tagged [squashfs]
93 questions
62
votes
6 answers
Mounting a squashfs filesystem in read-write
I have a Clonezilla installation on a USB stick and I'd like to make some modifications to the operating system. Specifically, I'd like to insert a runnable script into /usr/sbin to make it easy to run my own backup command to make backups less…
Naftuli Kay
- 38,686
- 85
- 220
- 311
10
votes
2 answers
Modifying a squashfs,
Obviously, I don't want to actually modify a squashfs. What I would like to do though is take an existing squashfs, a set of files and create a new squashfs which is identical to the old one except that the files in the set either replace similar…
HandyGandy
- 2,201
- 3
- 23
- 30
9
votes
2 answers
Why is the base system of Live ISOs for Linux distros usually stored with squashfs?
Why couldn't the Live ISOs just be a minimal Linux system with an installer? Is there any reason to use squashfs to hold the root of the filesystem? Is it just for better compression, or are there other reasons?
I've seen some answers (and comments)…
bobtho'-'
- 156
- 8
7
votes
2 answers
What is filesystem.squashfs and why does it take so long to load on to bootable media?
When I use Unetbootin to put a Linux ISO on a USB drive, it proceeds quite quickly until it gets to filesystem.squashfs, which takes longer to process than absolutely everything else combined.
Is this writing a new filesystem to the USB, or is it…
user1717828
- 3,512
- 6
- 23
- 32
6
votes
1 answer
SQUASHFS 3 vs 4
I'm trying to modify a firmware file by unsquashing it, editing my files and squash it again. But I got problems with the device which does not accept the file because of different squashfs types (as I suppose). Here's the output on my dev…
Mose
- 161
- 1
- 6
6
votes
2 answers
Append to sub-directory inside squashfs file
Suppose we have filesystem.squashfs,
we can append to it by:
mksquashfs somefile filesystem.squashfs
which appends somefile to root of squashfs file. appending directory:
mksquashfs somedir/ filesystem.squashfs
would append files and directories…
2i3r
- 371
- 1
- 4
- 10
5
votes
2 answers
SquashFS image as rootfs in LXC
Is it possible to use a SquashFS filesystem as an LXC rootfs? I can mount an ext3 image as a rootfs just by setting lxc.rootfs to the filename, but if it's any other type of image, lxc-start just says that it can't mount an ext3 filesystem. The…
Isvara
- 173
- 1
- 5
5
votes
1 answer
Mounting squashfs with correct permissions
I frequently use mksquashfs to make backups of folders on various systems. Sometimes this results in files which cannot be read by any users upon mounting. If I do a sudo mount file.squashfs /to/mountpoint and then try to ls the directory as root or…
Mr. T
- 109
- 2
- 10
5
votes
0 answers
Mounting squashfs image with read-write overlay for rootfs
I am trying to update a custom initramfs init script to mount a squashfs image as the root file system. I have been testing the mounting of a squash image to a loop device in read only, mounting another empty file to another loop device in…
Jose Rodriguez
- 51
- 1
- 3
5
votes
1 answer
How to mount squashfs (embedded-linux) on Ubuntu?
I have tried to mount a filesystem from a firmware (embedded-linux) but it failed on my Ubuntu 12.04 machine. Could you tell me how to mount that file system? (or possible reasons of the failure). Details are as follows.
Details
Step1)
Analyzing the…
kolar
- 325
- 2
- 4
- 12
4
votes
2 answers
How to use 'unsquashfs' with lzma?
I'm using Ubuntu 12.04. I want to unsquash an lzma image. I have done
sudo apt-get squashfs-tools
Now, when I do
unsquashfs
I get
Filesystem uses lzma compression, this is unsupported by this version
I know my squashed…
boltup_im_coding
- 213
- 1
- 2
- 7
4
votes
1 answer
Merging preexisting source folders in mksquashfs
In this answer on a previous question, I found out how to modify files in a squashfs filesystem:
# unsquash the filesystem to a local directory
sudo cp /media/clonezilla/live/filesystem.squashfs ./
sudo unsquashfs filesystem.squashfs
# now, insert…
Naftuli Kay
- 38,686
- 85
- 220
- 311
4
votes
3 answers
How to create ".img" from files
I'm trying to alter some files inside an ".img" file.
Example:
logo-x.squashfs.img
romfs-x.squashfs.img
safeEnv.img
sign.img
For that, I extracted the ".img" using 7-Zip and made the changes needed.
Archiving these altered files with 7-Zip is not…
markfree
- 185
- 1
- 2
- 13
4
votes
1 answer
How can I edit a squashfs image directly without extracting and re-packing?
I have a squashfs image file that I copied from a bootable iso file.
When mounting the file, it always mounts it read-only.
Is it possible to directly edit the content without extracting the squashfs image first, or is it possible to mount squashfs…
Asaf Magen
- 487
- 1
- 9
- 21
4
votes
1 answer
How to boot using a squashfs image as rootfs
I made a squashfs image from my system root, I want to put it on a USB drive among some Live ISOs, and make boot menu using GRUB2.
What kernel boot parameters should I use to specify that Squashfs image as root file-system?
I used this as grub…
Microsoft Linux TM
- 1,596
- 5
- 16
- 26