Difference between revisions of "Btrfs"
From wiki
(Created page with "{{Warning|msg = Btrfs is still a new filesystem. While many (including myself) find it stable enough for everyday use, don't use it for critical services and be prepared to us...") |
(Install) |
||
Line 1: | Line 1: | ||
{{Warning|msg = Btrfs is still a new filesystem. While many (including myself) find it stable enough for everyday use, don't use it for critical services and be prepared to use you backups.}} | {{Warning|msg = Btrfs is still a new filesystem. While many (including myself) find it stable enough for everyday use, don't use it for critical services and be prepared to use you backups.}} | ||
+ | |||
+ | == Install == | ||
+ | To create and manipulate Btrfs volumes, you will need to install<syntaxhighlight lang="console"> | ||
+ | # apt install btrfs-tools | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | === Debian Jessie === | ||
+ | Btrfs being still very young, it is recommended to use recent version of the kernel and btrfs-tools | ||
+ | * [[Kernel from Jessie Backports]] | ||
+ | * <syntaxhighlight lang="console"> | ||
+ | # apt install btrfs-tools/jessie-backports | ||
+ | </syntaxhighlight> | ||
== Create a filesystem == | == Create a filesystem == | ||
Line 22: | Line 34: | ||
# btrfs subvolume create /<path> | # btrfs subvolume create /<path> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | [[Category:Linux Desktop]] | ||
+ | [[Category:Linux Server]] | ||
+ | [[Category:Debian Release]] |
Revision as of 06:41, 1 April 2016
Warning: | Btrfs is still a new filesystem. While many (including myself) find it stable enough for everyday use, don't use it for critical services and be prepared to use you backups. |
Install
To create and manipulate Btrfs volumes, you will need to install
# apt install btrfs-tools
Debian Jessie
Btrfs being still very young, it is recommended to use recent version of the kernel and btrfs-tools
- Kernel from Jessie Backports
# apt install btrfs-tools/jessie-backports
Create a filesystem
Single Disk
# mkfs.btrfs /dev/sdb
Raid 1
# mkfs.btrfs -mraid1 -draid1 /dev/sdb /dev/sdc
Raid 0
# mkfs.btrfs -mraid1 -draid0 /dev/sdb /dev/sdc
Subvolumes
To create a subvolume just use the command
# btrfs subvolume create /<path>