chown -R $USER:$GROUP /run/media/$(whoami)/docs
getent group|grep -w $(whoami) | grep -w -v $(id -g) | awk -F ':' '{print $1}'
chmod -R 755 /run/media/$(whoami)/docs
chattr +i /run/media/$(whoami)/docs
chmod +t /run/media/$(whoami)/docs
echo "/dev/btrfs-partition /run/media/$(whoami)/docs btrfs defaults,user_subvol_rm_allowed 0 0" >> /etc/fstab
- Set the file owner and group to the user who created the partition.
- Set the file mode bits to 755.
- Whether to set the restricted deletion flag and sticky bit is up to the individual user.
- Commands should be executed in a terminal window with appropriate permissions.
- Replace /run/media/$(whoami)/docs with the actual mount point of your (BTRFS) partition.
- Use -R option with chown and chmod to recursively apply changes to all files and directories within the partition.
- The /etc/fstab update is optional but recommended to ensure the partition is mounted with the correct permissions on system boot.
-
Extend based file storage (2^64 max file size)
-
Space efficient packing of small files
-
Space efficient indexed directories
-
Dynamic inode allocation
-
Writable snapshots
-
Subvolumes (separate internal filesystem roots)
-
Object level mirroring and striping
-
Checksums on data and metadata (multiple algorithms available)
-
Compression (multiple algorithms available)
-
Reflink, deduplication
-
Scrub (on-line checksum verification)
-
Hierarchical quota groups (subvolume and snapshot support)
-
Integrated multiple device support, with several raid algorithms
-
Offline filesystem check
-
Efficient incremental backup and FS mirroring (send/receive)
-
Trim/discard
-
Online filesystem defragmentation
-
Swapfile support
-
Zoned mode
-
Read/write metadata verification
-
Online resize (shrink, grow)