特殊:Badtitle/NS100:Btrfs
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/btrfs }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/af | • {{#if: UbuntuHelp:btrfs|Afrikaans| [[::Btrfs/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/ar | • {{#if: UbuntuHelp:btrfs|العربية| [[::Btrfs/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/az | • {{#if: UbuntuHelp:btrfs|azərbaycanca| [[::Btrfs/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/bcc | • {{#if: UbuntuHelp:btrfs|جهلسری بلوچی| [[::Btrfs/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/bg | • {{#if: UbuntuHelp:btrfs|български| [[::Btrfs/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/br | • {{#if: UbuntuHelp:btrfs|brezhoneg| [[::Btrfs/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/ca | • {{#if: UbuntuHelp:btrfs|català| [[::Btrfs/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/cs | • {{#if: UbuntuHelp:btrfs|čeština| [[::Btrfs/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/de | • {{#if: UbuntuHelp:btrfs|Deutsch| [[::Btrfs/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/el | • {{#if: UbuntuHelp:btrfs|Ελληνικά| [[::Btrfs/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/es | • {{#if: UbuntuHelp:btrfs|español| [[::Btrfs/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/fa | • {{#if: UbuntuHelp:btrfs|فارسی| [[::Btrfs/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/fi | • {{#if: UbuntuHelp:btrfs|suomi| [[::Btrfs/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/fr | • {{#if: UbuntuHelp:btrfs|français| [[::Btrfs/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/gu | • {{#if: UbuntuHelp:btrfs|ગુજરાતી| [[::Btrfs/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/he | • {{#if: UbuntuHelp:btrfs|עברית| [[::Btrfs/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/hu | • {{#if: UbuntuHelp:btrfs|magyar| [[::Btrfs/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/id | • {{#if: UbuntuHelp:btrfs|Bahasa Indonesia| [[::Btrfs/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/it | • {{#if: UbuntuHelp:btrfs|italiano| [[::Btrfs/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/ja | • {{#if: UbuntuHelp:btrfs|日本語| [[::Btrfs/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/ko | • {{#if: UbuntuHelp:btrfs|한국어| [[::Btrfs/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/ksh | • {{#if: UbuntuHelp:btrfs|Ripoarisch| [[::Btrfs/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/mr | • {{#if: UbuntuHelp:btrfs|मराठी| [[::Btrfs/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/ms | • {{#if: UbuntuHelp:btrfs|Bahasa Melayu| [[::Btrfs/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/nl | • {{#if: UbuntuHelp:btrfs|Nederlands| [[::Btrfs/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/no | • {{#if: UbuntuHelp:btrfs|norsk| [[::Btrfs/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/oc | • {{#if: UbuntuHelp:btrfs|occitan| [[::Btrfs/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/pl | • {{#if: UbuntuHelp:btrfs|polski| [[::Btrfs/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/pt | • {{#if: UbuntuHelp:btrfs|português| [[::Btrfs/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/ro | • {{#if: UbuntuHelp:btrfs|română| [[::Btrfs/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/ru | • {{#if: UbuntuHelp:btrfs|русский| [[::Btrfs/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/si | • {{#if: UbuntuHelp:btrfs|සිංහල| [[::Btrfs/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/sq | • {{#if: UbuntuHelp:btrfs|shqip| [[::Btrfs/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/sr | • {{#if: UbuntuHelp:btrfs|српски / srpski| [[::Btrfs/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/sv | • {{#if: UbuntuHelp:btrfs|svenska| [[::Btrfs/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/th | • {{#if: UbuntuHelp:btrfs|ไทย| [[::Btrfs/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/tr | • {{#if: UbuntuHelp:btrfs|Türkçe| [[::Btrfs/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/vi | • {{#if: UbuntuHelp:btrfs|Tiếng Việt| [[::Btrfs/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/yue | • {{#if: UbuntuHelp:btrfs|粵語| [[::Btrfs/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/zh | • {{#if: UbuntuHelp:btrfs|中文| [[::Btrfs/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/zh-hans | • {{#if: UbuntuHelp:btrfs|中文(简体)| [[::Btrfs/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:btrfs | UbuntuHelp:btrfs | {{#if: | :}}Btrfs}}/zh-hant | • {{#if: UbuntuHelp:btrfs|中文(繁體)| [[::Btrfs/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:btrfs|:Btrfs|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Btrfs/zh | | {{#ifexist: Btrfs/zh | | {{#ifeq: {{#titleparts:Btrfs|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Btrfs|1|-1|}} | zh | | }}
Placeholder page for btrfs info and usage instructions.
What is btrfs
Basic description of btrfs. Strengths, weaknesses, why is this important, etc.
Features:
- Extent 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
- Integrated multiple device support, with several raid algorithms
- Online filesystem check
- Very fast offline filesystem check
- Efficient incremental backup and FS mirroring
- Online filesystem defragmentation
How to install
Ubuntu 8.10 Intrepid
PPA deb packages
[1] Lines for sources.list.d:
deb http://ppa.launchpad.net/brcha/ppa/ubuntu intrepid main deb-src http://ppa.launchpad.net/brcha/ppa/ubuntu intrepid main
Add the GPG key:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 17f547c39c5c4071e254d0a7313d312748a22a95
Download module source and btrfs tools:
sudo apt-get install btrfs btrfs-progs module-assistant
Build and install kernel module:
sudo module-assistant auto-install btrfs sudo modprobe btrfs
Compile from Source
NOT ACTUALLY WORKING YET btrfs wiki getting started page
Kernel Module Dependencies
8.10 Kernel 2.6.27-9-generic
- CONFIG_LIBCRC32C=m
- CONFIG_ZLIB_INFLATE=y
- CONFIG_ZLIB_DEFLATE=m
- build-essential: make, compiler, etc
- linux-headers-2.6.27-9-generic: latest kernel headers
sudo apt-get install build-essential linux-headers-2.6.27-9-generic
Patch: [2] Download, patch and compile code:
wget http://www.kernel.org/pub/linux/kernel/people/mason/btrfs/btrfs-0.17.tar.bz2 tar -jxvf btrfs-0.17.tar.bz2 cd btrfs-0.17 #apply patch make
Currently btrfs does not work with kernel 2.6.27 Ensure modules are up and running, and insert btrfs module into kernel.
sudo modprobe libcrc32c zlib_inflate zlib_deflate sudo insmod btrfs.ko
btrfs progs dependencies
sudo apt-get install e2fsprogs uuid-dev
wget http://www.kernel.org/pub/linux/kernel/people/mason/btrfs/btrfs-progs-0.17.tar.bz2 tar -jxvf btrfs-progs-0.17.tar.bz2 make
btrfs-progs compile fine
Ubuntu 9.04 Jaunty
TBD
How to use
- How to format disk as btrfs
- How to grow/shrink file system
- How to create snapshots
- How to access snapshots
- How to convert ext2/3(/4?) partitions to btrfs
- How to create an image of a btrfs file system
- How to restore from an image of a btrfs file system
- How to recover from a failed device
- How to add another device to file system
[[category:Category:Documentation btrfs wiki documentation category]]
Troubleshooting
Alternatives
- Tux3?
- ZFS over Fuse?
- Hammer FS (DragonFly BSD)