Difference between revisions of "Btrfs/en"

1,202 bytes added ,  11 months ago
Updating to match new version of source page
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 337: Line 337:
{{UserCmd|command=pamac install procps-ng}}
{{UserCmd|command=pamac install procps-ng}}
{{RootCmd|command=watch -n 60 btrfs filesystem show /}}
{{RootCmd|command=watch -n 60 btrfs filesystem show /}}
=== Resize a btrfs filesystem/device ===
When you resize a file system, you also need to resize the partition (device) it resides on. You cannot resize a mounted partition using '''gparted'''! So you need to unmount it beforehand or use a live manjaro from USB to resize the partition and file system.
When resizing existing file systems, it is strongly advisable to have current backups. However, resizing is possible without any problems when using '''gparted'''.
==== shrink ====
What you need to understand is that you can only safely shrink a file system if it is ''not too full''. Shrinking a file system can take a '''long time''' because BTRFS may need to move data that was in the area to be freed to the remaining area.
Using '''gparted''' you can safely shrink a BTRFS file system. All necessary steps are taken such as:
* Mount file system
* Shrink file system
* Unmount file system
* Shrink partition
see@ https://forum.manjaro.org/t/howto-resize-a-btrfs-filesystem/152999
==== expand ====
A BTRFS file system can also be safely expanded with '''gparted'''. All necessary steps are taken such as:
* Extend partition
* Mount file system
* Expand file system
* Unmount file system


= Btrfs options =
= Btrfs options =
8,560

edits