Usb mounting in linux? [solved] - Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot

Hey guys,
I'm having a bit of an issue with my s4, in my efforts to fix it, I am transferring files to my laptop, I'm using LinuxMint Mate Edition but I get a "can not lock device" error. I can use my windows partition, and it works fine so no problems there, but was seeing if anyone knew how to mount as a hard drive? I've enabled usb debugging and no go.
Mtp shows 2 ipods/media players but no files inside.
Ptp shows a camera, but files are all "corrupted". (they are not, that's just what it's telling me.)
I can put them on windows then access via linux, but I'd like to be able to just boot linux instead of running around.
(my windows is jacked, after x minutes it starts giving up, hard drive is partitioned so linux isn't affected by bad sectors, runs perfectly).
So yeah, any assistance would be most appreciated
Thanks
***edit:
Figured it out.
1. Apparently the ports was iffy, cable had to be just right for data transfer. Switched ports.
2. Look up go-mptfs! Build it from source and you should be good to go for those older linux distros

Related

Connect to PC via USB

Yesterday I was able to connect my Tab to my Win XP PC using the USB cable. I was able to transfer files without difficulty. But, some how I must have changed a setting on the Tab and the Tab is no longer recognized by any of my PC's. I think it is a Sync setting that was changed.
Now, when I connect using the USB cable, the PC says " Found New Hardware MTP"
What settiing do I need to change to get the PC to recognize the Tab?
Check under application > development > usb debugging.
Thanks, I found a USB driver on the Acer site. That seems to have solved the problem. But, that driver was not needed yesteray, and I don't know what "MTP" means?
jostarr said:
Thanks, I found a USB driver on the Acer site. That seems to have solved the problem. But, that driver was not needed yesteray, and I don't know what "MTP" means?
Click to expand...
Click to collapse
Even my Windows 7 boxes do not recognize the a500 without installing the USB driver from the Acer site. Guess you somehow got lucky
Mine always saw the internal 16gb on my Win7 machine. Before the latest updates, I was able to connect with my Win7 PC with no problem and even go to STORAGES and see my 32gb card. It no longer works now. All I see now is SD which is empty.
Which means I cannot copy anything directly to the Micro SD (external_sd). It worked before the last couple of updates. I'm currently running 4.010.10. Now I have to copy it to the 16 internal from the PC and then use the tablet to copy it to the external_sd.
Acer giveth and taketh away.... bummer.
Edit: And yes ... my debugging is on. Always has been. Stock kernel too.
Anyone figure this out yet?
I can't connect on my Win7-64 PC at all.
My 32 bit laptop will connect, but not to SD card, only internal SD.
Try turning development off when using usb go pc which no need for driver, if development is on then you need driver installed.
Sent from my SPH-D700 using XDA App
i can't get my tab to connect to my mac , ive tried both usb ports, ive tried ticking usb-debugging on and off with no luck. Anyone know whats wrong?
If you are having usb issues go to acers web site and go to the drivers and download section for the iconia a500. make sure you look under the honeycomb 3.0 downloads and not the 3.1. as the drivers are not listed under 3.1. download the drivers to your pc (not your tablet)and install. it is an 89 megabyte file so I am sure it has the drivers for everyone in it.
Alos if you are ojn honeycomb 3.0 make sure you get the wi-fi unpate as well while you are there it fixes lots of wi-fi problems.
Remember to thanks if I have helped you.
Thanks for the quick reply in the drivers package There is none for mac and on my fascinate it connects without problem and i never instaled any drivers
Chuban7, Hi well I am not a mac person but I did look around the net a bit and from what I see there are not usb drivers persay for android for mac. but what i have found is there are several companies who mac sync software that connects android to mac. One site to check out is http://www.salling.com/MediaSync/mac/ they have free versions of thier software to use. Give it a try. but there are many other venders of mac to android sync software. seems only way from what I read cant find usb drivers anywhere for ya for any android device.
You can also look through the android market for a free program called"auto mount your sd card" supose to work with mac but I dont know as I dont have a mac
MY personal choice is a program also free on market called "software data cable" again suppose to work with macs and pc's it is completely wireless so no usb cable needed to transfere files so in theory then no usb drivers needed either.
You can also use a program called dropbox allso free it works great just drop files into the dropbox folder and then once they upload go open dropbox on your android and bingo there ya go thier is your files. works in reverse too for android to computer.
Only thing I can figure is that apple hates android and between them and microsoft are tring to run android into the ground so it would stand to reason if you hated a compeating vendor why would you make it easy for them to run thier devices on your software. There is a reason apples Ipod/pad stuff works and others dont apple dont want you to buy android lol.
Just my little conspericy theory stuff good luck hope any of this helps you.
I have the same issue with Linux so it's not a Mac issue. I can plug my Android phone in and it mounts and show up as a USB device that I can then take a file manager and copy/paste/delete files. I use this all the time to transfer files to my phones sd card. Neither the A100 or the A500 will mount as a drive on my Linux machine. I like them but that is pretty much a deal breaker to me.
gramps50 said:
I have the same issue with Linux so it's not a Mac issue. I can plug my Android phone in and it mounts and show up as a USB device that I can then take a file manager and copy/paste/delete files. I use this all the time to transfer files to my phones sd card. Neither the A100 or the A500 will mount as a drive on my Linux machine. I like them but that is pretty much a deal breaker to me.
Click to expand...
Click to collapse
Somehow I feel very doubtful that your Linux OS cannot be set up to mount the a500 as a USB storage device. My Linux skills are rather rusty and outdated, however - so I could be wrong. Can you emulate a stripped down version of windows from your Linux system to get around this?
I can vouch for using software data cable (free app from AM).
Works perfectly with my iMac and should do with PC, since it essentially opens an FTP port on the Iconia (port 8888 by default) that can be accessed by any FTP client on the computer (I use Cyberduck on Mac, FireFTP plugin for Firefox works on all OS's).
If you are rooted, check root access in the app settings to get into the root, and find /mnt/external_SD for the add-on card. It is probably smartest not to leave the root access on all of the time unless you really need it as there is abundant opportunity to create havoc accidentally
Kevin
Sent from my A500 using xda premium
entropy.of.avarice said:
Somehow I feel very doubtful that your Linux OS cannot be set up to mount the a500 as a USB storage device. My Linux skills are rather rusty and outdated, however - so I could be wrong. Can you emulate a stripped down version of windows from your Linux system to get around this?
Click to expand...
Click to collapse
I didn't say it couldn't be done, I just think that it's strange and wrong to make an Android device dependent on having Windows. Yes I suppose I could install Windows in a Vm but I won't.
Using Google (pun intended) I found a fairly simple solution. It's not plug-n-play but is very doable even by an non techie.
There are also some ways of access the Tab file system using a browser and Wifi
kevindt said:
I can vouch for using software data cable (free app from AM).
Works perfectly with my iMac and should do with PC, since it essentially opens an FTP port on the Iconia (port 8888 by default) that can be accessed by any FTP client on the computer (I use Cyberduck on Mac, FireFTP plugin for Firefox works on all OS's).
Sent from my A500 using xda premium
Click to expand...
Click to collapse
Nice app thanks, didn't show up when searching for FTP servers. ;(
The only minor issue I see is that at 1st glance it appears that you don't have access to the external_sd card unless Rooted.
Did work better than any of the other FTP servers I have tried.

MTP on Ubuntu/Mint/Debian

With many devices not supporting mass storage anymore Android seemed to have moved from mass storage to PTP and MTP
With Windows supporting MTP by default and Mac OSX with an application there isn't any native support in Linux.
There are a few work arounds like gMTP but that didn't really work for me.
There also is another work around that requires you to edit some files.
To make it easier for others I wrote a little bash script, that does most for you.
Step 1 : sudo apt-get install mtp-tools mtpfs
Step 2 : Plugin your device
Step 3 : Open up a terminal
Step 4 : Type in : “mtp-detect”
Step 5 : Write the PID and VID down, you will need this later
Step 6 : disconnect your device
Step 7 : Download the script and execute it by sudo ./mtp (don't forget to make it an executable first)
Step 8: Follow the instructions on screen and after it's done reboot and plugin your device
Step 9: Use the command "android-connect" to mount your device and "android-disconnect" to dismount
It's not much, but I hope it helped someone.
Please let me know if it worked for your device/distro.
Original post
Tested and working on the P3110 and P5110.
EDIT 1:
(First) time mount can take up to 1-2 minutes, have had where it would mount in a few seconds, others half a minute. Be patient.
mussieonlinux said:
With many devices not supporting mass storage anymore Android seemed to have moved from mass storage to PTP and MTP
Tested and working on the P3110 and P5110.
Click to expand...
Click to collapse
Thanks for this. I think I have tried all this before and it has not worked, but will try again. A few things come to mind though. First, I think you have to turn USB debugging off, right? There is another thread where several of us are able to see the tablet, but not really get any files. Also there is a way to get the tablet to share PTP or MTP and that changes things too (PTP lets me see the top level but no subdirectories).
Will report back if this works or not.
I think USB debugging has to be on, at least for my phone. Mine is always on on all my devices.
Yeah you can see it in the file manager (1 for each SD card) with MTP but you can't access the files.
I am not sure about the PTP.. However for the MTP I just made a new folder in on my other SD card named extSD since MTP shows all directories of both sdcards in one directory.
mussieonlinux said:
I think USB debugging has to be on, at least for my phone. Mine is always on on all my devices.
Yeah you can see it in the file manager (1 for each SD card) with MTP but you can't access the files.
I am not sure about the PTP.. However for the MTP I just made a new folder in on my other SD card named extSD since MTP shows all directories of both sdcards in one directory.
Click to expand...
Click to collapse
Nope doesn't work with or without USB debug. I think the issue may be due to some problem with mtp-tools on 64 bit Linux. Are you running 32?
The mtpfs mounts but any attempt to list the mounted directory just hangs.
I am using 64bit, did you do the reboot and android-connect? If you are using nautilus you wont see your device under "Devices". You will see it above your filesystem.
Can you tell me what isn't working?
mussieonlinux said:
I am using 64bit, did you do the reboot and android-connect? If you are using nautilus you wont see your device under "Devices". You will see it above your filesystem.
Can you tell me what isn't working?
Click to expand...
Click to collapse
Well I'm using Kubuntu so no Nautilus. And I'm just looking at the mount point. My udev rules already have an entry for the mtd device. I also grabbed the latest libmtd and built it from source.
The fuse mount seems to work but any ls on the mount point just hangs forever.
Very strange.
At times like this I miss ubuntu
On my Arch (+XFCE), I use gMTP (uses mtpfs ofcourse). Most of the times it works, and then there are times when it is a pain in the a##. Gets stuck, does not respond, fails to copy what not.
I find the only reliable way is using adb.
Gosh! I push and pull everytime! :silly:
yeah, after a couple of days I found it not very stable at all, so I too switched over to ADB, it's not the fastest method. But we gotta get around, don't we?
I am also waiting for a permanent fix... Just switched back to Ubuntu from Windows 8 Preview, and I love it!!!
The only issue I have at the moment is the fact that I cannot connect directly to the PC from the Tab, although transfer speeds are better by removing the memory card and inserting it into the computer directly. Would be nice to use Rhythmbox to manage my MP3s.
I've tried a few solutions and nothing seems to work fully. I'll give the ideas mentioned above a try.
I have found my peace finally with qtADB.
By far the fastest, and most efficient app for this job.
qtadb[dot]wordpress[dot]com
Worked on my Galaxy S2 (i9100G) with cm10 nightly TY!
Worked only once! i get this...
Hello, this worked greatly on my ubuntu machine. Would this work on an ArchLinux headless PC? I'm willing to try it out if this doesn't mess anything up.
I can confirm this does not work on virtual box not sure on vmware as i dont have it so idk.
[email protected]:~$ android-connect
fuse: bad mount point `/media/GT-P3100': Transport endpoint is not connected
[email protected]:~$
As you can see above, i tried this for P3100. Can someone tell me what am i doing wrong here? I really want to handle my device from Ubuntu 12.04.
hi there,
in newer kernel - at this thime for example debain testing jessie - is kio-mtp implemented. this compinent load your nexus 4 mtp device autmotically like in windows. can access device via filemenager without doing steps in console before. in long time support distribution - example debian stable wheezy - this is not implemented yet. you can compile own your own to get this working
kio-mtp is for kde
gnome-vfs with mtp is for gnome
Works on Kali Linux with 3.14 kernel - HTC One with 4.4.3. Thanks a lot

can't copy photos to linux box

In developer options, I enabled debugging over USB and set USB format to data transfer.
When I connect my linux box to the phone over USB, linux throws a dialog box telling me to select a function for automount. I choose "open with file manager". The two-pane file manager pops up and I can drill down into Store --> DCIM --> camera and see my pictures. When I try to copy photos to the linux box, it tells me it's copying but no transfer takes place. After 30 seconds or so, linux throws an error: Unkown error -- timeout reading from or writing to port. Permissions problem maybe?
Any thoughts on what I'm doing wrong? I don't have access to windows .....
You shouldn't have to enable USB debugging. I just select File Transfer and it works (Linux Mint 18.3 MATE).
Telyx said:
You shouldn't have to enable USB debugging. I just select File Transfer and it works (Linux Mint 18.3 MATE).
Click to expand...
Click to collapse
I'm running MX V19.
Removed the USB debugging on the T6 and rebooted (just to be sure) but no joy. Any other troubleshooting commands you familiar with?
Unfortunately, no--I've never had trouble transferring files from phone to computer or vice versa.
Are you sure the cable / port works? Do ADB / Fastboot commands work at all? I primarily use Linux, and all my machines just see my all of my devices. I also just use File Transfer. Anytime it's been an issue, it's been a cable or hub issue. Everything just works.
OhioYJ said:
Are you sure the cable / port works? Do ADB / Fastboot commands work at all? I primarily use Linux, and all my machines just see my all of my devices. I also just use File Transfer. Anytime it's been an issue, it's been a cable or hub issue. Everything just works.
Click to expand...
Click to collapse
The cable is ok, can use adb commands without a problem. I booted up a Mint Linux live cd and was able to transfer files ok. So ..... looks like it was a glitch somehow to do with MX19 or my inability to configure it.
Thanks everyone.
@miller.92 I use Ubuntu 18.04 and don't have this issue. I also use AOSP custom roms always on my 6t and rarely use stock OOS but that shouldn't matter.. I've read this same thing somewhere else on xda. Weird.
Sent from my OnePlus6T using XDA Labs
I installed Mint 20 over MX19 and the same problems showed up.
I pulled up synaptic and did a search on "android". Downloaded "Android File Transfer" and that seems to work. It's a bit clunky and primitive but it does work.

Question Cant install fresh copy of xp

So I had this old ass desktop donated to me and the hdd was filled with so much crap I couldn't even install rufus to burn an xp iso to a USB drive. So I finally get to my PC, which is not easy to get over to use, and burn an a supposed untouched xp iso with sp3. So I boot up from USB everything seems to be going smoothly I format the entire drive because there were a few partitions on the hdd I figured I didn't need all that crap, if I remember back to around 2003 multiple partitions weren't needed to install xp. Anyways the drive formats fine, I hit install, and run out the door to handle a few errands as I was late meeting with a friend. I get home and I can't remember the exact error it threw at me when I walked in the door but basically I started a reinstall. Except now, everything from my USB drive loads normally but before the installation screee. Actually starts up it tells me that there is no valid xp operating installed on the hd and that I need to insert a windows xp cd to verify that my installation is legit or something like that. So it's either f3 to quit or enter to continue. I hit enter hoping it will read from my USB but that didn't work. So I'm a little stuck here because the only PC I have that can burn cd or DVDs is this desktop.my laptop doesn't have a rw drive.
bigrooster88 said:
So I had this old ass desktop donated to me and the hdd was filled with so much crap I couldn't even install rufus to burn an xp iso to a USB drive. So I finally get to my PC, which is not easy to get over to use, and burn an a supposed untouched xp iso with sp3. So I boot up from USB everything seems to be going smoothly I format the entire drive because there were a few partitions on the hdd I figured I didn't need all that crap, if I remember back to around 2003 multiple partitions weren't needed to install xp. Anyways the drive formats fine, I hit install, and run out the door to handle a few errands as I was late meeting with a friend. I get home and I can't remember the exact error it threw at me when I walked in the door but basically I started a reinstall. Except now, everything from my USB drive loads normally but before the installation screee. Actually starts up it tells me that there is no valid xp operating installed on the hd and that I need to insert a windows xp cd to verify that my installation is legit or something like that. So it's either f3 to quit or enter to continue. I hit enter hoping it will read from my USB but that didn't work. So I'm a little stuck here because the only PC I have that can burn cd or DVDs is this desktop.my laptop doesn't have a rw drive.
Click to expand...
Click to collapse
Your assumption that multiple partitions are not required is incorrect. Windows requires an MBR parition that occupies the first 512 bytes of your hard disk. This acts as a loader to start Windows.
You should be able to simply remove all partitions on the drive when you start the Windows installation process; Windows will then automatically configure the necessary partitions for you. This article should provide the information you need.
Also, don't forget to enable legacy boot in your BIOS, assuming the BIOS supports UEFI.
Yes, I am aware of the mbr but like you said the installation media should have no problem creating that after formatting the whole drive and starting install. I'll check the bios settings thanks for the tip. I'm leaning towards running one of the android os compatible with x86 arch. Anyone have any experience with those. I have bliss and prime downloading right now.
*EDIT*
I turned USB legacy mode from auto to enabled but no dice. I would think that once I hit enter it would recognize the USB I have plugged in as the CD ROM. What if I disabled the CD ROM drive for the time being?

Unable to install widows on new pc build

Hey guys,
I build a new pc, first new build in 20 years.
I’m using an ASUs tug gaming x670e plus WiFi motherboard with and 7800x3d cpu.
I’m stuck with the windows installation from usb.
First attempt I used a SanDisk 8gb stick and windows media creator. That’s right load, but looking back that was probably because of bios settings.
second attempt I used a leef 16gb stick. Art the verify stage at 99% it failed.
Third attempt save stick same method created the usb successfully. Had to pay around a lot with bios settings to get the stick seen as bootable. But during the windows installation it reported a file inaccessible or missing. Soo I put the stick in another machine to check but the file in question was there.
Soo I tried again, but now it cannot start up from the usb stick.
I’m in progress of creating an iso usb using the 8gb SanDisk drive, but I think I’m missing something significant.
I’ve attached my bios settings for booting.
If anyone can give some clarification, that would be greatly appreciated! If I can’t die this tonight I’ll bring it in a shop this weekend (just for a windows installation, sigh)
This... happy hunting.
Make a cloned copy of the disk once loaded and configured but before adding data, antivirus or trashware with Acronis to a spare hdd for easy OS restore.
*Redundantly backup critical data, first*
Separate data drives + OS drive are best plus the backup drives that are physically and electronically isolated from each other and the PC.
Managed to get an install.
Had to change a few bios settings (apparently one of the videos I watched for the right bios settings was the exact opposite of what was needed). Agassi used an iso stick.
That seemed to do the trick.
Thanks for the suggestions. It’s much appreciated.
I managed to get things installed. My issues were a combination of bad luck with my usb drives (and how the bootable stick was generated), as well as some poor advice on YouTube that told me the opposite of what was needed.
I also had problems obtaining an activation key legally, but that got resolved as well, so I finally managed to get my pc up and running.
Thanks again for the suggestions!

Categories

Resources