Jump to content

Filesystem: Difference between revisions

From 太極
Brb (talk | contribs)
Brb (talk | contribs)
 
(One intermediate revision by the same user not shown)
Line 36: Line 36:
= Btrfs =
= Btrfs =
* https://en.wikipedia.org/wiki/Btrfs
* https://en.wikipedia.org/wiki/Btrfs
* It's the default used by CachyOS, Fedora, Garuda, Manjaro, and openSUSE.
* It's the default used by '''CachyOS, Fedora, Garuda, Manjaro, and openSUSE'''.
* [https://www.neowin.net/news/fedora-33-launches-with-updated-gnome-and-btrfs/ Fedora 33 launches with updated GNOME and BTRFS]
* [https://www.neowin.net/news/fedora-33-launches-with-updated-gnome-and-btrfs/ Fedora 33 launches with updated GNOME and BTRFS]
* [https://youtu.be/sRQwnkP2KUE?t=1724 Install MX Linux with btrfs partitioning].  
* [https://youtu.be/sRQwnkP2KUE?t=1724 Install MX Linux with btrfs partitioning].  
Line 47: Line 47:
* Used in Internal File Systems by [https://www.pcworld.com/article/2110247/synology-diskstation-ds223j-review-new-nas-same-appealing-story.html Synology DiskStation DS223j]
* Used in Internal File Systems by [https://www.pcworld.com/article/2110247/synology-diskstation-ds223j-review-new-nas-same-appealing-story.html Synology DiskStation DS223j]
* [https://itsfoss.com/btrfs/ Pros and Cons of Using Btrfs Filesystem in Linux]
* [https://itsfoss.com/btrfs/ Pros and Cons of Using Btrfs Filesystem in Linux]
* [https://www.howtogeek.com/fedora-features-i-wish-every-linux-distro-would-steal/ 3 Fedora features that make other Linux distros feel outdated]


= ZFS =
= ZFS =

Latest revision as of 20:32, 5 February 2026

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)