Skip to content

u/MindfulMonk

In this archive from May 2014 to Oct 2017

0
posts
8
comments
0
media
30
score

Top comments

Here are my instructions for pure btrfs on a clean hdd.

mkfs.btrfs -L arch /dev/sda
mount /dev/sda /mnt
cd /mnt
btrfs subvolume create root
btrfs subvolume create home
umount /mnt

mount -o rw,noatime,compress=lzo,ssd,discard,space_cache,autodefrag,inode_cache,subvol=root /dev/sda /mnt

mkdir /mnt/home

mount -o rw,noatime,compress=lzo,ssd,discard,space_cache,autodefrag,inode_cache,subvol=home /dev/sda /mnt/home

pacstrap /mnt base base-devel

Then continue as normal with the installation. I use it on my ssd and external hdd for about a year now without problems. Two important things you need to know:

13 points

I added https://wiki.archlinux.org/index.php/profile-sync-daemon and the cr32c-intel module.

vi /etc/mkinitcpio.conf
MODULES="crc32c-intel"

Don't worry about ssd writes too much, at least my crucial m4 is still in great shape after 2 years or so.

You might want to do a https://wiki.archlinux.org/index.php/SSD_Memory_Cell_Clearing

hdparm -I /dev/sda
close lid or suspend
hdparm --user-master u --security-set-pass foo /dev/sda
hdparm --user-master u --security-erase foo /dev/sda
6 points

I've been using it on Arch Linux for quite a while now without any issues. ZoL is great. My initial setup boils down to:

zpool create -o ashift=12 -m none rpool /dev/mapper/ssd
zfs create -o compression=lz4 -o atime=off -o mountpoint=/ rpool/root
zfs create -o compression=lz4 -o atime=off -o mountpoint=/home rpool/home
zpool set bootfs=rpool/root rpool

As I"m running the ssd encrypted, my boot partition is on a sandisk ultra fit usb drive, the bootloader is syslinux.

My only gripe is that it still doesn't have Trim, but everything else works great.

3 points

You are right some of them are now on be default.

  • discard, this is debatable there was one one blog post that advocated manual fstrim and now the myth continues, I never saw good data on that. discard is the recommended way, if you can see a slowdown then maybe try a cron fstrim.
  • inode_cache you are probably right, there are no huge gains and many more reports of problems with it.
  • crucial m4 doesn't have compression, but you might be right that compressing twice might have a negative impact(although lzo if quite fast?)

So reflecting on that I changed my mount options to

noatime,compress=lzo,discard,autodefrag,subvol=root
2 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.