My Dropbox folder is on another partition on my harddrive and Dropbox loads on start up. But since the separate partition has't been opened yet, Dropbox complains that my Dropbox folder is missing. So Ihave to close Dropbox, make sure my separate partition is mounted, then load Dropbox again.
Is there a way to auto-mount my drive before Dropbox loads on startup?
Yeah.
You would need to mount your partition when your system starts.
For detailed guide refer Automatically Mount Partitions in Ubuntu.
If your have external NTFS partition then ntfs-config will ease your task and let you mount all ntfs partitions easily. To install ntfs-config, open terminal and type;
I edited the
/etc/fstab
file.Step 1. List your partitions by UUID:
Step 2. Edit
/etc/fstab
file.To edit the file directly in terminal, run:
Step 3. Insert an extra line in
fstab
; the line should look like:You will have to replace
01CE8D75DCC82F80
with your UUID.You will have to replace
/media/G-Drive
with the location where you want to mount.You might want to change
ntfs
if your partition is a different type.If you change
ntfs
than you might have to change options as well (rw,auto,user,fmask=0111,dmask=0000
gives anybody access to this NTFS partition).Step 4. Restart and keep fingers crossed, if "Drobox Unlink-ed message" not shown than you have been successful.
You can edit your /etc/fstab file to add whichever partition you need. You can find the wiki here.
Got this idea from @Thomas Kainrad's comment
You can delay the startup of Dropbox so the drive has time to mount. First you need to disable Dropbox's option to load at startup:
Then add your own startup entry for Dropbox but add the X-GNOME-Autostart-Delay parameter and set it to the number of seconds you'd like to delay.
Save this under ~/.config/autostart/sleepy-dropbox.desktop
Another way of doing this would be using a startup script. This way you could avoid mounting a partition globally if for some reason that's not what you wanna do. This would be a very simple way of doing it:
You will need to make sure to uncheck the "Start Dropbox on system startup" checkbox in your Dropbox prefernces and of course add the startup script as startup application.
For some reason I had to tweak @elemer82 answear to make it work with my ext4 partition. I put it here for the record. You may not need the UUID: in my case I just used
/dev/sda
in my/etc/fstab
.So I just did:
And entered the following line (I added the header here for clarity):
You can check the doc of fstap for more details about the options. The defaults options were all I needed for a data partition where I put my dropbox folder. (Note that it's an ext4 partition, only accessed by ubuntu, no windows dualboot here).
I just did what @edelans said but it crashed my GUI. I actually had to mix it with @elemer82's solution.
Using
sudo blkid
allowed be me realize that my HDD was not on/dev/sda
but on/dev/sdb1
instead.I just had to change that in @edelans's solution and everything works. Dropbox and Copy now start normally without error.
For a GUI solution: install Disks (aka Gmome Disks):
Even in KDE it brings no supplementary dependencies.
Start Disks, select the partition, then select "Additional partition options" - "Edit mount options".
On the next window uncheck User Session Defaults, check "Mount at system startup" and set the mount point.