I want to exchange files but when I connect my L5 with my computer via USB cable all I get is a ominous network problem message (“Connection failed. Activation of network connection failed”) but the storage of the L5 is not mounted automatically on my computer.
How can I do this (easily), is there a setting in PureOS, a good App for that…?
On my computer I can see this log:
~ > dmesg | tail
[61875.851036] usb-storage 3-1:1.4: USB Mass Storage device detected
[61875.851306] scsi host8: usb-storage 3-1:1.4
[61876.867447] scsi 8:0:0:0: Direct-Access Linux File-Stor Gadget 0509 PQ: 0 ANSI: 2
[61876.867812] sd 8:0:0:0: Attached scsi generic sg10 type 0
[61876.868016] sd 8:0:0:0: Power-on or device reset occurred
[61876.868294] sd 8:0:0:0: [sdj] 2048 512-byte logical blocks: (1.05 MB/1.00 MiB)
[61876.868470] sd 8:0:0:0: [sdj] Write Protect is off
[61876.868475] sd 8:0:0:0: [sdj] Mode Sense: 0f 00 00 00
[61876.868593] sd 8:0:0:0: [sdj] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[61876.889126] sd 8:0:0:0: [sdj] Attached SCSI disk
PS: Interestingly the FAQ states it should work out-of-the-box:
Can I transfer my photos, files, downloads from Android or iOS to the Librem 5?
Yes, you will be able to use the phone as a storage device, that can show up on your computer by just plugging in the USB cable and viewing the folders. This will allow you to import or export files, photos, documents, with ease. With the Librem 5 there is no proprietary software that locks your files into proprietary formats, allowing easy sharing of the content you want to share.
My current work-around is mounting a NAS share via SMB protocoll from the phone (after installing cifs-utils).
I was hopeful to see a mtp-based solution (perhaps at least for the SD memory card in the phone) since network-based solutions require a non-trivial setup for each environment which prevents ad-hoc file transfers.
No OTG adapter. (That’s a different thing.)
This method will also come in handy when you’re traveling, as you can back up your photos or share files with someone else.
Edit: Plug the -C end into the phone. Copy files to it. Disconnect, then plug the -A end into your computer to paste. Or reverse the process.
Or insert into another device with -C end, etc.
I do not need any application. If there is just a network after plug-in the USB cable in the laptop (i.e. USB tethering) you can SSH into the phone or SCP files between mobile and laptop. I do this all the time with my Linux phone BQ E4.5 (running UBports) and my FreeBSD laptops.
If SSH is working then sshfs should work too - and then you can use all the normal tools and applications on the big computer. How you get the local network could be any of: WiFi, ethernet via dock or similar, network adapter over USB.
For a large large batch, you could use the uSD card as sneakernet. That might be slower than using the network though.
So far I have only used scp as I have only needed to move a file now and then.
I suppose I should try out ‘network over USB’ at some point.
Because I only have one cable that came with the Librem 5 and that is ‘permanently’ attached to the Librem 5’s charger which is in the phone charging area, not particularly near to the computer that I would want to use to send the files to the Librem 5. So WiFi is just more convenient (can be done regardless of whether the Librem 5 is on charge or next to the computer or elsewhere in the house), and WiFi is fast ‘enough’.
There’s nothing wrong with doing it via USB cable and I didn’t intend to imply that you can’t do it. SSH over IP can be IP over whatever is available.
I think the implication of the post to which I was replying was … be mindful of how much one-off setup is involved to get it going, and whether that is appropriate for a newb to handle. Most customers will already have WiFi working on the Librem 5, so that is one less thing to think about.
Heck, if I am going to drag the Librem 5 physically over to the computer and connect a cable to the Librem 5, I can use my USB-to-ethernet dongle into the Librem 5 and transfer files over ethernet.
Well, it all depends on the circumstances - if I’m using a laptop on a train with spotty cellular coverage and want to copy something from/to the phone, then getting the USB cable out of the bag is easily the most convenient option Same at home with USB cable attached to my computer, which then charges the phone as I’m sitting next to it.
In fact, with mDNS name resolution I don’t even have to think about which interface am I going to use. When it’s connected over USB it simply uses USB automatically, and when not it goes through WiFi. I also have an option to use cellular data over a VPN, but that’s the last resort thing as that connection is metered