Re: Mounting volumes through the command line



On Wed, Apr 4, 2012 at 6:57 PM, Cosimo Cecchi <cosimoc gnome org> wrote:
> On Fri, 2012-03-30 at 11:34 +0200, László Monda wrote:
>> Hi List,
>>
>> There's a second HDD in my laptop which is fully encrypted.  I saved
>> its password and I can easily mount it by simply clicking on its label
>> in Nautilus.  I'd like to automatically get this HDD mounted upon
>> logging into Gnome.
>>
>> I'm sure that it's possible somehow, either through D-Bus or by
>> calling Nautilus with some arguments.  D-Bus may be more beneficial
>> because it wouldn't involve any windows popping up.
>>
>> Please help or direct me to somewhere where somebody can answer my question.
>
> Hi,
>
> with GNOME 3.4, you should be able to do this from the "Disks"
> application; see [1] for more details.
> If you want to do this manually or from a script, Nautilus or D-Bus are
> not the right places to look at; you should be able to use the
> "gvfs-mount" utility shipped with GVfs for this purpose.
>
> [1] http://davidz25.blogspot.com/2012/03/simpler-faster-better.html

Cosimo,

You've made my day!

All it took is:
gvfs-mount -d /dev/sdb

Thank you so much!

-- 
László Monda <http://monda.hu>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]