I have set up a few bind mounts in fstab
, mounting one folder in my home directory to another (AeroFS no sym-link circumvent). My home folder is encrypted.
When the system boots up, it attempts to mount the folders inside home folder prior to mounting the encrypted home folder itself, causing an error.
How can I edit fstab
to have the encrypted home folder mount first?
I tried adding noauto
, it didn't work.
EDIT: Also, I want to maintain the encryption for security reasons.
fstab
content:
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=8e26dd0d-f57f-4b63-93b3-7f2743d6fe7a / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=C2BB-18A8 /boot/efi vfat defaults 0 1
# /home was on /dev/sda4 during installation
UUID=062418c7-ba50-40e4-b3ea-42663e92eba8 /home ext4 defaults 0 2
# swap was on /dev/sda3 during installation
#UUID=ac66f7ee-7dbe-4e56-9f42-459038a11a12 none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
#
#Bind mounts for AeroFS to sync outside it's folder:
#
/home/user/Desktop /home/user/AeroFS/Desktop none bind 0 0
/home/user/Documents /home/user/AeroFS/Documents none bind 0 0
/home/user/Music /home/user/AeroFS/Music none bind 0 0
/home/user/Pictures /home/user/AeroFS/Pictures none bind 0 0
#
lsblk output:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 954M 0 part /boot/efi
├─sda2 8:2 0 55.9G 0 part /
├─sda3 8:3 0 14.9G 0 part
└─sda4 8:4 0 394G 0 part /home
gparted --list
so we can have a look??? ;-) – Fabby Apr 04 '15 at 22:16user
mount and using the optionsnoauto,x-systemd.automount
did the job for me. This way a script inserted to auto-start upon login can perform themount
. – 0xC0000022L Jul 02 '20 at 07:56