You are not logged in.

#1 2024-04-06 14:00:59

jones
Member
Registered: 2013-03-14
Posts: 276

Suddenly cannot copy files to my Android phone anymore (via cp)

Basic info:

$ uname -r
6.8.2-arch2-1

Phone: Pixel 7a, all updates installed

All of a sudden, I cannot use my usual bash script for copying (mp3) files to my Android phone anymore.

At first my laptop did not even recognize my phone but my phone got charged anyway (but the entry in the pulldown menu for selecting the usb connection mode did not appear).
Then I updated Arch and rebooted the laptop, same for my phone.
I enabled USB debugging mode.
Then I was able to select "file transfer" mode on my phone again.

But my code, which I have used for years, does not work anymore:

cp -f ~/moment.m3u /run/user/1000/gvfs/mtp:host=Google_Pixel_7a_XXXXYYYY/Interner\ gemeinsamer\ Speicher/Music/ &&
cp -n ~/Playlist-mp3-Dateien/*.mp3 /run/user/1000/gvfs/mtp:host=Google_Pixel_7a_XXXXYYYY/Interner\ gemeinsamer\ Speicher/Music/ ;

So the first line works, then the connection mode jumps from "file transfer" to "no file transfer" in the USB settings menu and I can see the entry in Thunar's navigation pane greys out (or did it disappear during my attempts, hm, don't recall).
The funny thing is, I was able to copy the mp3 files via good old ctrl + c -> ctrl + v on the phone (in Thunar). (???)

Would anyone happen to have a clue what I can do to make the code work again?
(Or did I make an error today somehow?)

Last edited by jones (2024-04-06 14:01:22)

Offline

#2 2024-04-06 14:37:25

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,378

Re: Suddenly cannot copy files to my Android phone anymore (via cp)

This sounds like a broken cable to me...


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

#3 2024-04-06 14:41:06

jones
Member
Registered: 2013-03-14
Posts: 276

Re: Suddenly cannot copy files to my Android phone anymore (via cp)

Really? Despite being able to copy the files via the GUI (-> in Thunar)? ... why then? smile

Offline

#4 2024-04-17 21:04:15

jones
Member
Registered: 2013-03-14
Posts: 276

Re: Suddenly cannot copy files to my Android phone anymore (via cp)

Issue no longer exists (without any special action by myself.)

Offline

Board footer

Powered by FluxBB