Automatically mounting all volumes at boot

Rigved Rakshit r.phate at gmail.com
Wed Mar 7 14:57:07 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:
>
> It is not a permissions issue. I can mount the drive just fine from
> the command line or the GUI.
>

I had a similar issue on a Debian system that had a vfat (fat32) filesystem
from a previous XP install. I could mount filesystem, but could not
read/write to it. I asked on the #debian IRC channel and they told me this:

The permissions in fstab (like users etc.) allow non-sudo users to
mount/umount the drive. But reading/writing to the drive is not managed by
fstab. In short, the permissions for reading/writing cannot be confgured
from fstab.


>
> I do not want *just* this drive mounted. I want *all* drives mounted,
> at boot, before X loads and before I login.
>

I had a similar issue on a Debian system that had a vfat (fat32) filesystem
from a previous XP install. I could mount filesystem, but could not
read/write to it. I asked on the #debian IRC channel and they told me this:

The permissions in fstab (like users etc.) allow non-sudo users to
mount/umount the drive. But reading/writing to the drive is not managed by
fstab. In short, the permissions for reading/writing cannot be confgured
from fstab.


>
> I do not want *just* this drive mounted. I want *all* drives mounted,
> at boot, before X loads and before I login.
>

Just put one entry for each drive that you want to mount into fstab. Put
'pass' as '2' for all the drives (except swap and the '/' filesystem). All
drives listed in fstab are auto-mounted at boot time.

Best Regards,
Rigved Rakshit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20120307/0c3e51df/attachment.html>


More information about the ubuntu-users mailing list