fsprotect icon

fsprotect For Linux

  n/a
GPL v3    

fsprotect is a set of scripts that protect existing filesystems. #Filesystem protection  #Script set  #Scripts  #Filesystem  #Protection  #Debian  

Description

changelog

Free Download

fsprotect consists of various scripts designed to protect filesystems and is customized for Debian systems.

It uses the AUFS filesystem and some initramfs magic to protect the root filesystem. It also uses a simple init script to protect other filesystems as early as possible.

fsprotect is excellent for public computers like those in libraries, labs, etc. It will ease the life of all administrators with a couple of simple steps.

The benefits of using fsprotect are:

- Filesystems are protected and no change is ever written to the disk - Protected filesystems are mounted read-only. This means that they aren't damaged when the computer is turned off improperly. - It is very easy to use. Just add an "fsprotect" parameter to the kernel for the root filesystem and list the filesystems to be protected in /etc/default/fsprotect. - In some cases it makes the filesystem access faster.

The drawbacks of using fsprotect:

- Filesystem changes cannot be more than a predefined limit (set by you) (in bytes). - Since tmpfs is heavily used, you need to have adequate swap space.

How it works

fsprotect uses AUFS to combine two filesystems in one. AUFS does exactly that: It merges to existing filesystems in one and distributes changes among them.

For each protected filesystem, fsprotect combines the existing filesystem with a tmpfs, forcing all changes to be written to the tmpfs. This means that nothing is ever written to the disks and all changes are stored in the tmpfs. tmpfs is a memory based filesystem, similar to ramdisk but using VM instead of real memory, allowing its contents to be swapped out.

The whole protection procedure is achieved with the following steps (assuming you want to protect /test):

  1. There is a directory named /fsprotect. Three other directories are created inside it: /fsprotect/test/orig, /fsprotect/test/tmp and /fsprotect/test/aufs    2. mount -t tmpfs -o size=XXXX none /fsprotect/test/tmp    3. mount -o bind /test /fsprotect/test/orig    4. mount -t aufs -o dirs=/fsprotect/test/tmp=rw:/fsprotect/test/orig=ro none /fsprotect/test/aufs    5. umount /test    6. mount -o bind /fsprotect/test/aufs /test    7. umount /fsprotect/test/aufs    8. mount -o remount,ro /fsprotect/test/orig

The protection of the root filesystem is a very special case since all other filesystems are mounted beneath it. For fsprotect to succeed, the above procedure needs to be run before the root filesystem is moved to /. To achieve this, fsprotect uses an initramfs script that runs very early in the boot process, after the root filesystem is mounted but before is is moved to /. It then exchanges the existing filesystem with an aufs and lets the boot procedure continue.

The protection of non-root filesystems is somehow easier. For each filesystem, fsprotect runs the above procedure exchanging it with an aufs. The user must take care not to use filesystems that are mounted beneath each other because this will make fsprotect to fail.

What's new in fsprotect 1.0.5:

  • Add "auto" size. Fix permissions of tmpfs. Drop dependency on aufs. Support NFS.
Read the full changelog

fsprotect 1.0.5

add to watchlist add to download basket send us an update REPORT
  runs on:
Linux
  main category:
System
  developer:
  visit homepage

Microsoft Teams 24060.3102.2733.5911 Home / 1.7.00.7956 Work

Effortlessly chat, collaborate on projects, and transfer files within a business-like environment by employing this Microsoft-vetted application
Microsoft Teams

ShareX 16.0.1

Capture your screen, create GIFs, and record videos through this versatile solution that includes various other amenities: an OCR scanner, image uploader, URL shortener, and much more
ShareX

Windows Sandbox Launcher 1.0.0

Set up the Windows Sandbox parameters to your specific requirements, with this dedicated launcher that features advanced parametrization
Windows Sandbox Launcher

calibre 7.9.0

Effortlessly keep your e-book library thoroughly organized with the help of the numerous features offered by this efficient and capable manager
calibre

IrfanView 4.67

With support for a long list of plugins, this minimalistic utility helps you view images, as well as edit and convert them using a built-in batch mode
IrfanView

4k Video Downloader 1.5.3.0080 Plus / 4.30.0.5655

Export your favorite YouTube videos and playlists with this intuitive, lightweight program, built to facilitate downloading clips from the popular website
4k Video Downloader

Bitdefender Antivirus Free 27.0.35.146

Feather-light and free antivirus solution from renowned developer that keeps the PC protected at all times from malware without requiring user configuration
Bitdefender Antivirus Free

7-Zip 23.01 / 24.04 Beta

An intuitive application with a very good compression ratio that can help you not only create and extract archives, but also test them for errors
7-Zip

Zoom Client 6.0.3.37634

The official desktop client for Zoom, the popular video conferencing and collaboration tool used by millions of people worldwide
Zoom Client

Context Menu Manager 3.3.3.1

Customize Windows’ original right-click context menu using this free, portable and open-source utility meant to enhance your workflow
Context Menu Manager

% discount
7-Zip
  • 7-Zip
  • Zoom Client
  • Context Menu Manager
  • Microsoft Teams
  • ShareX
  • Windows Sandbox Launcher
  • calibre
  • IrfanView
  • 4k Video Downloader
  • Bitdefender Antivirus Free
essentials


Click to load comments
This enables Disqus, Inc. to process some of your data. Disqus privacy policy