You can make unencrypted file system on encrypted
home and put Dropbox folder inside.
- Unlink your host and quit Dropbox.
- Make storage file (count depend of your Dropbox size)
$ dd if=/dev/zero of=~/dropboxStorage bs=1024 count=3000000
- Make file system inside
$ mkfs.ext4 ~/dropboxStorage
- Localize Dropbox folder and rename it (you can remove it but I prefer to rename if smtf went wrong):
$ mv ~/Dropbox ~/Dropbox.mvd
- Edit fstab, change ownership of Dropbox mountpoint and mount it (now you don’t need sudo)
$ mkdir ~/Dropbox
$ sudo vim /etc/fstab # add at the end of fstab
/home/username/dropboxStorage /home/username/Dropbox ext4 noauto,user 0 0
$ sudo chown username ~/Dropbox
$ mount ~/Dropbox
# check it
$ mount | grep Dropbox
/home/username/dropboxStorage on /home/username/Dropbox type ext4 (rw,nosuid,nodev,noexec,relatime,user=username
- Start Dropbox and relink again -- it works!
I have a lot of hosts linked and quicker and safer for me is download Dropbox again. You cat try to do
tar -. But beware.
You have to set starting Dropbox after mount Dropbox storage. Or turn off start Dropbox in
gnome-session-properties and start it manually after login. First