I would try to solve this problem like this:
In a root shell, tail -f /var/log/messages
Then plug the phone in
Get the idVendor and idProduct of the phone
Ctrl-c to terminate the tail -f
Write some kind of do-nothing udev rule, using the idVendor and
idProduct of the phone, so that when the phone is plugged in, the
computer doesn't try to mount it.
Not an Ubuntu person, but HTH.
Cheers,
Wayne
-------- Original Message --------
Since this list was meant to be for tapping into combined knowledge,
here's a problem I haven't found anything about with some searching.
A box running Ubuntu 22 has a weird way of handling smartphones and
mounting them as multimedia device (they're not USB storage any more).
Graphically things work but that's not a suitable way to go about things
as it prevents the use of rsync.
How can I prevent the GUI desktop from touching the smartphone with some
kind of automagic mechanism?
Mounting the phone with mtpfs works but only with great difficulties and
requires a ninimum of 2 atttempts. Something in the system opens the
device and blocks it, the desktop shows it as mounted but the mount
command shows nothing (i.e. it's not a block device or FUSE file system).
The trick is to unmount the phone on the desktop, mount it as mtpfs, and
do this at least twice in the race against the desktop while answering
Android 13 questions about whether letting the phone be mounted is
acceptable to the phone's owner. Arrghhhh.
So question, how to make the desktop automagic shut up? Does someone
with Ubuntu internal knowledge have an idea?
Thank you,
Volker
_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users