Re: [Hampshire] file transfer, Android to Ubuntu

Top Page

Reply to this message
Author: Gareth Evans via Hampshire
Date:  
To: Peter Alefounder via Hampshire
CC: Gareth Evans
Subject: Re: [Hampshire] file transfer, Android to Ubuntu
Hi Peter,

A few more thoughts:

1. Are you able to open the files on the phone, and does your phone have an email app?

If so, can you copy and paste the contents into one or more emails, if there isn't an "add as attachment" type option (which may not be obvious) when viewing the file?

2. Did you try to install android-file-transfer through a PPA or just the usual apt[-get] install? If the latter, the approach in the link below may still work - the instructions on how to add the PPA are about 1/3 way down.

https://www.omgubuntu.co.uk/2017/11/android-file-transfer-app-linux

3. sshdroid appears to support SFTP which is a bit more straightforward than rsync etc. The usual default port is 22 but I don't have an android phone so can't test it myself.

4. I doubt it, but I wonder if the files are perhaps just corrupted somehow. Can you copy other files from the same directory? If so, downloading them again may be the answer.

Kind regards,
Gareth


On Mon, 6 Apr 2020, at 17:04, Peter Alefounder via Hampshire wrote:
> Gareth Evans asked:
> > What is the full text in the address/location bar in the file
> > manager when you view the phone folder containing the files you want
> > to copy?
>
> Full address is in two text boxes:
> XT1032 Download
>
> output of $ mount with file manager looking at /Download:
>
> /dev/sda3 on / type ext4 (rw,errors=remount-ro)
> proc on /proc type proc (rw,noexec,nosuid,nodev)
> sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
> none on /sys/fs/cgroup type tmpfs (rw)
> none on /sys/fs/fuse/connections type fusectl (rw)
> none on /sys/kernel/debug type debugfs (rw)
> none on /sys/kernel/security type securityfs (rw)
> none on /sys/firmware/efi/efivars type efivarfs (rw)
> udev on /dev type devtmpfs (rw,mode=0755)
> devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
> tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
> none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
> none on /run/shm type tmpfs (rw,nosuid,nodev)
> none on /run/user type tmpfs
> (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
> none on /sys/fs/pstore type pstore (rw)
> /dev/sda1 on /boot/efi type vfat (rw)
> binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
> (rw,noexec,nosuid,nodev)
> systemd on /sys/fs/cgroup/systemd type cgroup
> (rw,noexec,nosuid,nodev,none,name=systemd)
> gvfsd-fuse on /run/user/1001/gvfs type fuse.gvfsd-fuse
> (rw,nosuid,nodev,user=pra)
>
> which is just the same as when the phone is not plugged in.
>
> Here's an odd thing: the file manager can delete files from /Download.
>
> > I wonder if upgrading your OS might solve both the file copying and
> > browser problems. Is that something you can do?
>
> That could take a very long time, and anyway I don't want to risk
> something going wrong. Since the libraries closed, the laptop tethered
> to the phone is my only way to access the internet.
>
> > Have you ever been able to copy files from the phone?
>
> Apart from photos the phone has taken,
> /Notifications: copying works
> /Ringtones: copying works
> /Android: copying works
>
> > As a temporary solution, could you email them to yourself?
> I don't see any way to do that.
>
> James Courtier-Dutton said:
> > Mobile phones are sometimes quite locked down, meaning that while
> > you can transfer files from one folder, you will not be able to from
> > another.
>
> Yes, that's it. Why anyone thought having a write-only /Download would
> be a useful feature, I can't imagine. They might as well have called
> it /dev/null.
>
> Getting the files from the web site using the phone is difficult in
> itself - if I didn't know what it looked like on a full size screen,
> probably impossible. I am seeking advice from someone involved with it
> on which Ubuntu browser would work. Not Firefox, it's no good with
> with that, although Firefox has solved the problems I had with other
> web sites.
>
> > If you install android app "sshd droid" on the phone, you can then
> > ssh to the phone,
>
> Thanks, but I will pursue that and the other things you mentioned only
> if I can't get a Ubuntu browser to do the job. I am using USB
> tethering, but know nothing of sshd or how to use the connectbot. The
> browser would make things easier all round, that web site is just not
> set up for phones.
>
> Peter Alefounder.
>
>
>
>
> --
> Please post to: Hampshire@???
> Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
> LUG URL: http://www.hantslug.org.uk
> --------------------------------------------------------------


--
Please post to: Hampshire@???
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------