Mounting volumes through the command line

László Monda laci at monda.hu
Tue Apr 3 14:25:03 PDT 2012


On Sun, Apr 1, 2012 at 12:02 PM, tjoen <tjoen at dds.nl> wrote:
> On Sun, 2012-04-01 at 00:12 +0200, László Monda wrote:
>> 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.
>
> Put the mount command into your ~/.xsession
> If The system doesn't allow your own ~/.xsession then create
> /etc/X11/sessions/gnome.desktop
> with only:
> [Desktop Entry]
> Exec=custom
>
>> 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.
>
> That involves running nautilus, also in ~/.xsession
> Double work

Unfortunately, I cannot mount a device which doesn't exist yet.

> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus



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


More information about the dbus mailing list