You are not logged in.
I added a new SATA drive, to use for GRUB, and then created a second partition, encrypted it with dm-crypt and formatted it with Btrfs.
I set fstab to mount the new partition in /mnt/btrfs. Then, I created a subvolume, and added it to fstab to mount it in /mnt/git.
On boot, the partition asks for the encryption key and mounts the btrfs partition, but it fails to mount the subvolume.
The error message is "Failed to mount /mnt/git" and then it stops booting, with a systemd message to run "journalctl -xb", but I get no console prompt.
This is the relevant part of fstab. I also added btrfs to hooks in mkinitcpio.conf, just in case.
/dev/sda3 none swap defaults 0 0
/dev/sdd2 / ext4 defaults,noatime 0 1
/dev/sdd3 /home ext4 defaults,noatime 0 2
/dev/sdd4 /srv ext4 defaults,noatime 0 2
/dev/sda4 /ftp ext4 defaults,noatime 0 2
/dev/sdc1 /mnt/backup ext4 defaults,noatime 0 2
/dev/mapper/sdb2Btrfs /mnt/btrfs btrfs rw,relatime,compress-force=zlib,autodefrag 0 0
/dev/mapper/sdb2Btrfs /mnt/git btrfs rw,relatime,compress-force=zlib,autodefrag,subvol="git" 0 0
If I comment the subvolume, the system boots without issues. I'm thinking of just creating a symbolic link and be done with it, but everything I've read suggests it should be possible to mount it with fstab.
Offline
Where is the git subvol? You have to give it a path relative to the top level subvol.
Have you tried it without the quotes? I've mounted subvols in fstab, but never tried it with quotes.
Disclaimer: I've never tried this encrypted. Don't know if that will make a difference.
Last edited by Scimmia (2014-01-08 16:41:45)
Online
My bad, the quotes are probably the problem.
Thanks a lot for the help!
Offline