Mounting volumes through the command line

tjoen tjoen at
Sun Apr 1 03:02:25 PDT 2012

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
with only:
[Desktop Entry]

> 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

More information about the dbus mailing list