[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: udev und MPT Device Problem



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?

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: