You are not logged in.

#1 2013-04-20 16:36:19

angel6700
Member
Registered: 2009-09-06
Posts: 23

LXDE. Automount hard disk ignoring fstab

Hello,

I have an external HD and I have this line in /etc/fstab:

uuid=a5ed0a92-103c-488a-8d37-f4467fb140d3       /data/   ext3   defaults,noatime,nofail       0       2

If I connect the Hard disk when not in X. If is mounted in /data but in LXDE, where I use gvfs for automounting, it gets mounted on /run/media/angel/. So bypassing the fstab file.

How can I solve this?


Thanks in advance.

Offline

#2 2013-04-21 11:43:10

nbvcxz
Member
From: Poland
Registered: 2007-12-29
Posts: 202

Re: LXDE. Automount hard disk ignoring fstab

The thing IMHO is not LXDE related. It depends strictly on systemd (? not sure but seems one of udev rule) and gvfs (suppose you use udisks2).
There are few solutions:
1. Just remove (comment out) from fstab and you have it mounted only in LXDE in /run/media/angel/
2. add /data/   ext3   defaults,noatime,nofail,noauto - just as above - mounted only in LXDE
3. change /data/ to /run/media/angel/ ;-) and have the same dir mounted


Lenovo G50 | LXQT-git | compton | conky

Offline

#3 2013-04-21 18:50:29

angel6700
Member
Registered: 2009-09-06
Posts: 23

Re: LXDE. Automount hard disk ignoring fstab

Hello,
thanks nbvcx. I understand your suggestions. I see I'm using both udisks and udisks2.
I think the best solution for me could be the third one.

Best regards.

Offline

Board footer

Powered by FluxBB