Quantcast

Configure Ubuntu to automatically mount all volumes at boot or login

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Configure Ubuntu to automatically mount all volumes at boot or login

Liam Proven
Reposted from Ubuntu-users, where nobody was able to even give me a
pointer. Anyone here got any ideas?

This used to be the default behaviour, IIRC.

I keep a lot of non-critical stuff on a FAT32 volume shared with
Windows. I have put it into /etc/fstab manually; this worked at first,
but for some reason, it keeps mounting RO & I have to do a `sudo
umount /dev/sdb6` command to unmount it, then use Nautilus to remount
it for all users as RW.

What I'd rather like is the way Ubuntu /used/ to handle this in years
gone by: to just automatically mount all visible drives at boot time.

I've Googled but I can't find an easy way of achieving this. Is there one?

BTW, I don't mean to add them to /etc/fstab; I mean to just mount all
visible volumes, even when these change.


--
Liam Proven • Profile: http://lproven.livejournal.com/profile
Email: [hidden email] • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: [hidden email] • Skype/AIM/Yahoo/LinkedIn: liamproven
Tel: +44 20-8685-0498 • Cell: +44 7939-087884

--
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Configure Ubuntu to automatically mount all volumes at boot or login

Andy Braben-2


On 13 March 2012 15:14, Liam Proven <[hidden email]> wrote:
Reposted from Ubuntu-users, where nobody was able to even give me a
pointer. Anyone here got any ideas?

This used to be the default behaviour, IIRC.

I keep a lot of non-critical stuff on a FAT32 volume shared with
Windows. I have put it into /etc/fstab manually; this worked at first,
but for some reason, it keeps mounting RO & I have to do a `sudo
umount /dev/sdb6` command to unmount it, then use Nautilus to remount
it for all users as RW.

What I'd rather like is the way Ubuntu /used/ to handle this in years
gone by: to just automatically mount all visible drives at boot time.

I've Googled but I can't find an easy way of achieving this. Is there one?

BTW, I don't mean to add them to /etc/fstab; I mean to just mount all
visible volumes, even when these change.

Local partitions are listed in Nautilus and just clicking them mounts them.

Network volumes I have bookmarked, so that just selecting the bookmark mounts it.

Mounting all visible drives at mount time should be an easy setting, but I wouldn't necessarily want it to be the default, as not everyone would have that requirement.

--
Regards,
Andy


--
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Configure Ubuntu to automatically mount all volumes at boot or login

Simon Greenwood
In reply to this post by Liam Proven


On 13 March 2012 15:14, Liam Proven <[hidden email]> wrote:
Reposted from Ubuntu-users, where nobody was able to even give me a
pointer. Anyone here got any ideas?

This used to be the default behaviour, IIRC.

I keep a lot of non-critical stuff on a FAT32 volume shared with
Windows. I have put it into /etc/fstab manually; this worked at first,
but for some reason, it keeps mounting RO & I have to do a `sudo
umount /dev/sdb6` command to unmount it, then use Nautilus to remount
it for all users as RW.

What I'd rather like is the way Ubuntu /used/ to handle this in years
gone by: to just automatically mount all visible drives at boot time.

I've Googled but I can't find an easy way of achieving this. Is there one?

BTW, I don't mean to add them to /etc/fstab; I mean to just mount all
visible volumes, even when these change.



If automount doesn't do it and can't be made to do it, then you'd probably have to script it. I'm finding that gparted makes it a lot easier to do that sort of thing.

s/
--
Twitter: @sfgreenwood
"more of a stain than a globule"


--
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Configure Ubuntu to automatically mount all volumes at boot or login

Barry Drake
In reply to this post by Liam Proven
On 13/03/12 15:14, Liam Proven wrote:
> I keep a lot of non-critical stuff on a FAT32 volume shared with
> Windows. I have put it into /etc/fstab manually; this worked at first,
> but for some reason, it keeps mounting RO&  I have to do a `sudo
> umount /dev/sdb6` command to unmount it, then use Nautilus to remount
> it for all users as RW.

As far as I can see, any filesystem plugged in after Ubuntu has booted
will be auto-mounted.  Filesystems that are present on boot need to be
specifically referenced in fstab.  I have the line: /dev/sdb1    
/media/storage    auto    defaults    0    0
in fstab.  This mounts whatever drive is in my trayless caddy at boot.  
Usually a 1 TB storage drive, but sometimes a drive with Windows on it.  
One is formatted ext4 and the other ntfs.  It mounts either.

--
Barry Drake is a member of the the Ubuntu Advertising team.
http://ubuntuadverts.org/


--
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Configure Ubuntu to automatically mount all volumes at boot or login

Liam Proven
In reply to this post by Andy Braben-2
On 13 March 2012 15:28, Andy Braben <[hidden email]> wrote:

>
>
> On 13 March 2012 15:14, Liam Proven <[hidden email]> wrote:
>>
>> Reposted from Ubuntu-users, where nobody was able to even give me a
>> pointer. Anyone here got any ideas?
>>
>> This used to be the default behaviour, IIRC.
>>
>> I keep a lot of non-critical stuff on a FAT32 volume shared with
>> Windows. I have put it into /etc/fstab manually; this worked at first,
>> but for some reason, it keeps mounting RO & I have to do a `sudo
>> umount /dev/sdb6` command to unmount it, then use Nautilus to remount
>> it for all users as RW.
>>
>> What I'd rather like is the way Ubuntu /used/ to handle this in years
>> gone by: to just automatically mount all visible drives at boot time.
>>
>> I've Googled but I can't find an easy way of achieving this. Is there one?
>>
>> BTW, I don't mean to add them to /etc/fstab; I mean to just mount all
>> visible volumes, even when these change.
>>
> Local partitions are listed in Nautilus and just clicking them mounts them.

Yes, but that means that, for instance, Dropbox and my Bittorrent
client fail with errors at startup, because they can't find the drives
they need to access.


> Network volumes I have bookmarked, so that just selecting the bookmark
> mounts it.

Yes, me too  - about a dozen times each, since every time the server's
IP changes via DHCP, Ubuntu can't find the old one and makes a new
one. I've not bothered configuring an internal DNS server so I can't
use names - broadcast resolution doesn't work.

> Mounting all visible drives at mount time should be an easy setting, but I
> wouldn't necessarily want it to be the default, as not everyone would have
> that requirement.

I believe it *used* to be, AIR. I don't expect it still to be, I'd
just like to set it back the way it was.

--
Liam Proven • Profile: http://lproven.livejournal.com/profile
Email: [hidden email] • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: [hidden email] • Skype/AIM/Yahoo/LinkedIn: liamproven
Tel: +44 20-8685-0498 • Cell: +44 7939-087884

--
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Configure Ubuntu to automatically mount all volumes at boot or login

Liam Proven
In reply to this post by Simon Greenwood
On 13 March 2012 15:29, Simon Greenwood <[hidden email]> wrote:

>
>
> On 13 March 2012 15:14, Liam Proven <[hidden email]> wrote:
>>
>> Reposted from Ubuntu-users, where nobody was able to even give me a
>> pointer. Anyone here got any ideas?
>>
>> This used to be the default behaviour, IIRC.
>>
>> I keep a lot of non-critical stuff on a FAT32 volume shared with
>> Windows. I have put it into /etc/fstab manually; this worked at first,
>> but for some reason, it keeps mounting RO & I have to do a `sudo
>> umount /dev/sdb6` command to unmount it, then use Nautilus to remount
>> it for all users as RW.
>>
>> What I'd rather like is the way Ubuntu /used/ to handle this in years
>> gone by: to just automatically mount all visible drives at boot time.
>>
>> I've Googled but I can't find an easy way of achieving this. Is there one?
>>
>> BTW, I don't mean to add them to /etc/fstab; I mean to just mount all
>> visible volumes, even when these change.
>
> If automount doesn't do it and can't be made to do it, then you'd probably
> have to script it. I'm finding that gparted makes it a lot easier to do that
> sort of thing.

I've installed automount - nothing works automagically, certainly. If
it has to be manually configured, could you give me any pointers to a
HOWTO or anything?

--
Liam Proven • Profile: http://lproven.livejournal.com/profile
Email: [hidden email] • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: [hidden email] • Skype/AIM/Yahoo/LinkedIn: liamproven
Tel: +44 20-8685-0498 • Cell: +44 7939-087884

--
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Configure Ubuntu to automatically mount all volumes at boot or login

Simon Greenwood


On 13 March 2012 16:40, Liam Proven <[hidden email]> wrote:
On 13 March 2012 15:29, Simon Greenwood <[hidden email]> wrote:
>
>
> On 13 March 2012 15:14, Liam Proven <[hidden email]> wrote:
>>
>> Reposted from Ubuntu-users, where nobody was able to even give me a
>> pointer. Anyone here got any ideas?
>>
>> This used to be the default behaviour, IIRC.
>>
>> I keep a lot of non-critical stuff on a FAT32 volume shared with
>> Windows. I have put it into /etc/fstab manually; this worked at first,
>> but for some reason, it keeps mounting RO & I have to do a `sudo
>> umount /dev/sdb6` command to unmount it, then use Nautilus to remount
>> it for all users as RW.
>>
>> What I'd rather like is the way Ubuntu /used/ to handle this in years
>> gone by: to just automatically mount all visible drives at boot time.
>>
>> I've Googled but I can't find an easy way of achieving this. Is there one?
>>
>> BTW, I don't mean to add them to /etc/fstab; I mean to just mount all
>> visible volumes, even when these change.
>
> If automount doesn't do it and can't be made to do it, then you'd probably
> have to script it. I'm finding that gparted makes it a lot easier to do that
> sort of thing.

I've installed automount - nothing works automagically, certainly. If
it has to be manually configured, could you give me any pointers to a
HOWTO or anything?



The missing link is setting up udev correctly.

A bit further down it also mentions pysdm, which apparently helps with creating the udev rules.

s/
--
Twitter: @sfgreenwood
"more of a stain than a globule"


--
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/
Loading...