You are not logged in.
Hi, have read the related thread and don't have enough skill/info to remedy.
What's the best/easiest/least invasive way to go back to totally manual mounting of USB devices.
Also, have considered that something I installed to try may have been the cause so not sure it's any udev 'feature' ?
Info/fix needed and appreciated.
thanks
Last edited by yvonney (2010-12-12 03:44:55)
Offline
To prevent udev mounting a device/partition, I create a an entry for the device in /etc/fstab since udev ignores anything it finds in there. YMMV.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
What's the best/easiest/least invasive way to go back to totally manual mounting of USB devices.
Remove the udev rule.
Offline
Read the WIKI (read post earlier)
And, there's a whole lotta /media type rules
Here's the one I thought might be up for a guess with.
I'm going to now delete what appear logical.
I've also read there's other methods (ie. don't delete) though delete rule is fine with me.
Yes, also gonna get my fstab ability improved this month as well hopefully!
HUGELY GREAT to hear from you. THANK YOU BOTH
UPDATE: had a look with ranger and there's only a few rules! nice!
I'm gonna try just renaming the entire rule.
/etc/udev/rules.d/11-media-by-label-auto-mount.rules
KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end"
# Import FS infos
IMPORT{program}="/sbin/blkid -o udev -p %N"
# Get a label if present, otherwise specify one
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k"
# Global mount options
ACTION=="add", ENV{mount_options}="relatime"
# Filesystem-specific mount options
ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002"
# Mount the device
ACTION=="add", RUN+="/bin/mkdir -p /media/%E{dir_name}", RUN+="/bin/mount -o $env{mount_options} /dev/%k /media/%E{dir_name}"
# Clean up after removal
ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l /media/%E{dir_name}", RUN+="/bin/rmdir /media/%E{dir_name}"
# Exit
LABEL="media_by_label_auto_mount_end"
Last edited by yvonney (2010-12-12 04:47:11)
Offline
To prevent udev mounting a device/partition, I create a an entry for the device in /etc/fstab since udev ignores anything it finds in there. YMMV.
i have problem. the udev always mount device whether the device listed on fstab or not, i think it start from the last udev update? make my ntfs partition dirty forced me to use windows again.... i using rules from the wiki page.
#(x'_____')
Offline