Fedora 21: How to download files from my Galaxy S5

2015-04-27 Thread Jim Lewis

Hello everyone,

  This worked fine on my older Android Photon Q so I expected the same on
this new Galaxy S5. I plugged in the cable, found the mount point and,
as my guest1 user, located the filesystem and files. I saw they were rw
(read/write) and thought all was well. I tried to tar the whole thing up
and noticed errors. Here's some more detail:

laptop4 /run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C005%5D $ fl \*.jpg
File Find Utility by Lewis - 3/23/2011 Version 1
/run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C005%5D/Card/DCIM/Camera
-rw---   1 guest1   guest1753726 Jan 23 16:37:02 2015
IMG_20150123_163703_512.jpg
-rw---   1 guest1   guest1703395 Jan 23 16:37:12 2015
IMG_20150123_163712_747.jpg
-rw---   1 guest1   guest1   1194428 Jan 23 16:37:20 2015
IMG_20150123_163720_312.jpg

laptop4 /run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C005%5D $ cd
Card/DCIM/Camera

laptop4
/run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C005%5D/Card/DCIM/Camera $ file
IMG_20150123_163703_512.jpg
IMG_20150123_163703_512.jpg: writable, executable, regular file, no read
permission

laptop4
/run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C005%5D/Card/DCIM/Camera $ cp
IMG_20150123_163703_512.jpg /tmp
cp: cannot open IMG_20150123_163703_512.jpg for reading: Operation not
supported


  Not sure I have ever seen a situation like this. I can change the phone
from MTP to PTP mode but then all of the files do not show up (but I can
copy the files that do). I tried looking at this issue on the net but
all I got was noise.

  This is on:

Fedora release 21 (Twenty One)
Kernel \r on an \m (\l)

Linux laptop4.com 3.17.7-300.fc21.x86_64 #1 SMP Wed Dec 17 03:08:44 UTC
2014 x86_64 x86_64 x86_64 GNU/Linux


  Thanks in advance for any help. I should have checked this right when I
got the phone but didn't think of it.



Jim Lewis
http://jklewis.com <- My resume,  Java games, and link to my Linux book
are here. Website has no ads!


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Fedora 21: How to download files from my Galaxy S5

2015-04-27 Thread Martin Cigorraga
If simply plugging the device doesn't work you could try ADB (adb push
/ pull) or even something like AirDroid - be aware that AirDroid works
only through wifi so expect low speeds.
-Martín

On Mon, Apr 27, 2015 at 5:42 PM, Jim Lewis  wrote:
>
> Hello everyone,
>
>   This worked fine on my older Android Photon Q so I expected the same on
> this new Galaxy S5. I plugged in the cable, found the mount point and,
> as my guest1 user, located the filesystem and files. I saw they were rw
> (read/write) and thought all was well. I tried to tar the whole thing up
> and noticed errors. Here's some more detail:
>
> laptop4 /run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C005%5D $ fl \*.jpg
> File Find Utility by Lewis - 3/23/2011 Version 1
> /run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C005%5D/Card/DCIM/Camera
> -rw---   1 guest1   guest1753726 Jan 23 16:37:02 2015
> IMG_20150123_163703_512.jpg
> -rw---   1 guest1   guest1703395 Jan 23 16:37:12 2015
> IMG_20150123_163712_747.jpg
> -rw---   1 guest1   guest1   1194428 Jan 23 16:37:20 2015
> IMG_20150123_163720_312.jpg
>
> laptop4 /run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C005%5D $ cd
> Card/DCIM/Camera
>
> laptop4
> /run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C005%5D/Card/DCIM/Camera $ file
> IMG_20150123_163703_512.jpg
> IMG_20150123_163703_512.jpg: writable, executable, regular file, no read
> permission
>
> laptop4
> /run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C005%5D/Card/DCIM/Camera $ cp
> IMG_20150123_163703_512.jpg /tmp
> cp: cannot open IMG_20150123_163703_512.jpg for reading: Operation not
> supported
>
>
>   Not sure I have ever seen a situation like this. I can change the phone
> from MTP to PTP mode but then all of the files do not show up (but I can
> copy the files that do). I tried looking at this issue on the net but
> all I got was noise.
>
>   This is on:
>
> Fedora release 21 (Twenty One)
> Kernel \r on an \m (\l)
>
> Linux laptop4.com 3.17.7-300.fc21.x86_64 #1 SMP Wed Dec 17 03:08:44 UTC
> 2014 x86_64 x86_64 x86_64 GNU/Linux
>
>
>   Thanks in advance for any help. I should have checked this right when I
> got the phone but didn't think of it.
>
>
>
> Jim Lewis
> http://jklewis.com <- My resume,  Java games, and link to my Linux book
> are here. Website has no ads!
>
>
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Fedora 21: How to download files from my Galaxy S5

2015-04-29 Thread David Timms
On 28/04/15 06:42, Jim Lewis wrote:
> cp: cannot open IMG_20150123_163703_512.jpg for reading: Operation not
> supported
> 
>   Not sure I have ever seen a situation like this. I can change the phone
> from MTP to PTP mode but then all of the files do not show up (but I can
> copy the files that do). I tried looking at this issue on the net but
> all I got was noise.
Same on F20 with a Android 4.4 device, which implements only MTP (media
device), whereas my old android was 2.3 and supported USB mass storage.
See eg:


With MTP, I find that I can:
- view the whole directory structure
- access all directories
- create new folders
- add new files.
- retrieve / move image files and audio files.
But not retrieve other file types, nor file types with "invalid" characters.

A workaround is to rename the file (eg ES file manager) on the device
and append either .jpg or .mp3. Then I can copy or move to local disk.

But I seem to remember that at one stage, I could read/delete/move files
using my Fedora20 machine.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Fedora 21: How to download files from my Galaxy S5

2015-04-29 Thread Paul Cartwright
On 04/27/2015 04:42 PM, Jim Lewis wrote:
>   This worked fine on my older Android Photon Q so I expected the same on
> this new Galaxy S5. I plugged in the cable, found the mount point and,
> as my guest1 user, located the filesystem and files. I saw they were rw
> (read/write) and thought all was well. I tried to tar the whole thing up
> and noticed errors. Here's some more detail:
I just plugged in my S6 and there was a notification in my system
messages section ( swipe down from top) that once I tapped it, it gave
me 2 options. It showed up as " connected as an installer:. when I
tapped it, it gave me two options to check-
1. Media device ( MTP)
2. Camera (PTP.
once I selected them, all the android folders were visible to Fedora..


-- 
Paul Cartwright
Registered Linux User #367800 and new counter #561587

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Fedora 21: How to download files from my Galaxy S5

2015-04-29 Thread Jim Lewis

> On 04/27/2015 04:42 PM, Jim Lewis wrote:
>>   This worked fine on my older Android Photon Q so I expected the same
>> on
>> this new Galaxy S5. I plugged in the cable, found the mount point and,
>> as my guest1 user, located the filesystem and files. I saw they were rw
>> (read/write) and thought all was well. I tried to tar the whole thing up
>> and noticed errors. Here's some more detail:
> I just plugged in my S6 and there was a notification in my system
> messages section ( swipe down from top) that once I tapped it, it gave
> me 2 options. It showed up as " connected as an installer:. when I
> tapped it, it gave me two options to check-
> 1. Media device ( MTP)
> 2. Camera (PTP.
> once I selected them, all the android folders were visible to Fedora..

> Paul Cartwright
> Registered Linux User #367800 and new counter #561587
>

  Just once I would like something I haven't tried yet to work properly on
Fedora 21 without having to fight with it first :). But, as I mentioned
my older phone worked fine so maybe the problem is with this Galaxy S5.

  I am rather confused by the error message. Running "mount" shows the
filesystem is "rw", an "ls -la" shows:

-rw---   1 guest1   guest1753726 Jan 23 16:37:02 2015
IMG_20150123_163703_512.jpg

  but the file command says it's "writable, executable, regular file, no
read permission". Yes I am running as guest1 (since you can't get into
the directory as root which in itself is bizarre).

  All I want to do is copy the damn files to my hard drive. So does anyone
have any idea on what I should try next? Maybe try different mount
options? Also, is this a bug in Fedora?

  Oops, almost forgot to answer the question. My phone also has the MTP
and PTP options. It came up MTP and that let's me see every file but not
copy them. PTP works and I can copy the files it shows, it just doesn't
show them all. It might be showing just the working files on the phone,
not the pictures and videos.


Jim Lewis
http://jklewis.com <- My resume,  Java games, and link to my Linux book
are here. Website has no ads!


-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Fedora 21: How to download files from my Galaxy S5

2015-04-29 Thread Patrick O'Callaghan
On Wed, 2015-04-29 at 09:44 -1000, Jim Lewis wrote:
>   All I want to do is copy the damn files to my hard drive. So does
> anyone have any idea on what I should try next? Maybe try different
> mount options? Also, is this a bug in Fedora?

This has been discussed several times on this list for several years,
including quite recently. If you simply want to copy files you can use
rsync or airdroid apps on the phone, among others. Otherwise the
simple-mtpfs package on Fedora makes the phone "mountable" as a FUSE
filesystem. Just remember that MTP imposes several restrictions on what
you can actually do (e.g. no seeking. no overwriting files etc.) which
simple-mtpfs does its best to hide from you.

poc

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Fedora 21: How to download files from my Galaxy S5

2015-04-29 Thread Matthew Miller
On Wed, Apr 29, 2015 at 09:49:21PM +0100, Patrick O'Callaghan wrote:
> This has been discussed several times on this list for several years,
> including quite recently. If you simply want to copy files you can use
> rsync or airdroid apps on the phone, among others. Otherwise the
> simple-mtpfs package on Fedora makes the phone "mountable" as a FUSE
> filesystem. Just remember that MTP imposes several restrictions on what
> you can actually do (e.g. no seeking. no overwriting files etc.) which
> simple-mtpfs does its best to hide from you.

For example, one thing I discovered is that 'rmdir' will remove
directories _with contents_, as opposed to the normal behavior. Oops.



-- 
Matthew Miller

Fedora Project Leader
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: Fedora 21: How to download files from my Galaxy S5

2015-05-01 Thread Jim Lewis

> On Wed, Apr 29, 2015 at 09:49:21PM +0100, Patrick O'Callaghan wrote:
>> This has been discussed several times on this list for several years,
>> including quite recently. If you simply want to copy files you can use
>> rsync or airdroid apps on the phone, among others. Otherwise the
>> simple-mtpfs package on Fedora makes the phone "mountable" as a FUSE
>> filesystem. Just remember that MTP imposes several restrictions on what
>> you can actually do (e.g. no seeking. no overwriting files etc.) which
>> simple-mtpfs does its best to hide from you.
>
> For example, one thing I discovered is that 'rmdir' will remove
> directories _with contents_, as opposed to the normal behavior. Oops.

> Matthew Miller
> 
> Fedora Project Leader

Hi Matthew,

   I did not have simple-mtpfs and so installed it. Unfortunately I cannot
figure out how to make it do anything. Keeps returning back to the
command line with error code 1, and strace shows permission BS. I will
do some more research and post my findings later.

   I didn't think this would work but I was able to copy the files using
the GUI. This is somewhat cumbersome, and still doesn't make any sense,
but at least I can get movies off my phone now.

  Thanks to everyone who responded!


Jim Lewis
http://jklewis.com <- My resume,  Java games, and link to my Linux book
are here. Website has no ads!

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org