Questions tagged [squashfs]
SquashFS is a read-only compressed file system intented mainly to create live CD-ROM and DVD-ROM Linux installations.
94
questions
0
votes
0
answers
75
views
Set SELinux labels in Docker build
I'm trying to produce a squashfs image with labeled files for SELinux. I'm building this using docker buildx. Both of the ideas I tried failed:
setfattr and chcon do not work on SELinux-enforcing ...
0
votes
1
answer
280
views
how to boot QEMU from a cloned USB stick
Configuration:
MacOS arm64 M1 Apple Silicon as host
Live USB with Ubuntu 20.04 amd64 within a squashfs filesystem as guest
QEMU emulator on the host OS
I want to strip the OS out the squashfs and ...
0
votes
0
answers
60
views
SQUASHFS errors when the server is running
I am getting SQUASHFS errors when the server is running:
[Mon Nov 13 08:15:56 2023] SQUASHFS error: zlib_inflate error, data probably corrupt
[Mon Nov 13 08:15:56 2023] SQUASHFS error: ...
1
vote
0
answers
210
views
Do cryptsetup encryption from user space, possibly as ordinary user
I have the duty to create a package format which has its contents compressed and encrypted and which can be mounted.
I have modelled it to be a squashfs embedded in a cryptsetup raw device.
Alas, this ...
1
vote
1
answer
151
views
How to loop-mount Ubuntu boot drive backup LVM with duplicate UUID
I created a backup of my LUKS-encrypted Ubuntu installation's entire boot drive as a squashfs file.
The backup was performed by using Streaming Compression into a pseudo file, resulting in a ...
2
votes
1
answer
523
views
Is it possible to append a signature to a squashfs file, without causing problems with tools/mount?
I would like to authenticate a squashfs image, using a public-key signature. For an elegant implementation, it would be ideal if such a signature could simply be appended to the end of the squashfs ...
1
vote
1
answer
2k
views
ParrotOS install giving bad unsquash config error
I installed Parrot (5.0.1 Home edition, amd64) onto a USB stick using Rufus to use as a live boot on an old laptop I had lying around. I then decided to install Parrot onto the laptop harddrivehard ...
0
votes
2
answers
774
views
How does SquashFS handle decompression?
How does SquashFS handle decompression?
I'm interested in the overhead that LZ4 has on the SquashFS filesystem.
My theory is that the files in the SquashFS filesystem gets uncompressed during read.
...
1
vote
1
answer
512
views
Ideas to clear user xattrs from files without get/setfattr
I have a directory containing a root filesystem that I SquashFS and then mount as r/o on other boxes.
However, before SquashFS'ing, i want to clear all the user-namespace xattrs from the filesystem. ...
1
vote
1
answer
223
views
Dialog progress bar for unsquashfs
Part of my dialog-based program involves running unsquashfs on a file to extract it to a directory. I'm trying to make a progress bar for this operation to show its progress using the --gauge option. ...
0
votes
1
answer
3k
views
GRUB install on Debian 11 live image failed to get canonical path of 'overlay'
We're building a Debian based product. To simplify building these in the factory, I'm trying to build a live disk that will install the main OS. We have an older product that uses this processbut was ...
0
votes
0
answers
381
views
Unable to auto-mount encrypted filesystem.squashfs of Debian Live CD
Part 1
I've created a live ISO image of my system using 'live build' tool on a Debian system. For automated installation i've used a preseeding file.
To protect my senstive data I'm using LUKS ...
9
votes
2
answers
2k
views
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 ...
0
votes
1
answer
900
views
Why is unsquash not permitted to create symlink and certain files?
I try to alter a debian live iso to activate the sshd according to this guide.
This is done on a Ubuntu 20 in a virtualbox on a macOS High Sierra.
When I unsquashfs -f -processors 1 filesystem....
0
votes
0
answers
586
views
How do I convert my current linux installation into squashfs live image with persistent changes
My goal is to convert a raspbx server into a docker container. Something like this how to convert an iso to a docker image
So, how can I make my current raspbx installation into a squashfs file system ...
1
vote
1
answer
7k
views
Fix/Repair Can't find a SQUASHFS superblock
I have an old filesystem backup that I made and compressed into a squashfs. It was stored on an ext4 filesystem, and I suspect it suffered from some bitrot. I don't have a backup of the file. Is there ...
4
votes
1
answer
3k
views
Does mounting squashfs put the whole filesystem in RAM?
Situation: I've got a larger (>10GB) read-only collection of small files with loads of duplicates that I need to have available on multiple machines, even on different file systems. We can assume ...
4
votes
3
answers
5k
views
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 ...
1
vote
1
answer
3k
views
A lot of loop devices in the system
I have the following picture:
$ sudo lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
loop0 squashfs /snap/code/58
loop1 ...
0
votes
1
answer
120
views
new SQAUSH FS drives are autocreted in Deepin 20 operating system. How to remove
I am new to Linux world. I recently installed Deepin 20 Linux distribution in my Lenovo C940. After few days this strange partition appeared automatically.
What are these drives?
Do I really need ...
0
votes
1
answer
5k
views
How do I get squashfs and XZ to work?
I'm trying to get snap on Linux Mint, and I've run into too many problems to count.
The first thing I did was install the package (apt install snap), and then realised that it is blocked. So I ...
1
vote
0
answers
99
views
How to run installation of my program during installing custom squashfs?
i made a custom squashfs from cestos8 minimal and during os or custom squashfs installation i want to install a my program and make it run as system starts. im a windows software developer this is new ...
4
votes
2
answers
3k
views
How to convert from rar or tgz to squashfs without having to extract to temporary folder?
I enjoy using squashfs for compression because of the simplicity of mounting them as loop devices to access the files inside.
I have a lot of rar, tgz and zip files that I would like to convert to ...
1
vote
2
answers
1k
views
How does the kernel know where to find the file-system?
I'm fairly new to Linux and especially Embedded Linux.
I'm working on an already-developed project on an embedded device where the root filesystem type is SquashFS, the compressed read-only file ...
1
vote
1
answer
560
views
telnet refuses to connect when /bin binded to another location
I am working on a router and its firmware is read-only as expected. The busybox they used are trimmed down version of the original tool so i cannot use all the tools necesseray. This router has also a ...
0
votes
1
answer
470
views
How do I make sure sudo is setuid in repackaged squashfs?
I'm trying to manipulate a squashfs file, containing a yocto build and an application payload, but everytime I do so, sudo fails to execute afterwards. root user is disabled, so I have no real ...
0
votes
0
answers
7k
views
Getting content from an extracted ubi image
I dumped a NAND flash a while ago and analyzed the dump with binwalk.
Binwalk could find a SQUASHFS filesystem but unfortunately it was not possible to retrieve the data because it is monted on top of ...
0
votes
1
answer
1k
views
how to convert bigendian squashfs file system to little endian
Are there any tools to convert big endian squashfs file system to little endian?
1
vote
1
answer
1k
views
LXC Container with Overlayfs/Squashfs
We are using a Centos LXC container with the rootfs contained in a squashfs filesystem. I really like the fact that a user cannot edit the rootfs from the host.
During the development, developers ...
0
votes
0
answers
618
views
Writing to a readonly partition
I have the following situation with which I need some help.
I have a Linux-based OS running on a RaspberryPi Compute Module. The system was shutdown abruptly, which led to an issue where now the boot ...
1
vote
0
answers
317
views
Mount numerous SquashFS images
I am trying to configure a web server so that it can serve web apps using NGINX. We expect to have 15,000 different web apps. Each web app is supposed to be packaged in a SquashFS image, containing a ...
0
votes
1
answer
252
views
Is there a way to create a (compressed) squashfs that contains an uncompressed file
We have a large file that needs to be uncompressed inside a compressed squashfs.
Is this possible without patching mksquashfs?
Something like this would be nice:
$ mksquashfs existing_squash.sqsh
...
5
votes
1
answer
4k
views
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/...
1
vote
0
answers
599
views
A more permanent change to readonly squashfs mounted /etc
I have an IP-camera with the BusyBox v1.22.1 operating system that has some accounts either without or with public known passwords that I want to change to make it more secure. I have managed to log ...
0
votes
0
answers
369
views
Why isn't filesystem bigger than 4G bootable
I'm creating a custom ISO based on the official Ubuntu 16.04.
What I'm doing is simple:
1) mount the official Ubuntu iso to /mnt;
2) cp /mnt/install/filesystem.squashfs /home;
3) cd /home && ...
1
vote
1
answer
2k
views
Can't mount squashfs loop during initramfs
I am trying to mount a squashfs file during initramfs.
I have included loop and squashfs modules.
Currently using mount /foo.squashfs /mountpoint
or mount -t squashfs -o loop /foo.squashfs /...
0
votes
0
answers
147
views
Loop Device eat up RAM [duplicate]
EDIT: Given link of another thread suggest that newer kernel do not have this issue but I am using latest kernel i.e. 4.18.5. Hence, this issue is either new or newer kernel have this bug
In my setup,...
2
votes
1
answer
1k
views
Details(examples) of "pseudo-definition", "pseudo-file", "sort_file" for mksquashfs?
From debian stretch man page:
Filesystem filter options
-p PSEUDO_DEFINITION
Add pseudo file definition.
-pf PSEUDO_FILE
Add list of pseudo file definitions.
-sort SORT_FILE
...
0
votes
1
answer
2k
views
Unmount all your partitions to release/free up SSD
I have a machine with a single SSD and 3 partitions. I want to unmount the entire SSD while staying live so that I can run a firmware upgrade tool on the SSD. I know that unmounting your only disk is ...
4
votes
3
answers
3k
views
mksquashfs: how to include full absolute directory paths inside the squashfs image?
When I create a squashfs image from multiple directories such as:
/bin/
/usr/bin/
/usr/local/bin/
/some/other/random/folder/
/another/long/path/
If I use command...
mksquashfs /bin /usr/bin /usr/...
2
votes
1
answer
8k
views
Using squashfs on top of ubi as root file system
I'm trying to use a compressed squashfs ubi volume as my root file system. The idea is to have two ubi volumes. Volume one contains a read-only squashfs file system. Volume two is re-sizable and uses ...
2
votes
0
answers
1k
views
How to create and loop-mount an encrypted drive image?
I've seen this excellent answer that explains how to use the following squashfs command to compress a disk image on-the-fly:
mkdir empty-dir
mksquashfs empty-dir squash.img -p 'sda_backup.img f 444 ...
1
vote
0
answers
925
views
squashfs double caching problem
Let's say there's a large squashfs image on a file. So it's mounted as a loopback device. Now as I understand, kernels from 4.4 and up have eliminated double caching on loopback devices. But ...
0
votes
0
answers
2k
views
/dev/sr0 (live DVD) turns into /dev/sr1 when inserting periphials
On a live Linux session, inserting a keyboard or mouse via USB onto the computer causes /dev/sr0 to be remapped as /dev/sr1, which makes the live system unable to access the DVD.
sudo rename /dev/sr1 ...
3
votes
1
answer
2k
views
Is this a good idea for backups using rsync, squashfs, and aufs?
I currently do my backups using rsync, and hardlinks. I create a new full one every year, and then incrementals every day. I like the way I can browse it in an ordinary file manager, and that access ...
-2
votes
1
answer
53
views
systemctl: Only works via tty2? (same user logged into tty3&tty1.)
I think that opening Guimager caused the drive to be locked and now having trouble with SQUASHFS errors. But that is a different story.
Surprisingly, only tty2 can issue systemctl suspend, not tty3 ...
1
vote
0
answers
344
views
Using squashfs for really large root file system images
On boot, in Linux, I'd like to mount my operating system using squashfs (with rw tmpfs overlay).
These images will be used for my normal PC usage, including development and entertainment. I can see ...
1
vote
2
answers
31k
views
How to view files, created by Linux and programs in /tmp directory? [duplicate]
How to view files, created by Linux and programs in /tmp directory?
The file names are hidden, command ls -al /tmp only show the presence of files not their names.
Edit: I find that place in saved ...
1
vote
2
answers
4k
views
Mounting root partition on embedded file system
Linux embedded file system (Linux v. 2.6.26.5) running on raw NAND flash, it use Full Image's RootFS. U-boot 2009.03 bootloader. I need access shell after the Kernel is fully loaded, so that I can ...
1
vote
1
answer
6k
views
Problem resetting root password on an embedded device
Linux embedded file system run entirely on raw NAND flash, use Full Image's RootFS. Linux v. 2.6.26.5, U-boot 2009.03 bootloader. After the Kernel is fully loaded, when I try to submit command, the ...