Bala's Blog

Enable 'btrfs' in CentOS

December 4 2016
72 words, ~1 min. read
centos,  btrfs,  filesystem 

Steps

  1. Ensure HTTP proxy is enabled export http_proxy=http://proxy.sbchand.net:8080
  2. Update packages yum update -y
  3. Install btrfs yum install btrfs-progs -y
  4. Load kernel module modprobe btrfs
  5. Test btrfs
dd if=/dev/zero of=sb seek=1 count=0 bs=1G
mkfs.btrfs sb

NOTE: To check whether btrfs kernel module is loaded, use modprobe

[root@centos ~]# modinfo btrfs
filename:       /lib/modules/2.6.32-573.3.1.el6.x86_64/kernel/fs/btrfs/btrfs.ko
license:        GPL
alias:          devname:btrfs-control
alias:          char-major-10-234
srcversion:     B412C18B0F5BF7F1B3C941A
depends:        libcrc32c,zlib_deflate,lzo_compress,lzo_decompress
vermagic:       2.6.32-573.3.1.el6.x86_64 SMP mod_unload modversions

References

  1. http://www.tecmint.com/create-btrfs-filesystem-in-linux
  2. https://wiki.centos.org/PhilipJensen/CentOS6ConvertToBTRFS
  3. http://www.tecmint.com/create-btrfs-filesystem-in-linux/
  4. https://www.howtoforge.com/a-beginners-guide-to-btrfs
  5. https://vulariter.wordpress.com/2014/02/11/how-to-install-centos-6-5-using-btrfs-for-the-root-partition/