did you google for "udev usb automount disable"? try to search for "write
udev rules" instead.  find out how to automount usb drives but instead of
doing so:  comment out the rules that match in /etc/udev/rules.d/(udev rule
file).

"when i plugged usb drive, my box mounts it automatically in
/media/<LABEL> directory. LABEL should should not exist, else, it will
be mounted in /media/<LABEL>1 (appending 1,2, etc if that directory
again exists)."

as i understand it, the mountpoint is autogenerated (in my distro, at
least)in the udev rules as well. here it is listed as /mnt/usb,
/mnt/usb1.../mnt/usbn. note, it starts without a number. so, if i plug in a
partitioned external HD, /dev/sda1 is mounted to /mnt/usb, /dev/sda2 to
/mnt/usb1....etc. does this answer your ques?

sorry if its too general but im sure youll find the correct line to comment
out.

loiscastillo

On 6/28/07, Edel SM <[EMAIL PROTECTED]> wrote:

thanks sa replies.

btw, i didnt mentioned that i dont have X on this machine. i tried
searching google for hotplug/udev to disable usbdrive automounting but
no luck so far. another reason i want it manually mounted for other
options passed to mount command (acl,data=journal,sync). i also have
set that mount options using tune2fs -o acl,journal_data /dev/sdaX but
not no effect. maybe i should play with ^ and + to the options passed.

On 6/27/07, Gideon Guillen <[EMAIL PROTECTED]> wrote:
> Anyway, to the original poster, by automounting, do you mean Gnome (or
> KDE) auto mounts the usb storage device? CentOS, without
> <inser_desktop_environment_here> won't auto mount usb storage devices.

when i plugged usb drive, my box mounts it automatically in
/media/<LABEL> directory. LABEL should should not exist, else, it will
be mounted in /media/<LABEL>1 (appending 1,2, etc if that directory
again exists).

atm, i do mount -oremount,<my options> /dev/sdaX. but of course i
prefer disabling the automounting of usbdrives.

thanks.

--edel
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to