You are not logged in.

#1 2016-05-17 06:30:30

STREBLO
Member
Registered: 2015-02-15
Posts: 135

Home Directory Wont Mount On Boot Using ZFS

My home directory doesn't mount on boot. While my other datasets mount, /home doesn't... Once booted up if I run 'mount -a' it mounts fine.

Following the advice of the wiki I have set it to legacy and listed it in the fstab.

# /etc/fstab
# <file system>        <dir>         <type>    <options>              <dump> <pass>
vault/ARCHON/ROOT/default       /               zfs             rw,relatime,xattr,noacl 0 0
vault/ARCHON/home       /home           zfs             rw,relatime,xattr,noacl 0 0
vault/ARCHON/var        /var            zfs             rw,relatime,xattr,posixacl      0 0
vault/ARCHON/usr        /usr            zfs             rw,relatime,xattr,noacl 0 0
vault/ARCHON/tmp        /tmp            zfs             rw,relatime,xattr,noacl 0 0

I am running up to date ZFS from the archzfs repository

Here is my dataset setup:

$ zfs list
NAME                        USED  AVAIL  REFER  MOUNTPOINT
vault                       877M   429G    96K  /vault
vault/ARCHON                876M   429G    96K  none
vault/ARCHON/ROOT          13.0M   429G    96K  none
vault/ARCHON/ROOT/default  12.9M   429G  10.3M  /
vault/ARCHON/home            96K   429G    96K  legacy
vault/ARCHON/tmp            184K   429G   120K  legacy
vault/ARCHON/usr            602M   429G   593M  legacy
vault/ARCHON/var            261M   429G   259M  legacy

Offline

#2 2016-05-17 21:46:17

STREBLO
Member
Registered: 2015-02-15
Posts: 135

Re: Home Directory Wont Mount On Boot Using ZFS

OK, figured it out. You arent supposed to have the /home folder there to mount the dataset on. I deleted the directory and the dataset now mounts.

Offline

#3 2016-05-17 23:01:34

STREBLO
Member
Registered: 2015-02-15
Posts: 135

Re: Home Directory Wont Mount On Boot Using ZFS

Scratch that, it worked once but now it's not mounting on boot again. I tried deleting the home directory mount point and on reboot it remakes '/home' but doesn't mount the dataset. Once booted I end up having to run 'mount -a' which mounts the dataset successfully.

If i set it to be controlled by zfs with zfs set mountpoint=/home it will mount though... Why does the wiki say use legacy?

Last edited by STREBLO (2016-05-18 00:18:34)

Offline

Board footer

Powered by FluxBB