udev und MPT Device Problem

14/07/2016 - 23:10 von Michelle Konzack | Report spam
N'Abend Leute,

ich habe versucht, auf das Samsung Galaxy S6 per MPT zuzugreifen, aber
irgendwie geht das schief. In mc wird das Verzeichnis rot mit einem
Fragezeichen davor dargestellt was ja bedeutet ds es eine Leiche ist.

Ich habe

-[ /etc/udev/rules.d/97-samsung-galaxy-s6 ]--
ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="6860", SYMLINK+="samsung_galaxy_s6", Mode="0660", ENV{ID_MTP_DEVICE}="1"
ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="6860", RUN+="/bin/mkdir /media/Samsung_Galaxy_S6"
ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="6860", RUN+="/usr/bin/jmtpfs /media/Samsung_Galaxy_S6", OPTIONS="last_rule"
ACTION=="remove", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="6860", RUN+="/usr/bin/fusermount -u /media/Samsung_Galaxy_S6"
ACTION=="remove", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="6860", RUN+="/bin/rmdir /media/Samsung_Galaxy_S6", OPTIONS="last_rule"


-[ /var/log/syslog ]-
Jul 14 22:36:20 cq58 kernel: [47279.964406] usb 2-1: new high-speed USB device number 74 using ehci_hcd
Jul 14 22:36:20 cq58 kernel: [47280.099160] usb 2-1: New USB device found, idVendore8, idProducth60
Jul 14 22:36:20 cq58 kernel: [47280.099180] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 14 22:36:20 cq58 kernel: [47280.099190] usb 2-1: Product: SAMSUNG_Android
Jul 14 22:36:20 cq58 kernel: [47280.099198] usb 2-1: Manufacturer: SAMSUNG
Jul 14 22:36:20 cq58 kernel: [47280.099206] usb 2-1: SerialNumber: 01157df1ca88a508
Jul 14 22:36:20 cq58 kernel: [47280.102563] cdc_acm 2-1:1.1: This device cannot do calls on its own. It is not a modem.
Jul 14 22:36:20 cq58 kernel: [47280.102866] cdc_acm 2-1:1.1: ttyACM0: USB ACM device
Jul 14 22:36:20 cq58 kernel: [47280.628285] usb 2-1: reset high-speed USB device number 74 using ehci_hcd
Jul 14 22:36:20 cq58 kernel: [47280.762053] cdc_acm 2-1:1.1: This device cannot do calls on its own. It is not a modem.
Jul 14 22:36:20 cq58 kernel: [47280.762327] cdc_acm 2-1:1.1: ttyACM0: USB ACM device
Jul 14 22:36:20 cq58 kernel: [47280.764340] usb 2-1: usbfs: process 28178 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 kernel: [47280.880415] usb 2-1: reset high-speed USB device number 74 using ehci_hcd
Jul 14 22:36:21 cq58 kernel: [47281.014516] cdc_acm 2-1:1.1: This device cannot do calls on its own. It is not a modem.
Jul 14 22:36:21 cq58 kernel: [47281.014793] cdc_acm 2-1:1.1: ttyACM0: USB ACM device
Jul 14 22:36:21 cq58 kernel: [47281.016434] usb 2-1: usbfs: process 28178 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 kernel: [47281.019843] usb 2-1: usbfs: process 28175 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 kernel: [47281.019948] usb 2-1: usbfs: process 28175 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 kernel: [47281.019971] usb 2-1: usbfs: process 28175 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 kernel: [47281.019990] usb 2-1: usbfs: process 28175 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 kernel: [47281.020097] usb 2-1: usbfs: process 28175 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 kernel: [47281.022829] usb 2-1: usbfs: process 28178 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 kernel: [47281.022944] usb 2-1: usbfs: process 28178 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 kernel: [47281.022967] usb 2-1: usbfs: process 28178 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 kernel: [47281.022987] usb 2-1: usbfs: process 28178 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 kernel: [47281.023006] usb 2-1: usbfs: process 28178 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 kernel: [47281.140232] usb 2-1: reset high-speed USB device number 74 using ehci_hcd
Jul 14 22:36:21 cq58 kernel: [47281.274995] cdc_acm 2-1:1.1: This device cannot do calls on its own. It is not a modem.
Jul 14 22:36:21 cq58 kernel: [47281.275304] cdc_acm 2-1:1.1: ttyACM0: USB ACM device
Jul 14 22:36:21 cq58 kernel: [47281.392252] usb 2-1: reset high-speed USB device number 74 using ehci_hcd
Jul 14 22:36:21 cq58 kernel: [47281.526825] cdc_acm 2-1:1.1: This device cannot do calls on its own. It is not a modem.
Jul 14 22:36:21 cq58 kernel: [47281.527096] cdc_acm 2-1:1.1: ttyACM0: USB ACM device
Jul 14 22:36:21 cq58 udevd[28167]: '/usr/bin/jmtpfs /media/Samsung_Galaxy_S6' [28175] terminated by signal 6 (Aborted)
Jul 14 22:36:21 cq58 udevd[28168]: '/usr/bin/jmtpfs /media/Samsung_Galaxy_S6' [28178] terminated by signal 6 (Aborted)
Jul 14 22:36:21 cq58 kernel: [47281.532965] usb 2-1: usbfs: process 28179 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 kernel: [47281.533071] usb 2-1: usbfs: process 28179 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 kernel: [47281.533095] usb 2-1: usbfs: process 28179 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 kernel: [47281.533115] usb 2-1: usbfs: process 28179 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 kernel: [47281.533135] usb 2-1: usbfs: process 28179 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 kernel: [47281.535280] usb 2-1: usbfs: process 28176 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 kernel: [47281.535371] usb 2-1: usbfs: process 28176 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 kernel: [47281.535385] usb 2-1: usbfs: process 28176 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 kernel: [47281.535396] usb 2-1: usbfs: process 28176 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 kernel: [47281.535408] usb 2-1: usbfs: process 28176 (jmtpfs) did not claim interface 0 before use
Jul 14 22:36:21 cq58 udevd[27464]: '/usr/bin/jmtpfs /media/Samsung_Galaxy_S6' [28179] terminated by signal 6 (Aborted)
Jul 14 22:36:21 cq58 udevd[26790]: '/usr/bin/jmtpfs /media/Samsung_Galaxy_S6' [28176] terminated by signal 6 (Aborted)
Jul 14 22:36:22 cq58 udevd[28183]: failed to execute '/usr/bin/fusermount' '/usr/bin/fusermount -u /media/Samsung_Galaxy_S6': No such file or directory
Jul 14 22:37:22 cq58 kernel: [47342.084306] usb 2-1: reset high-speed USB device number 74 using ehci_hcd
Jul 14 22:37:22 cq58 kernel: [47342.218307] cdc_acm 2-1:1.1: This device cannot do calls on its own. It is not a modem.
Jul 14 22:37:22 cq58 kernel: [47342.218616] cdc_acm 2-1:1.1: ttyACM0: USB ACM device
Jul 14 22:37:23 cq58 udevd[26790]: timeout: killing '/usr/bin/jmtpfs /media/Samsung_Galaxy_S6' [28187]
Jul 14 22:37:23 cq58 udevd[26790]: '/usr/bin/jmtpfs /media/Samsung_Galaxy_S6' [28187] terminated by signal 9 (Killed)
Jul 14 22:37:23 cq58 udevd[28250]: failed to execute '/usr/bin/fusermount' '/usr/bin/fusermount -u /media/Samsung_Galaxy_S6': No such file or directory
Jul 14 22:37:23 cq58 udevd[28255]: failed to execute '/usr/bin/fusermount' '/usr/bin/fusermount -u /media/Samsung_Galaxy_S6': No such file or directory
Jul 14 22:38:23 cq58 kernel: [47403.364435] usb 2-1: reset high-speed USB device number 74 using ehci_hcd
Jul 14 22:38:23 cq58 kernel: [47403.498840] cdc_acm 2-1:1.1: This device cannot do calls on its own. It is not a modem.
Jul 14 22:38:23 cq58 kernel: [47403.499147] cdc_acm 2-1:1.1: ttyACM0: USB ACM device
Jul 14 22:38:24 cq58 udevd[26790]: timeout: killing '/usr/bin/jmtpfs /media/Samsung_Galaxy_S6' [28259]
Jul 14 22:38:24 cq58 udevd[26790]: '/usr/bin/jmtpfs /media/Samsung_Galaxy_S6' [28259] terminated by signal 9 (Killed)
Jul 14 22:38:24 cq58 udevd[28335]: failed to execute '/usr/bin/fusermount' '/usr/bin/fusermount -u /media/Samsung_Galaxy_S6': No such file or directory
Jul 14 22:38:25 cq58 udevd[28343]: failed to execute '/usr/bin/fusermount' '/usr/bin/fusermount -u /media/Samsung_Galaxy_S6': No such file or directory
Jul 14 22:39:01 cq58 /USR/SBIN/CRON[28387]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Jul 14 22:39:25 cq58 kernel: [47465.360304] usb 2-1: reset high-speed USB device number 74 using ehci_hcd
Jul 14 22:39:25 cq58 kernel: [47465.495002] cdc_acm 2-1:1.1: This device cannot do calls on its own. It is not a modem.
Jul 14 22:39:25 cq58 kernel: [47465.495308] cdc_acm 2-1:1.1: ttyACM0: USB ACM device
Jul 14 22:39:26 cq58 udevd[26790]: timeout: killing '/usr/bin/jmtpfs /media/Samsung_Galaxy_S6' [28347]
Jul 14 22:39:26 cq58 udevd[26790]: '/usr/bin/jmtpfs /media/Samsung_Galaxy_S6' [28347] terminated by signal 9 (Killed)
Jul 14 22:39:26 cq58 udevd[28424]: failed to execute '/usr/bin/fusermount' '/usr/bin/fusermount -u /media/Samsung_Galaxy_S6': No such file or directory
Jul 14 22:39:26 cq58 udevd[28429]: failed to execute '/usr/bin/fusermount' '/usr/bin/fusermount -u /media/Samsung_Galaxy_S6': No such file or directory
Jul 14 22:40:01 cq58 /USR/SBIN/CRON[28471]: (root) CMD (test -x /home/root/bin/linuxlogo.sh && /home/root/bin/linuxlogo.sh && sleep 5 && init Q #>/dev/null)
Jul 14 22:40:01 cq58 /USR/SBIN/CRON[28472]: (debarchiver) CMD (test -x /usr/bin/debarchiver && /usr/bin/debarchiver -so | logger -t debarchiver -p daemon.info)
Jul 14 22:40:26 cq58 kernel: [47526.808247] usb 2-1: reset high-speed USB device number 74 using ehci_hcd
Jul 14 22:40:27 cq58 kernel: [47526.942391] cdc_acm 2-1:1.1: This device cannot do calls on its own. It is not a modem.
Jul 14 22:40:27 cq58 kernel: [47526.942663] cdc_acm 2-1:1.1: ttyACM0: USB ACM device
Jul 14 22:40:27 cq58 udevd[26790]: timeout: killing '/usr/bin/jmtpfs /media/Samsung_Galaxy_S6' [28433]
Jul 14 22:40:27 cq58 udevd[26790]: '/usr/bin/jmtpfs /media/Samsung_Galaxy_S6' [28433] terminated by signal 9 (Killed)
Jul 14 22:40:27 cq58 udevd[28510]: failed to execute '/usr/bin/fusermount' '/usr/bin/fusermount -u /media/Samsung_Galaxy_S6': No such file or directory
Jul 14 22:43:20 cq58 kernel: [47700.136609] usb 2-1: USB disconnect, device number 74
Jul 14 22:43:20 cq58 udevd[28745]: failed to execute '/usr/bin/fusermount' '/usr/bin/fusermount -u /media/Samsung_Galaxy_S6': No such file or directory


Hat jemand Erfahrung damit und weis was hier schief laeuft?

Danke

Michelle Konzack ITSystems
GNU/Linux Developer 0033-6-61925193
 

Lesen sie die antworten

#1 Michael Biebl
15/07/2016 - 00:10 | Warnen spam
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
From: Michael Biebl
To:
Message-ID:
Subject: Re: udev und MPT Device Problem
References:
In-Reply-To:


Am 14.07.2016 um 22:47 schrieb Michelle Konzack:
N'Abend Leute,

ich habe versucht, auf das Samsung Galaxy S6 per MPT zuzugreifen, aber
irgendwie geht das schief. In mc wird das Verzeichnis rot mit einem
Fragezeichen davor dargestellt was ja bedeutet ds es eine Leiche ist.

Ich habe

-[ /etc/udev/rules.d/97-samsung-galaxy-s6 ]--
ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="6860", SYMLINK+="samsung_galaxy_s6", Mode="0660", ENV{ID_MTP_DEVICE}="1"
ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="6860", RUN+="/bin/mkdir /media/Samsung_Galaxy_S6"
ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="6860", RUN+="/usr/bin/jmtpfs /media/Samsung_Galaxy_S6", OPTIONS="last_rule"
ACTION=="remove", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="6860", RUN+="/usr/bin/fusermount -u /media/Samsung_Galaxy_S6"
ACTION=="remove", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="6860", RUN+="/bin/rmdir /media/Samsung_Galaxy_S6", OPTIONS="last_rule"




Das ist keine gute Idee. Siehe auch dazu die udev man page:

RUN{type}
Add a program to the list of programs to be executed after processing all the rules for a specific
event, depending on "type":

"program"
Execute an external program specified as the assigned value. If no absolute path is given, the
program is expected to live in /lib/udev; otherwise, the absolute path must be specified.

This is the default if no type is specified.

"builtin"
As program, but use one of the built-in programs rather than an external one.

The program name and following arguments are separated by spaces. Single quotes can be used to specify
arguments with spaces.

This can only be used for very short-running foreground tasks. Running an event process for a long
period of time may block all further events for this or a dependent device.

Starting daemons or other long-running processes is not appropriate for udev; the forked processes,
detached or not, will be unconditionally killed after the event handling has finished.




Du startest via fuse einen Prozess/Daemon, und der wird dann von udev
gekilled, wie dokumentiert (der timeout is 180s wenn ich mich recht
erinnere).




Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?





Ähnliche fragen