All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
25 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 ...
0
votes
1answer
81 views

How can I unload a filesystem module in a RHEL 7 server in order to harden it?

I'm trying to harden my RHEL Linux server 7 according to the CIS guidelines, so I want to unload the cramfs. I typed the following command: modprobe -n -v cramfs and I got the following answer: ...
0
votes
0answers
109 views

How can I copy sparse files from a ext4 file system to an exfat file system and keep the apparent size?

My issue is that I am trying to copy files from my Ubuntu linux system which uses a ext4 file system to a Sandisk 1TB USB card, which uses an exFat system. In the ext4 system, the entire directory ...
0
votes
1answer
115 views

Recovering file from compressed raw data on btrfs

I was recently acquiring data from a networked instrument, saving results as text files. Unfortunately, I forgot to change the filename during one of my runs, and I managed to overwrite an important ...
2
votes
0answers
2k views

btfs: Zstd vs lzo [closed]

Linux 4.14 added support for Zstandard (or Zstd) compression. Here is a summary of the algorithm taken from Facebook's project website: Zstandard is a real-time compression algorithm, providing ...
1
vote
1answer
810 views

compressed swapfile (without zram or zswap)

Is it possible to have a compressed swap file without using zram or zswap? Actually, I've successfully mounted a swap file over sftp with sshfs with these commands and I'd like to use compression ...
0
votes
0answers
374 views

Why is copying many files with Caja much slower than compressing+copying+uncompressing?

I am currently working with HASYv2 dataset which contains the hasy-data directory with 168.233 images of size 32px x 32px. I just wanted to copy that directory with Caja, but I skipped this after ...
1
vote
1answer
82 views

How can I create a compressed archive consisting of the largest files from multiple directories?

I want to write a script which will create a single compressed-archive file consisting of the largest files above a certain threshold from multiple directories. For example, I would like to know how ...
2
votes
2answers
689 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?
7
votes
2answers
606 views

How do I layer compression on top of encryption on top of BtrFS, per-file?

BtrFS should support this really, but it doesn't. So ECryptFS looks like it will fill the gap. The only thing is, how would I layer compression on top of this? Reasons for compression on top of ...
3
votes
2answers
10k views

Mount compressed tar file and update it

How do I mount a .tar.gz file, update it (add new files, edit files), and then unmount it such that changes are reflected in the original compressed file? I'm open to other compression formats if no ...
1
vote
2answers
1k views

File compression - how to implement in Linux

I would like to be able to compress certain files (that I need to keep, but use rarely) on disk. I noticed that chattr +c flags a file for compression, but it doesn't seem to actually compress files. ...
6
votes
1answer
1k views

Will using a compressed filesystem over an encrypted volume improve performance?

Encryption/decryption is often the main bottleneck when accessing an encrypted volume. Would using a filesystem with a fast transparent compression (such as BTRFS + LZO) help? The idea is that there ...
11
votes
1answer
10k views

On the Fly Compression for a Directory

I have a directory that is always going to be storing text files that are rarely (think weekly) used. Naturally this is a great place to use compression. However, rather than having to use tar ever ...
73
votes
6answers
87k views

Clear unused space with zeros (ext3,ext4)

How to clear unused space with zeros ? (ext3,ext4) I'm looking for something smarter than cat /dev/zero > /mnt/X/big_zero ; sync; rm /mnt/X/big_zero Like FSArchiver is looking for "used space" ...
16
votes
5answers
50k views

Is it possible to compress a very large file (~30 GB) using gzip?

Is it possible to compress a very large file (~30 GB) using gzip? If so, what commands, switches, and options should I use? Or is there another program (preferably one commonly available on Ubuntu ...