Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [squashfs]

SquashFS is a read-only compressed file system intented mainly to create live CD-ROM and DVD-ROM Linux installations.

0
votes
0answers
14 views

Mounting writeable xz compressed filesystem

I want use gnome-diskimage to take an image of a disk and write it to a mounted xz compression filesystem. Unfortunately, gnome-diskimages don't have a compression option. :( Some possibilities are ...
0
votes
0answers
29 views

Mounting MTD root file system (squashfs) on NAND flash

Device use embedded Linux version 2.6.26.5, 11 MTD partitions created on "gen_nand" at boot time. # cat /proc/mtd dev: size erasesize name mtd0: 00060000 00004000 "u-boot" mtd1: 00020000 ...
0
votes
0answers
37 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
0answers
17 views

JFFS2 and SQUASHFS erasing entire flash chip

I am working on an OpenWRT system for a custom board with a Flash Memory Chip. One problem is that U-Boot only works if the Flash Memory is in 3 Byte Addressing Mode while Linux needs 4 byte ...
1
vote
0answers
44 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
0answers
52 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 && ...
2
votes
1answer
143 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
0answers
15 views

How to prevent squashfs cache decompressed data and only keep compressed data in cache?

Cache decompressed data is helpless when decompress is very fast(such as lz4 with cached compressed data). I run on Debian Stretch with the Linux kernel 4.14.13, but any Linux kernel version answer to ...
0
votes
0answers
53 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,...
0
votes
1answer
79 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
1answer
151 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 ...
0
votes
0answers
87 views

mksquashfs-4.3: how to exclude (non-anchored) directories named `… packages/`, while including identically named files?

GOAL exclude directories named packages/ include files named packages PROBLEM mksquashfs /usr/portage /mnt/gentoo/portage-$TODAY.sqfs -noappend -no-progress -wildcards -e '... packages/' or -e '... ...
0
votes
2answers
244 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
1answer
890 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 ...
1
vote
0answers
342 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
0answers
152 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
0answers
295 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 ...
0
votes
1answer
414 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
1answer
26 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
0answers
147 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
2answers
5k 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
2answers
945 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 ...
0
votes
1answer
892 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 ...
1
vote
1answer
554 views

Access the filesystem as the root user

Embedded device, Linux version 2.6.26.5, U-Boot 2009.03 bootloader. ARM Linux Kernel Image on NAND flash, loading from NAND. How to access the filesystem as the root user, and to reset the root ...
2
votes
0answers
662 views

Ubuntu Server 16.04.3LTS Squashfs as root from Grub

I'm currently trying to setup an x86 64bit system to use a Squashfs as its root mountpoint, but i'm being met with many issues. Currently I am using 4.4.0-89 kernel compiled with Squashfs. I am ...
1
vote
3answers
2k views

wrt (openwrt / lede) initramfs

Do you know what initramfs-kernel mean? I know squashfs-factory/squashfs-sysupgrade. How can I do it or what is it? which is better? I just don't understand what the initramfs-kernel mean. I have ...
3
votes
1answer
2k views

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/ ...
3
votes
1answer
860 views

How to check integrity of squashfs files

Is there a method to check integrity of squashfs files, using standard squashfs tools. At the time I'm using a separate file with sha256 hashes.
4
votes
0answers
2k views

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 ...
1
vote
0answers
233 views

Modifying a squashfs

I am having a problem recompiling this squashfile with the same file format. Here's the file I already tried with squashfs 3.4 but the problem is I am missing something with non-standard signature. ...
0
votes
2answers
1k views

Unable to kickstart machine with spacewalk / 404 squashfs.img

I am using spacewalk 2.6 on a CentOS7 machine. I am trying to kickstart machine from the spacewalk server. For troubleshooting purposes, i have disabled SElinux For troublshooting purposes, i have no ...
2
votes
1answer
23 views

How would I request that a future version of squashfs incorporate shadowing functions? [closed]

Currently you can already append new files to a compressed squashfs, and i thought that would be enough for my usecase, that doesn't actually require replacement because the files are 'last useful ...
3
votes
2answers
11k views

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 ...
1
vote
0answers
326 views

selinux on squashfs with overlayfs

Is it possible to use SELinux on a system with a squashfs root with an overlayfs overlay for read-write operations? On funtoo (gentoo), I booted with SELinux enabled in permissive mode to see what ...
2
votes
1answer
257 views

Mount a large squashfs in a way that allows random writes (to a separate filesystem)?

I just received a few-dozen-gigabyte squashfs that contains a PostgreSQL database. In order to be able to conveniently query it, I need to have a write access, which makes it complicated. Is there a ...
1
vote
2answers
610 views

Squashfs minimal compression?

I'd like to create a squashfs image of a directory, but it's a huge one and even minimal compression would be a big win. Is there a way to do something like mksquashfs -1?
0
votes
1answer
4k views

Remount linux filesystem from ro to rw [duplicate]

I need to remount my linux filesystem from ro to rw. But nothing gonna work. I will be very grateful if someone help me. # mount /dev/mtdblock3 on / type squashfs (ro) proc on /proc type proc (rw) ...
1
vote
1answer
220 views

Managing(adding/deleting,etc) users in a squashfs(RO file system) with a small R/W partition

I'm using squashfs as the file system on a board which is RO, along with a small jffs2 partition which is R/W. The files corresponding to user management, i.e /etc/passwd, /etc/group & /etc/shadow ...
3
votes
0answers
38 views

chroot and hyperos on ArchLinux?

hyperos is a fork of tinycorelinux Can I run hyperos in a chroot? How can I create an ISO image from files on repo? Is this possible? Which steps should I follow?
2
votes
1answer
1k views

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 ...
0
votes
1answer
979 views

How to update mounted squashfs filesystem

How to update mounted squashfs filesystem? Is it safe to write to mounted block device(routers update firmware somehow)?
4
votes
1answer
9k views

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 ...
2
votes
2answers
151 views

Pipe Find Results for '*.squashfs' to unsquashfs

I am looking for something that will find the squashed filesystem, and the pass the output to unsquash the fs and it would have to be an absolute path outside the squashfs. example /tmp/mnt/live/...
0
votes
1answer
228 views

aufs root on gentoo/funtoo

I have used an aufs root before on gentoo years ago, but cannot seem to get it going now. I am using genkernel-next, I would imagine I used genkernel before as well. I am using funtoo with aufs-...
3
votes
1answer
9k views

Remount squashfs root filessytem read-write [duplicate]

I am working on an embedded device. The fstab shows the following info: <file system> <mount pt> <type> <options> <dump> <pass> /dev/root / ...
2
votes
1answer
272 views

How to add runnable OpenSSH server to an Ubuntu ISO?

In order to create my own custom Linux ISO (Ubuntu), I have decompressed the Squash file system and would like to make the changes to leave it with a installed and working OpenSSH-Server before re-...
1
vote
1answer
2k views

Decompile / Run MIPS executable under x86_64 Ubuntu

I'm currently trying to make modifications to a router firmware: Swisscom Centro Grande - aka Pirelli Vx226N1, firmware version: 60200. I've decompiled it successfully with FMK v0.99 and got the ...
1
vote
0answers
1k views

Add files to Centos Live CD

I'm trying to 'inject' 2 files into a Centos 6 live CD ISO. Process to date: extracted the files from the iso to ./files/ extracted the files from the squashfs.img to ./squashfs/ mounted the ...
2
votes
2answers
551 views

Why do LiveUSBs use squashfs (and similar) file systems?

Every LiveUSB I have encountered so far uses squashfs or some similar method of "faking" and ext4 file system, while actually keeping the partition type already found on the USB flash drive. Why don'...
1
vote
1answer
7k views

unsquashfs fails

Debian 7.0, I extracted the firmware.bin image using binwalk. The extracted content is squashfs-root folder containing subdirectories, and a separate file.squashfs file. I tried unsquashfs this file....