Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to install an Ubuntu Server with a BTRFS filesystem (in a RAID1 way).

The problem is that I can't see the option in the installer to make more subvolumes. The installer creates two by default: @ and @home, and I want to separate also @var @tmp...

Is there any option to do this? Maybe with the shell... but I think the installer doesn't understand the subvolumes feature of btrfs, so you can't mount each partition in each subvolume...

share|improve this question

1 Answer 1

This should be easy enough to change after you have finished your initial install.

One neat way is to take two snapshots of @, calling them @var and @tmp. Then delete everything in @var except for @var/var, them move the contents of @var/var/* up to @var/* and delete @var/var. Same for @tmp/tmp/. Then modify fstab with the new subvolume mount points for /var and /tmp. Reboot. Finally (I'm not so sure about this last bit) you should be able to delete the original contents of @/var and @/tmp by mounting the subvolume @ under /mnt (so the same subvolume is mounted twice, once as / and once as /mnt) and deleting /mnt/var and /mnt/tmp.

share|improve this answer
    
Some documentation about working with snapshots in Ubuntu: help.ubuntu.com/community/… –  ermannob Jun 23 '13 at 9:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.