Automatically mounting all volumes at boot

Conny Enström uncurbed at swipnet.se
Tue Mar 6 20:35:15 UTC 2012


2012-03-06 20:58, Liam Proven skrev:
> On 6 March 2012 19:31, Rashkae<ubuntu at tigershaunt.com>  wrote:
>> On 03/06/2012 01:12 PM, Liam Proven wrote:
>>>
>>>
>>> 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?
>>
>>
>> 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.
>

Put something like this in your /etc/fstab

sudo gedit /etc/fstab

/dev/sdb5   /media/1000GB  ext3     noexec,rw,users,user,nodev  0  0
/dev/sdc1   /media/2000GB  ext3     noexec,rw,users,user,nodev  0  0

check from the commandline what drives you want to mount with the 
command: sudo fdisk -l

also make shure the folder in /media is present, you can name it what 
ever you want.

save and exit gedit and run the command: sudo mount -a

Now your drives will automount during boot and also appear on the desktop.







More information about the ubuntu-users mailing list