Automatically mounting all volumes at boot

Rigved Rakshit r.phate at
Tue Mar 6 20:16:10 UTC 2012

>> I'm happy enough to do that, but I'd rather have an answer to my
>> original, more general question:
>> Is it possible to have Ubuntu mount all visible filesystems
>> automatically on boot?

Yes, it is possible.

> Possible, yes.  But I can't tell you how off the top of my head and a quick
> google search did not find an appropriate script.

No, I know that; I searched before asking.

> And probably not what you want anyhow.

Er, yes, it is, or else I would not have asked for it.

> Assuming your typical use case for this disk is to access the contents via a
> desktop GUI, you need only modify Ubuntu so that the console user (that,
> someone who is logged in from the physical computer screen/keyboard/mouse
> rather than network) has permission to mount internal drives.

No, not really!

I can mount drives from the GUI, but that is no help with (for
example) Dropbox, which will not start because my shared Dropbox
volume is not accessible at login.

Your problem is of permissions. Auto-mount the vfat system normally using fstab (whichever options you require or defaults). Then, change the permissions on the folder as such:

sudo chmod -Rv 777 /path/to/folder

where the "path to the folder" is the path to your mounted drive (which is basically a folder on linux).

For example,

sudo chmod -Rv 777 /media/MyFat32System

Best Regards,
Rigved Rakshit

@Sent from my Nokia smart-phone

More information about the ubuntu-users mailing list