Filesystem: Difference between revisions

From 太極
Jump to navigation Jump to search
 
Line 5: Line 5:
* [https://www.makeuseof.com/best-file-systems-for-installing-linux/ The 6 Best File Systems for Installing Linux]. ext4, Btrfs, ZFS, Reiser4, XFS, JFS
* [https://www.makeuseof.com/best-file-systems-for-installing-linux/ The 6 Best File Systems for Installing Linux]. ext4, Btrfs, ZFS, Reiser4, XFS, JFS
* https://linuxjourney.com/. See [https://www.makeuseof.com/free-online-games-and-websites-to-master-linux/ 5 Free Online Games and Websites to Master Linux and the Command Line]
* https://linuxjourney.com/. See [https://www.makeuseof.com/free-online-games-and-websites-to-master-linux/ 5 Free Online Games and Websites to Master Linux and the Command Line]
* [https://www.howtogeek.com/filesystems-on-linux-when-should-you-not-use-ext4/ Filesystems on Linux: When Should You Not Use Ext4?]
** Btrfs supports snapshots and is self-repairing, while XFS excels with large file storage due to its parallel read and write operations.


= squashfs =
= squashfs =

Latest revision as of 19:15, 2 February 2025

File systems

squashfs

squashfs is a heavy-compression based read-only filesystem that is capable of compressing 2 to 3 GB of data onto a 700MB. Linux liveCD are built using squashfs. These CDs make use of a read-only compressed filesystem which keeps the root filesystem on a compressed file. It can be loopback mounted and loads a complete Linux env. Thus when some file are required by processes, they are decompressed and loaded onto the RAM and used.

# create a squashfs file
sudo mksquashfs /etc test.squashfs 

# mount the squashfs file 
mkdir /mnt/squash
mount -o loop compressedfs.squashfs /mnt/squash
# you can acess the contents at /mnt/squashfs

# exclude files 
sudo mksquashfs /etc test.squashfs -e /etc/passwd /etc/shadow
# or specify a list of exclude files given in a file
cat excludelist  # /etc/passwd
sudo mksquashfs /etc test.squashfs -ef excludelist

Btrfs

ZFS

COW (copy on write) file system

The cow filesystem was found on xubuntu live CD. See http://en.wikipedia.org/wiki/Copy-on-write

How To Protect Your Server Against the Dirty COW Linux Vulnerability (10/21/2016)

Inode (index node)