Working around dreadfully slow USB 2.0 performance - Nexus 6P Q&A, Help & Troubleshooting

So let's say you just broke something and ended up having to wipe all the user data and reflash the system. You've got a string of nandroid backups on the phone, and lots of files and other data on the device, so it's really much easier to drop \sdcard and \data onto a flash drive via OTG because you can't just pull the microSD card out because I'm not sure what Product's (a.k.a. Google's Android Product Team) reasoning is other than to laugh at me.
So, one to three hours later you're reflashing the phone. It boots, lovely. Now, you plug in the same USB 3.0 key via a USB 3.1 connector and are copying ~100GB of files over at lovely sub-USB-2.0 speeds of around 8MB/s (thanks again, Product. Why you like to laugh at users to much?)
Does the phone support anything where you can realize better transfer speeds than this?

Related

[Q] how do I use phone files on tab?

I asked this once and got an answer that I should "duh" remove the micro sd from the phone and insert it in the tab. If I don't like that i must be stupid or lazy.
I use a lot of spreadsheets in my work. I have been using them on my relatively small 3.7" phone until I got this tablet. Since there is a USB port on the a500, I figured that i could use the cable and use the file on the phone through the USB cable. But the tab doesn't see the sd card when used as a disk drive. The my touch slide 4g has a 32gig card in it.
The tab can see large USB drives except not the phone.
They are both WiFi enabled and have Bluetooth ability. Bluetooth is slow and not so easy as a USB connection. I have not been able to establish a WiFi FTP relationship. I could open the files on either device with a cloud storage, but this is complicated and can be slow and insecure when I am out and about using public WiFi. It can gobble up data if I use my data connection and tethering for both the tab and the phone to keep going back and forth to the cloud for read only and minor changes.
All I want to do is to be able to use my phone as a disk drive as I can do on a computer, or as i can do with an external drive or memory card.
When i have access to a desktop or laptop, I simply plug in the phone and open the file on the phone and then save it right back there when I'm done.
This seems so simple a task. Why is it not right up there with easy things to do? After all, isn't this one of the reasons there is a standard USB port built in when no one else has one?
Sorry to ramble on, but this is one thing I would really like to do.
Stuart in San Diego
ICONIA A500 Stock 3.2
My Touch Slide 4G rooted but otherwise stock
Thanks
You CAN use your phones disk drive mode, you just need to mount the drive on your tablet. Use DriveMount from the Market, should do what you need.
sandiegoan said:
I asked this once and got an answer that I should "duh" remove the micro sd from the phone and insert it in the tab. If I don't like that i must be stupid or lazy.
I use a lot of spreadsheets in my work. I have been using them on my relatively small 3.7" phone until I got this tablet. Since there is a USB port on the a500, I figured that i could use the cable and use the file on the phone through the USB cable. But the tab doesn't see the sd card when used as a disk drive. The my touch slide 4g has a 32gig card in it.
The tab can see large USB drives except not the phone.
They are both WiFi enabled and have Bluetooth ability. Bluetooth is slow and not so easy as a USB connection. I have not been able to establish a WiFi FTP relationship. I could open the files on either device with a cloud storage, but this is complicated and can be slow and insecure when I am out and about using public WiFi. It can gobble up data if I use my data connection and tethering for both the tab and the phone to keep going back and forth to the cloud for read only and minor changes.
All I want to do is to be able to use my phone as a disk drive as I can do on a computer, or as i can do with an external drive or memory card.
When i have access to a desktop or laptop, I simply plug in the phone and open the file on the phone and then save it right back there when I'm done.
This seems so simple a task. Why is it not right up there with easy things to do? After all, isn't this one of the reasons there is a standard USB port built in when no one else has one?
Sorry to ramble on, but this is one thing I would really like to do.
Stuart in San Diego
ICONIA A500 Stock 3.2
My Touch Slide 4G rooted but otherwise stock
Thanks
Click to expand...
Click to collapse
Two threads on the same issue in one forum. Your question has been answered in your other thread one post down.

[Q] Partly broken USB input - charging but "unknown device"

Hi guys!
I've had a problem over the day with my beloved HD2, and I've started to fear that it might actually be the hardware starting to decay. About a day or two ago, when inserting my phone to the MicroUSB cable, it recognized the HD2 just fine, had access too USB mount, ADB and all of that. Transfered some music to the SD-card (Trancent 16gigs Class 4, btw - still very well recognized by the phone to the time at writing this), but now, some time later I get nothing out of connecting the phone to either my laptop or rig.
I know it's not the drivers or the cable, since I've tried with others cables and a few other computers. The message is the same old "The device could not be recognized". But the funny thing is, somehow the device must know that its connected to a computer anyway, 'cause it instantly enables debugging and the option to enable mount. I, as of now, has had no luck getting into the SD card, sadly. Not even been able to pull logcats or anything, setting up wireless ADB hasn't been sucessful either - so where I stand now, I'm kinda in need for a helping hand.
Has anyone else ever had this problem too, or am I left out in the cold?
By the way, even managed to put on an older nightly CM9 build, as it was stored on my SD. No luck there either. MAGLDR mount / recovery mount doesn't function either. Same error.
The ROM I first had the problem on was PARANOIDANDROID v0.6. Then a nightly CM9 from sometime last week. Both immensely close to stock and ICS based. LEO512, by the way.
Please, give me a hand!
TL;DR: USB broken, still charging, help.
Your usb is getting loose (usb data connection becomes irratic and then stops working, continued use results in USB port ripped from mainboard), try to not use it while plugged in and see if the repair shop can fix it for you without breaking usb data. You can use the SwiFTP app in playstore to transfer files in the mean time.
You may also want to use a cradle charger to minimize USB port being used.

[Q] USB file transfer speed

Has anyone tested how fast files can be transferred between the N7 and a PC over USB?
I guess I'd be mostly interested in write speed to load the device up before taking it somewhere. The OTG stuff sounds cool for long trips but most of the time I will probably just want to put a few GB of things on the internal memory.
I know the wifi will max out at 3 MB/s or less, I'm hoping the USB can do at least 10 MB/s? That is what I can effectively do currently with my SGS by using a card reader to load up a class 10 microSD card, which obviously won't work here.
How do you know wifi will be 3MB or less?
Hoping this is faster than the Playbook, which was around 5MB/sec or so. Not that big a deal at night but was a bit of a problem when trying to quickly load videos on it before leaving for work. iPad and A100 were much quicker to move videos onto.
goofball2k said:
How do you know wifi will be 3MB or less?
Hoping this is faster than the Playbook, which was around 5MB/sec or so. Not that big a deal at night but was a bit of a problem when trying to quickly load videos on it before leaving for work. iPad and A100 were much quicker to move videos onto.
Click to expand...
Click to collapse
It is only 20 MHz channels which means no higher than 65 or 72 Mbps theoretical which only delivers about 25-30 Mbps real throughput. Could get maybe 3.5-4 MB/s but no way higher than that.
No mobile devices are getting 40 MHz 802.11n channels until they start using Broadcom BCM4334 or similar wifi chip, the BCM4330 that the Nexus 7, Iphone 4S and Ipad 3 are all using doesn't do it, so I'm skeptical that anyone gets more than 3-4 MB/s over wifi with any of them.
So far... Way slower vs. Galaxy Nexus (via adb push)
bump...
~3000 KB/s vs ~1000 KB/s
Pushing the exact same file (MP4).
Anyone else getting less than stellar USB transfer speed performance?
certainly not a scientific test, but when transferring a 350mb MP4 to my phones class 10 msd and then also to the N7, it seemed faster on the N7.
I didn't time it or anything
seeing this thread got me curious though. Maybe i'll test it out this weekend
I seem to be getting about 1.25 MB/s via adb push, using Ubuntu on my PC. Is it just me who's getting such a slow speed?
And MTP mode is weird.. I mounted it with $ mtpfs, and I copied my whole old /sdcard/ directory from my Transformer to my N7. It took a loong time.
And then I copied my music folder, 1.9GB or something.. and after another loong time, I went to my MIUI music app [can't have anything other than Folder music apps ], and only .aac files were showing. I couldn't figure out why but all my .mp3 files [in 10s of subfolders] were dumped directly into /sdcard/ [instead of /sdcard/Matt/music/*/*/*].
Anyway, does anyone know why I'm getting such slow transfer speed over adb? I can test the MTP's speed, but I doubt it's any faster. at all.
edit: I guess I should mention I am also not using the stock MicroUSB cable, I am using a generic 6' cable from Amazon. I wonder if that has anything to do with it? Maybe I'll try with the asus cord.
edit 2: check latest post, #8
MTP and ADB transfers are generally slower then using USB Mass Storage mode (which I guess is gone on newer devices and Android OS's), but the exact reasoning for this I don't know.
espionage724 said:
MTP and ADB transfers are generally slower then using USB Mass Storage mode (which I guess is gone on newer devices and Android OS's), but the exact reasoning for this I don't know.
Click to expand...
Click to collapse
I wonder if it's possible to enable mass storage mode somehow? preferably without flashing a new rom..
Anyway.. Okay. So I was surprised to find out, but I just did a test on MTP, [via mounting with mtpfs on linux] and I copied a file at 14MB/s with MTP instead of 1.25MB/s with adb push.
O_O
The weird thing is, cp says it's done copying way before it actually finishes. It also says it cannot preserve timestamps:
"cp: preserving times for `/mnt/Matt/05.The Three Days of the Hunter Job.avi': Function not implemented
Command exited with non-zero status 1"
So I cp a file to /mnt/Matt/ [/mnt/ is my nexus 7 MTP mount location], and in 10 seconds it says it is finished, copying 349MB. So I check with adb shell and $ du -h {FILENAME}, and the size keeps going up! Until of course, it reaches 349MB.
So anyway, it's good to know I can now transfer at 14MB/s instead of 1.25 MB/s.
But I really wish Android had kept the Mass Storage Mode, just as an extra failsafe mode [and for people like me who don't like the MTP jazz, I like Mass Storage Mode]... oh well
Something I have noticed....
I have tried different cables, adb push, Ubuntu, Windows 7, Debian, USB 3.0 vs USB 2.0 and get the same results with all those different variables.
The biggest problem seems to be with multiple smaller files, such as mp3's or the blobs from nandroid backups. With large files like movies, or bzip2/tar files I get pretty consistent 15-20/MBs on all my systems.
My suggestion if it's reasonable for your situation, is to tar whatever you going to send over USB then untar once on the device. Taring should only ad about 1-2 minutes to the total process, but will still be faster than waiting for ultra slow tranfers speeds. I don't recommend compressing, as this will ad a significant amount of time for not much gain.
My Problem:
Copying a Nandroid backup, the blobs folder has a lot of smallish files and when I tried to copy the folder to my Nexus via usb, I got a ridiculous transfer speed of 750 KB/s! That is ubearable for 800 MBs of data, when I tarred the backup folder I got my much nicer speed of about 15MB/s. For my situatuion I was looking at least 18 minutes to transfer the data. With the tarred file it copied in under 1 minute + 2 minutes ( tarring/untarring)=much hapier me
the easiest way for me to untar was via 'adb shell'; busybox installed of course. Not sure if there is an app or tool for android that integrates extracting files like this with a gui format, that would make this even easier...hope this helps a little
r0zj0k3r said:
Something I have noticed....
I have tried different cables, adb push, Ubuntu, Windows 7, Debian, USB 3.0 vs USB 2.0 and get the same results with all those different variables.
The biggest problem seems to be with multiple smaller files, such as mp3's or the blobs from nandroid backups. With large files like movies, or bzip2/tar files I get pretty consistent 15-20/MBs on all my systems.
My suggestion if it's reasonable for your situation, is to tar whatever you going to send over USB then untar once on the device. Taring should only ad about 1-2 minutes to the total process, but will still be faster than waiting for ultra slow tranfers speeds. I don't recommend compressing, as this will ad a significant amount of time for not much gain.
My Problem:
Copying a Nandroid backup, the blobs folder has a lot of smallish files and when I tried to copy the folder to my Nexus via usb, I got a ridiculous transfer speed of 750 KB/s! That is ubearable for 800 MBs of data, when I tarred the backup folder I got my much nicer speed of about 15MB/s. For my situatuion I was looking at least 18 minutes to transfer the data. With the tarred file it copied in under 1 minute + 2 minutes ( tarring/untarring)=much hapier me
the easiest way for me to untar was via 'adb shell'; busybox installed of course. Not sure if there is an app or tool for android that integrates extracting files like this with a gui format, that would make this even easier...hope this helps a little
Click to expand...
Click to collapse
I've have the same "problem", if you can consider as problem...also with my old N95 and the micro sd card copying a backup I got ridiculoas speed...so i'm not surprised very much...
However, copying normal files like mp3 pdf etc i reach the max speed of 15 MB/s...
lebrac said:
I've have the same "problem", if you can consider as problem...also with my old N95 and the micro sd card copying a backup I got ridiculoas speed...so i'm not surprised very much...
However, copying normal files like mp3 pdf etc i reach the max speed of 15 MB/s...
Click to expand...
Click to collapse
700KB/s USB speed is actually a problem. MTP suffers from this problem. Phones/tabs with micro SD on older Android devices didn't Use MTP so you may not have had the same issue. I have never had anything transfer this slow on my older Android phones whether it was a lot of small files or big ones.
Sent from my Nexus 7 using xda premium
Well I was getting 1.25mb/s on big files too I think with adb (but my nexus burned in a house fire so I don't have to worry about it for now).
mvmacd said:
Well I was getting 1.25mb/s on big files too I think with adb (but my nexus burned in a house fire so I don't have to worry about it for now).
Click to expand...
Click to collapse
Sorry to hear about the fire,
Not sure why data was so slow. I guess I should add that I'm using Trinity kernel and system tuner to apply a couple sd tweaks. Maybe that has helped with my transfer speeds.
Sent from my Nexus 7 using xda premium

[Q] Apoligies if repeat Q: will a usb hub work with Nexus 7?

I had read in some other random forum that if you have rooted your Nexus 7, which I have, and run app "StickMount" you can connect a usb thumb drive to the nexus and give yourself more space, even install apps to the USB drive to run from. I am wondering (and am going to test it out later this evening) if anyone has tried connecting a USB hub, so that you can have say 4 ports to add different drives or game controllers/whatever else and android will recognize the different devices?
As a realist, I'm just hoping the single USB stick connection will actually work as a storage expansion area, as we all know there is no micro SD slot. I actually have an old college friend I keep in touch with who works on the Nexus development team, who had no good answer as to why micro SD was removed, as well as the ability on devices with a micro SD no longer allow the installation of apps to the sd card. I was pretty convinced it was simply because the OEMs decided to name their internal memory /mnt/sdcard which used to be the external card's mount point name, but I'm told it is more complicated than that. Am I the only one that really feels like no apps to the SD in ICS or jellybean, is quite a downgrade? I understand we can use the "cloud" now ... but that's simply not the same, and surely not as fast as a local drive (maybe?) I then proceeded to yell at him to not let the group of stupid consumers influence the great features that the half-brained+ consumers know how to properly use, to no avail. Using the micro to full USB port to mount a thumb drive seemed to be the best way to add more storage locally. Thoughts? Thanks
- Herby
- Real-time embedded software developer going on 12 years, working in the satcom, medical device, aircraft display, and aerospace domains
NM - Just found app "USB Host controller" which does exactly what I asked Yayyyy!!
There are actually a whole slew of these that are even free, most require root however, which I recommend using the program with GUI interface developed specifically to unlock the bootloader, and then root the nexus 7. I think it was called Root_Toolbox or something like that. I am not at home or I would report back the official name. If anyone wants it just let me know. Thank you!
Herby6262 said:
I had read in some other random forum that if you have rooted your Nexus 7, which I have, and run app "StickMount" you can connect a usb thumb drive to the nexus and give yourself more space, even install apps to the USB drive to run from. I am wondering (and am going to test it out later this evening) if anyone has tried connecting a USB hub, so that you can have say 4 ports to add different drives or game controllers/whatever else and android will recognize the different devices?
Click to expand...
Click to collapse
A hub works great. I've had 3 flash sticks mounted at once along with a mouse and everything has worked without a hitch.
The caveat here is to ensure you're not pulling too much current - the OTG max current source spec is alot less than the 500mA a normal USB PC host port is able to source.

[Q] Weird HDD troubles (data shows as unallocated :( )

Ok so you guys are some of the most tech savvy peoples I've ever come across so I figured XDA was the best place to get help for this. It's a weird situation, so I'll give as much info/detail as I can. I apologize if this is posted in the wrong forum, but I am running windows 8
I have a dual 2.5" enclosure that I've been using to store all my music, movies, games, software, webpages/flash creations, etc. It contained 2 identical 750gb western digital drives.
The harddrive enclosure:
http://www.amazon.com/gp/product/B0030MHEGS/ref=oh_details_o00_s00_i00
The harddrives:
http://www.amazon.com/gp/product/B003D18DM0/ref=wms_ohs_product
Ok, so on the back of the enclosure there's 3 settings for how to use the discs and I had the "Just a bunch of Disks (JBOD)" setting. So when plugged into my pc, it showed up a single 1.5tb drive (which was almost full of data).
Well my brother's laptop died and he needed to get stuff off of his harddrive stat, so I figured I could use this enclosure to help him out. But upon inserting his 2 disk drives into the enclosure, it showed them as unallocated (in the MS Management Console). It also showed them as a single drive at 1tb (his were two 500gb drives). Not wanting to risk erasing any of his data, I told him to go buy an enclosure and try doing it himself. So I popped my harddrives back in, plugged it back into my desktop and it was all great and dandy, and it showed up in my computer as Local Disk H which is what it's supposed to be...until I rebooted my comp to do some updates.
Since that reboot it's been showing up in MMC as an unallocated 1.5tb drive. No matter how many times I unplugged and replugged it back in, reinserted the harddrives, switched the harddrive order (since they're identical I had forgotten which one went in which slot, if that even makes a difference) and tried rebooting my comp and running Ubuntu from a pen drive to see if that would help. I tried my brothers new laptop, my laptop, to see if any of them would recognize the drives. None of that changed the fact that it was showing up as a single 1.5tb unallocated drive in MMC. So I left it alone, waited until I got to my apartment (several days later) and thought I would try a different enclosure that I had in the hopes that I could recover some data.
http://www.amazon.com/gp/product/B005JFU16E/ref=oh_details_o01_s00_i02
So where I stand at right now, is it's showing up as 2 unallocated drives at 750gb each (698gb in actuality). And this is where I'm stuck cause i really don't want to lose all that data. Especially my wepages that I had created. I'm not a web designer full time, but those webpages were made in case I wanted to use it in my portfolio, should I become a web designer. 1 of the websites I made represented a few months worth of work.
So if anyone can help, have any ideas on what I should do, I'd <3 you forever.
Thanks in advance for any help I get.
Professional data recovery. It's expensive, but it's the only thing I can think of that is both likely to work and doesn't risk further damage. You could also try, from any Linux distro, using the partition management tools (parted, the command-line tool, is more powerful than the graphical ones) to scan the disks for partitions and try to recover them... but this is potentially harmful to your data (not the scan, since that's read-only, but the attempted recovery for sure) and not guaranteed to work (although it will probably tell you if it found anything after the scan).
Also, I hope we have learned an important lesson about backups. Oh, and while JBOD may improve the chance of recovering your data, it's an odd choice to use from a performance standpoint...
Suggest searching on "jbod data recovery" and "raid recovery" for applicable software--or failing that, services, depending on how valuable your data is for you. The good news is that the data is still all there; you just have to find the right software. You'd need a regular HDD USB enclosure, and recovery will be per-drive, not both at the same time. You'll also need another drive to dump the recovered data onto.
An example (not an endorsement): http://diskinternals.com/raid-recovery
Also suggest backing up your data, and stop using non-standard drive allocation schemes (eg JBOD) that heightens the risk for data failure, and lowers the chance of recovery.
>I hope we have learned an important lesson about backups
People almost always learn after the fact. Myself included.
>JBOD may improve the chance of recovering your data, it's an odd choice to use from a performance standpoint
AFAIK, JBOD typically concatenates the drives. People opt for it because of the convenience (striping would require matching drives), as these low-end units have low throughput anyway.
Right... I meant an odd choice since the drives were identical anyhow.
Another option, instead of using a typical enclosure (or even any enclosure at all, if you can supply the power) is to connect the drives directly to the PC using (e)SATA ports. While that shouldn't make any difference, it does remove a level of indirection if you were using USB connections before. I definitely do not recommend continuing to use the dual-bay enclosure that may have been responsible for the problems.
From post, OP is using a laptop, and eSATA port doesn't provide power.
Power for eSATA is pretty easy to come by - if necessary, just using the power connection on an enclosure - butyou can buy the power supply adapters for pretty cheap. Using a signle-drive eSATA enclosure would also probably work as it *should* just be mapping the internal pins through to the external port.

Categories

Resources