Skip to content

Instantly share code, notes, and snippets.

@lmiphay
Last active November 4, 2018 15:35
Show Gist options
  • Save lmiphay/6d933706de60bfa5610b231ef0b4bb7f to your computer and use it in GitHub Desktop.
Save lmiphay/6d933706de60bfa5610b231ef0b4bb7f to your computer and use it in GitHub Desktop.
Continue using dropbox on btrfs... etc after Nov 2018
btrfs filesystem label /cloud CLOUD
fallocate -l 40G /cloud/Dropbox.loop
losetup /dev/loop0 /cloud/Dropbox.loop
mkfs.ext4 /dev/loop0
mkdir $HOME/DropboxLoop
mount -t ext4 /dev/loop0 $HOME/DropboxLoop
chown $USER:$USER $HOME/DropboxLoop
chown -R $USER:$USER $HOME/Dropbox $HOME/.dropbox
chattr -R -i $HOME/Dropbox # fix/remove any files/problems here
chmod -R u+rw $HOME/Dropbox $HOME/.dropbox
<Right-Click-Dropbox-Icon>->Preferences->Sync->Dropbox folder location->Move
to: $HOME/DropboxLoop
ln -s $HOME/DropboxLoop/Dropbox $Home/Dropbox
In fstab:
/dev/loop0 <HOME>/DropboxLoop ext4 loop,users,noauto 0 0
Start dropbox with:
mount /dev/loop0
chown $USER:$USER $HOME/DropboxLoop
dropbox
Above mainly thanks to ang-p at: https://www.reddit.com/r/linux/comments/9siamu/psa_dropbox_ext4_limitation_workaround/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment