LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-27-2013, 02:32 PM   #1
Sanpreet Singh
Member
 
Registered: Jan 2013
Location: Malout,Punjab
Distribution: Ubuntu(Debian),
Posts: 40
Blog Entries: 1

Rep: Reputation: Disabled
Ubuntu not Showing my memory card


I have mobile Samsung core model number GT-18262. When I attach a data cable one terminal to mobile and other terminal to USB Port of Computer and operates ubuntu. I get the message on my android as

USB PC Connection

Media device(MTP): Allows you to tranfer media files in Windows or using Android File Tranfer on a MAC.

Camera(ptp)
Allows you to tranfer photos using the Camera Software abd tranfer any file to pc that Doesnot support MTP.

So I have to tick one of the above. If I Tick MTP then I got the Message on my Ubuntu Unable to mount samsung android.

When i Tick PTP then connection is established as camera. I can view photos which are inside my phone memory but my videos and photos in the memory card are not shown.

If anybody can solve my problem. It would be nice. In windows Clicking on the MTP i can see both the Card memory as well as Phone memory and all the photos. But why this donot work in my ubuntu. I have to Switch to Window to view my photos from memory card. I have Dual Boot.
 
Old 10-27-2013, 08:05 PM   #2
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,387

Rep: Reputation: 174Reputation: 174
you need to disable MTP on andoird somehow and enable "mass storage device"

if everything fails, you can still try to install mtp protocol on ubuntu, but that would be a bad solution.
 
Old 10-27-2013, 08:27 PM   #3
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
sadly, you cant
even on CyanogenMod mass storage has 'gone' , it has to do with the 'built in' storage
the likes of Nexus7, HTC One and I assume this Samsung do not have removable sdcards, they are part of the '/data' partition

I sometimes get that error, I dismiss it,, Nautilus still lists the device and I can click into it and 'mount' the storage

I don't like MTP, it just seems 'crippled'
for instance, I can't just drag a folder onto the device if the folder already exists on the device ( hope that makes sense )

maybe it is just me

these days I usually just use sftp or scp to get stuff on my phone/tablet
or run sshd on it and use sshfs on the pc/laptop to mount it

But neither is particularity good for high volume 'stuff'
 
Old 10-28-2013, 07:44 AM   #4
Sanpreet Singh
Member
 
Registered: Jan 2013
Location: Malout,Punjab
Distribution: Ubuntu(Debian),
Posts: 40

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Half part is solved

The Half problem is solved. Problem is solved by this Following.

sudo add-apt-repository ppa:langdalepl/gvfs-mtp
sudo apt-get update
sudo apt-get install gvfs

Now the problem is when I open the Folder DCIM. In all the Images there is written JPG. When I tried to open the Images it says Image viewer cannot read the images.

Any Solution????????
 
Old 10-28-2013, 01:47 PM   #5
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
I have Debian wheezy/sid
so it may be different

I have these installed

libmtp9
libmtp-common
libmtp-runtime
gvfs-backends


while I can open images with gimp, the 'standard image viewer' eog ( eye of gnome ) fails with invalid stream


Now, this is more complicated, and will not work with a stock Android rom
( this is HTC One/Nexus7 with CM10.2, self complied )
also works with htc sensation, but since that has 'mass storage' has no mtp 'limits'

to setup sshd
http://wiki.cyanogenmod.org/w/Doc:_sshd

on device ( as root )
Code:
/system/sbin/sshd -f /data/ssh/sshd_config -D
on Linux box
Code:
sshfs -o auto_unmount root@<IP address of device>:/storage/emulated/0 /path/to/local/mountpoint
since the sshd setup involves public key, there is no password

things now work like any other filesystem, I can view images without a problem

sshfs has many options to 'tune' the mount
sshfs --help
for details

performance will depend on the quality of your wifi connection, if you are moving large amounts of data mtp over usb is much faster

note, /data/local/userinit.d/99sshd
is setup so sshd is always started on boot
chmod 600 if you don't want that
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] I have added external lan card of intel pro/1000gt but thats not showing in Ubuntu yurmuki Linux - Networking 1 08-27-2013 01:02 PM
Ubuntu 10.04 will not recognize my memory card nikaawa Ubuntu 5 04-22-2011 03:51 AM
how to access memory card in ubuntu?? OscarBunson Linux - Newbie 3 12-29-2010 10:58 AM
cant read sd memory card in ubuntu JET-33 Linux - Laptop and Netbook 4 11-28-2010 12:01 AM
lspci -v showing wrong memory size for video card (NVIDIA Geforce4 Ti4200 8X) [NL]_Target Linux - Hardware 0 06-27-2004 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration