Skip to content

Instantly share code, notes, and snippets.

@lukassup
Created October 8, 2016 15:40
Show Gist options
  • Save lukassup/0eaa6f50d334918e5f2aa1517bc637aa to your computer and use it in GitHub Desktop.
Save lukassup/0eaa6f50d334918e5f2aa1517bc637aa to your computer and use it in GitHub Desktop.

BTRFS

$ mount | grep btrfs
/dev/mapper/vg-system on / type btrfs (rw,relatime,compress=lzo,ssd,space_cache,subvolid=260,subvol=/root)
/dev/mapper/vg-system on /home type btrfs (rw,relatime,compress=lzo,ssd,space_cache,subvolid=261,subvol=/home)
/dev/mapper/vg-system on /var/lib/docker/btrfs type btrfs (rw,relatime,compress=lzo,ssd,space_cache,subvolid=260,subvol=/root/var/lib/docker/btrfs)
$ sudo mount -o compress=lzo,ssd,space_cache /dev/mapper/vg-system /mnt
[sudo] password for user: 
$ cd /mnt
$ ll 
total 0
drwxr-xr-x 1 root root  10 Rgp 11 21:07 home
drwxr-xr-x 1 root root 122 Rgp 12 14:45 root
drwxr-xr-x 1 root root 122 Rgp 12 14:45 root-2016-08-12
$ ll /
total 36
lrwxrwxrwx   1 root root    7 Rgs 30  2015 bin -> usr/bin
drwxr-xr-x   4 root root 4096 Sau  1  1970 boot
drwxr-xr-x  20 root root 3160 Spa  7 19:37 dev
drwxr-xr-x   1 root root 3820 Spa  7 20:03 etc
drwxr-xr-x   1 root root   10 Rgp 11 21:07 home
lrwxrwxrwx   1 root root    7 Rgs 30  2015 lib -> usr/lib
lrwxrwxrwx   1 root root    7 Rgs 30  2015 lib64 -> usr/lib
drwxr-xr-x   1 root root   46 Rgp 13 00:23 mnt
drwxr-xr-x   1 root root   50 Spa  4 20:19 opt
dr-xr-xr-x 209 root root    0 Spa  7 19:37 proc
drwxr-x---   1 root root  122 Rgs  1 13:08 root
drwxr-xr-x  31 root root  820 Spa  8 18:04 run
lrwxrwxrwx   1 root root    7 Rgs 30  2015 sbin -> usr/bin
dr-xr-xr-x  13 root root    0 Spa  7 19:37 sys
drwxr-xr-x   1 root root   14 Rgs 30  2015 srv
drwxrwxrwt  12 root root  340 Spa  8 18:06 tmp
drwxr-xr-x   1 root root   80 Rgp 31 13:15 usr
drwxr-xr-x   1 root root  122 Rgp 22 00:17 var
$ sudo btrfs subvolume list /mnt | grep -v docker
ID 260 gen 82945 top level 5 path root
ID 261 gen 82945 top level 5 path home
ID 264 gen 239 top level 260 path root/var/lib/machines
ID 269 gen 2157 top level 5 path root-2016-08-12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment