Difference between revisions of "Btrfs"

included example commands
(included example command)
(included example commands)
Line 116: Line 116:
=== Subvolume '''@...''' ===
=== Subvolume '''@...''' ===
Sometimes it is desired to have other '''special snapshot strategies''' (or no snapshots at all) for some parts of the filesystem. If you need this, make another subvolume.
Sometimes it is desired to have other '''special snapshot strategies''' (or no snapshots at all) for some parts of the filesystem. If you need this, make another subvolume.
To have access to the root(/) of your volume, you need to mount this separately. (Please do not confuse this with "/" of the file system)
{{RootCmd|command=mount -t btrfs -o subvol=/,defaults [/dev/sdz2] /mnt}}
Now you are able to create a new subvolume in a flat layout.
{{RootCmd|command=btrfs subvolume create [/mnt/@tests]}}
This will be shown by
{{RootCmd|command=ls -l /mnt}}
{{RootCmd|command=btrfs subvolume list /mnt}}
This subvolume '''tests''' is empty. And it is not mounted by default. So if you want to use it, you have to mount it by ''fstab'' or other means. '''Now lets delete it again.'''
{{RootCmd|command=btrfs subvolume delete [/mnt/@tests]}}
{{RootCmd|command=umount /mnt}}


== Snapshot ==
== Snapshot ==
translator
1,001

edits