Bilibop-Lockfs : Btrfs vs ext4?

Asked by Ice-Tea

Am i right in thinking that ext4 would be a preferred file system for Bilibop-Lockfs?

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu bilibop Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bernard Stafford (bernard010) said :
#1

I would use ext4 partitioning:
bilibop-lockfs Homepage:
bilibop-lockfs lock filesystems and write changes to RAM

If the "lockfs" feature is enabled (in a configuration file, from the boot command line, or by heuristics), nothing will be written to the local filesystems listed in /etc/fstab, except for those that have been whitelisted, or encrypted exchange devices.

The root filesystem is locked (read-only, using aufs) by an initramfs script which also modifies the temporary fstab file to prepare other filesystems to be locked later by a mount helper script.

bilibop-lockfs provides the following functionality:

     a policy based on the principle of whitelisting: the filesystems on which you want to allow persistent modifications must be explicitly listed in a configuration file.
     not only filesystems are read-only, but also block devices: this disallows modifications to the partition table, boot sectors, LUKS headers, and LVM metadata.
     the management of exchange devices (swap), which can be used as is, manually, only if they are encrypted or not used at all.
     notifications are displayed at the start of an X session about the status of filesystems, to inform the user whether volatile or persistent changes are allowed or not, and where.

This package can be used as an alternative to fsprotect, especially for modifiable operating systems embedded on USB sticks; but it can also be installed on public or personal computers, for daily use, testing or as a tool in an anti-recovery strategy.
https://un.poivron.org/~quidame/wiki/bilibop/bilibop-lockfs/

Revision history for this message
Ice-Tea (ice-tea) said (last edit ):
#2

Btrfs support was added a couple of versions ago but i can't find any information if Btrfs would use more resources than Ext4 so i thought that Ext4 would be preferable.

Revision history for this message
Bernard Stafford (bernard010) said :
#3

https://www.linuxfordevices.com/tutorials/linux/ext4-vs-btrfs-filesystem
The resources would be the OS's usage not the partitioning schema.
Each has its advantages and disadvantages.

Revision history for this message
Ice-Tea (ice-tea) said :
#4

Btrfs uses compression and ram cache for copy on right so it would be effectively using more resources with double ram writes under Bilibop-lockfs so i started this question hoping that someone who uses lockfs may have tried bench marking both.

Can you help with this problem?

Provide an answer of your own, or ask Ice-Tea for more information if necessary.

To post a message you must log in.