[Bug 874988] New: error if I try to auto-mount/unmount USB using udev rules
https://bugzilla.novell.com/show_bug.cgi?id=874988 https://bugzilla.novell.com/show_bug.cgi?id=874988#c0 Summary: error if I try to auto-mount/unmount USB using udev rules Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: HP OS/Version: openSUSE 12.3 Status: NEW Severity: Major Priority: P5 - None Component: Hotplug AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: david.patino@ext.mpsa.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Created an attachment (id=587547) --> (http://bugzilla.novell.com/attachment.cgi?id=587547) udev rules for automounting external usb devices User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0 Hello, I'm working in a system without graphical desktop (only command line). My goal is to prepare my systems (several computers) to auto-mount external drives, such as pendrives USB, when plugged and auto-unmount when unplugged. I assumed that any external storage device connected via USB will need to be mounted automatically in a subdirectory of /media. Now, when I connect the USB storage device, udev should automatically create a directory under /media with either the device ID, or device label (if I have assigned one), and mount the device. If I disconnect the device, the drive directory (in /media) will be automatically removed. However, udev creates new folder but the new device is useless. Thanks a lot, Reproducible: Always Steps to Reproduce: 1. create .rules file as attached 2. connect pendrive usb 3. check /etc/mtab to see if new device is showed 4. check folder ls -lah /media/ Actual Results: terminal shows while a second the new folder: vfltst01:~ # ls -lah /media/ total 12K drwxr-xr-x 3 root root 4,0K abr 24 11:36 . drwxr-xr-x 27 root root 4,0K abr 24 10:57 .. drwxrwxrwx 1 admin root 4,0K abr 21 12:51 TEST_USB but after a second (aprox) the pendrive folder changes it's permissions rights to "?" and the drive is unaccesible: vfltst01:~ # ls -lah /media/ ls: cannot access /media/TEST_USB: Transport endpoint is not connected total 8.0K drwxr-xr-x 3 root root 4.0K Apr 24 11:36 . drwxr-xr-x 27 root root 4.0K Apr 24 10:57 .. d????????? ? ? ? ? ? TEST_USB Expected Results: udev should automatically create a directory under /media with either the device ID, or device label (if I have assigned one), and mount the device. If I disconnect the device, the drive directory (in /media) will be automatically removed. In /etc/mstab as for new device the line is: /dev/sdb1 /media/TEST_USB fuseblk rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 0 0 System always use fuseblk to "mount" devices independent of device filesystem, not vfat, not ntfs-3g drivers -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c
Xiyuan Liu
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c1
--- Comment #1 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c2
--- Comment #2 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c3
--- Comment #3 from David Patiño
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c4
--- Comment #4 from David Patiño
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c5
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c6
--- Comment #6 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c7
--- Comment #7 from David Patiño
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c8
--- Comment #8 from David Patiño
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c9
David Patiño
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c10
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c11
--- Comment #11 from David Patiño
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c
David Patiño
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c12
--- Comment #12 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c13
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c14
--- Comment #14 from David Patiño
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c15
--- Comment #15 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c16
--- Comment #16 from David Patiño
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c17
--- Comment #17 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c18
--- Comment #18 from David Patiño
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c19
--- Comment #19 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c20
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c21
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c22
Miklos Szeredi
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c23
--- Comment #23 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c24
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=874988
https://bugzilla.novell.com/show_bug.cgi?id=874988#c25
--- Comment #25 from David Patiño
participants (1)
-
bugzilla_noreply@novell.com