How to automount a USB device when startx is used

Forum rules
Before you post please read this

How to automount a USB device when startx is used

Postby lotad on Wed May 15, 2013 12:23 pm

Hi,

I'm using Linux Mint 14 Nadia Cinnamon.

With the graphical login via mdm, a USB storage device plugged in is automounted as the user logged in (under /media/$USER/whatever-name-of-device) and hence can be umounted *without* root previlege. When I switch to console mode login (mdm disabled via bum) and use startx to start the X server, it's *not* automounted anymore. No other change is made. My .xinitrc is simply

#!/bin/sh
# ~/.xinitrc - Start cinnamon using startx
exec gnome-session-cinnamon "$@"

What should I do to get back the same behaviour? I would also like to understand what's under the hood that mdm (or whatever is run) is doing ...

Thanks in advance for your help. :-)
lotad
Level 1
Level 1
 
Posts: 1
Joined: Wed May 15, 2013 11:59 am

Linux Mint is funded by ads and donations.
 

Re: How to automount a USB device when startx is used

Postby Kyodev on Wed Jun 19, 2013 2:49 pm

Hi
with LMDE Mate, I have the same behavior if I use startx
if I run the service everything is ok:
Code: Select all
sudo service mdm start

for cinnamon, I dont know exactly, but perhaps it should be used the service's start
( for the boot, I use sudo update-rc.d mdm disable / enable )
Asus EeePc 1201NL
Olivia Mate, SolykK
Kyodev
Level 1
Level 1
 
Posts: 9
Joined: Sat Jun 15, 2013 2:42 am
Location: Lyon, France


Return to Mounting Partitions

Who is online

Users browsing this forum: No registered users and 3 guests