[SOLVED] Cannot read from/write to internal card Samsung Galaxy On5

General support questions
charlie13
Posts: 7
Joined: 2017/12/09 01:52:39

[SOLVED] Cannot read from/write to internal card Samsung Galaxy On5

Postby charlie13 » 2017/12/11 14:01:01

Hello all,
I am hoping someone here can help. I am trying to exchange files between my machine (CentOS 7) and the card on my phone. No luck. Read/write access seems sporadic.
I am fairly new to CentOS and have been successful in replacing Windows completely except for this one aspect.

Any help would be appreciated.

Thanks.

Charles.

scottro
Forum Moderator
Posts: 2341
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: Cannot read from/write to internal card Samsung Galaxy On5

Postby scottro » 2017/12/11 15:21:40

Can you write to anything on the phone? I use simple-mtpfs a command line tool, and it lets me write to and from my phone . What are you using to try and write?
New users should check the FAQ and Read Me First pages

charlie13
Posts: 7
Joined: 2017/12/09 01:52:39

Re: Cannot read from/write to internal card Samsung Galaxy On5

Postby charlie13 » 2017/12/12 13:42:16

scottro wrote:Can you write to anything on the phone? I use simple-mtpfs a command line tool, and it lets me write to and from my phone . What are you using to try and write?


Thanks for your help. I was trying to do it all graphically. I installed simple-mtpfs and I can now enter both the phone and card directories graphically. I do not seem to be able to write to the card on the phone, however. That is my objective. I am fairly good with the CLI, BTW.

Update: I installed simple-mtpfs. I can see both the card and the phone in Dolphin. No read or write access however. I guess I have to mount it to access the card. But how?

How would I write to the card using the CLI or graphically?

Cheers.

charlie13
Posts: 7
Joined: 2017/12/09 01:52:39

Re: Cannot read from/write to internal card Samsung Galaxy On5

Postby charlie13 » 2017/12/13 16:43:21

Does anyone know how to mount and access the internal SD card?

Thanks much.

Charlie

User avatar
TrevorH
Forum Moderator
Posts: 21506
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Cannot read from/write to internal card Samsung Galaxy On5

Postby TrevorH » 2017/12/13 16:50:37

I use jmtpfs (from nux-dextop I think) and you run that with e.g. jmtpfs /mnt and it mounts the mtp device to /mnt. If run by an ordinary user then the usb device needs r/w permission on the /dev/ file.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

charlie13
Posts: 7
Joined: 2017/12/09 01:52:39

Re: Cannot read from/write to internal card Samsung Galaxy On5

Postby charlie13 » 2017/12/13 17:10:34

This is what I get:

[root@charlie charlie]# jmtpfs /mnt
Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
ignoring libusb_claim_interface() = -6PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
LIBMTP PANIC: failed to open session on second attempt
terminate called after throwing an instance of 'MtpErrorCantOpenDevice'
what(): Can't open device
Aborted (core dumped)
[root@charlie charlie]#

If it's any hint my computer says the phone is a camera.

Thx for your help but I'm really frustrated with this.

User avatar
TrevorH
Forum Moderator
Posts: 21506
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Cannot read from/write to internal card Samsung Galaxy On5

Postby TrevorH » 2017/12/13 18:57:56

First make sure that nothing else is already using the device. Second make sure that the /dev/usb/ device file is writable by your user. I use a udev rule to do that for me when the device is plugged in:

/etc/udev/rules.d/91-sony-phone.rules
SUBSYSTEM=="usb", ENV{ID_MODEL}=="E6653", GROUP="trevor"
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

charlie13
Posts: 7
Joined: 2017/12/09 01:52:39

Re: Cannot read from/write to internal card Samsung Galaxy On5

Postby charlie13 » 2018/01/12 14:18:40

Solved/workaround:

Installed ES File Explorer on phone, set up Samba file server on computer and transfer files over WiFi.

CGC

scottro
Forum Moderator
Posts: 2341
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: [SOLVED] Cannot read from/write to internal card Samsung Galaxy On5

Postby scottro » 2018/01/12 14:30:52

Thanks for coming back and letting us know, I've marked the issue [SOLVED]
New users should check the FAQ and Read Me First pages