Format and enable LZO
I would avoid using any GUI to format;-)
mkfs.btrfs device is good enough, depending on how you would like to make use of Btrfs features:
- use the external USB HDD as 1 single partition/block device
- create 2 partitions (2 block devices) and form a raid1 or raid0 for data (-d), metadata is replicated on all devices by default, unless you manually specify to change
You can make use of the compression by adding the option when mounting, for example:
sudo mount -o compress=lzo /dev/sdd /mnt/btrfs
The good thing about Btrfs is that LZO compression can also be enabled on a subvol basis, very flexible;-) For example
/* Create a subvolume named subvol1 */
# btrfs subvolume create /mnt/btrfs/subvol1
/* Mount the subvolume and enable compression */
# mount -o compress=lzo,subvol=subvol1 /dev/sdd /mnt/subvol1
NOTE: You can add compression to existing Btrfs file systems at any time, just add the option when mounting and do a defragment to apply compression to existing data.
BTW: 2 best Btrfs docs out there:
http://www.funtoo.org/wiki/BTRFS_Fun
http://docs.oracle.com/cd/E37670_01/E37355/html/ol_btrfs.html
Make use of LZO compression:
http://www.oracle.com/technetwork/articles/servers-storage-admin/advanced-btrfs-1734952.html
USB Auto Mount
I am not too sure about this, will let other blokes answer it;-)
I'd prefer to write a simple shell script to do the mount because I won't attach the USB HDD to the computer all the time.