Answer the question
In order to leave comments, you need to log in
How to mount a hard drive on boot to an encrypted home directory?
Installed ubuntu, set to encrypt my home directory. I have two hard drives, I put ubuntu on one, I have games on the second. I wanted to put the automount of the second disk in the /home/user/Games directory, but after rebooting I see an empty hard disk (although there are already files there). In nautilus, you can see that I am on the hard disk I need, but there are no files. If I remove it in fstab autoload and already mount it in / media through a click with nautilus, then the data is there and I can see it perfectly. As far as I understand, the problem is that the directory is not encrypted and it needs to be encrypted somehow. Tell me how can I get the hard disk to be mounted normally when uploading to home directory?
Answer the question
In order to leave comments, you need to log in
I think the second disk is simply not mounted (you can check it with the mount command without parameters) - because. /home/ is encrypted, the /home/user/Games folder is not visible during boot and mounting there is impossible.
I propose to mount it in /mnt/Games (after creating this folder), and make /home/user/Games a symlink to /mnt/Games
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question