[Q] usb host - Android Q&A, Help & Troubleshooting

Is it possible to mount 2 usb drives simultaneously in android thru a hub? I have a nook color
(my sons) that runs cm7. I use nook tweaks to enable usb host and have a home made otg adapter. I can mount one drive (sandisk cruzer 8GB) thru a hub along with a keyboard and mouse.
I think i'm on the right track but i'm lost. I think I need to make a second mount point in mnt. I tried making another folder called usbdisk2 but i don't know what else needs to be done. I read somewhere about making a symlink.
The reason I want to mount 2 drives is so I can copy files from one to the other instead of mounting one drive, copy from the drive to the nook, then mounting the second drive and copying from the nook to the second drive.

Please use the Q&A Forum for questions Thanks
Moving to Q&A

Related

[Q] Transferring files from jump drive to tablet

I'm currently running vegan v1.0.0B5.1 Kernal verson is 2.6.32.9-dirty. This was done before I purchased my GTab by a tech guy on Amazon. Tablet is runni ng great but I can't for the life of me figure out how to transfer files from my 2gig thumb drive to the damn thing.
I'm no real techie.
Plug your usb into the tablets slot, open up root explorer or any other file manger, go to the folder usbdisk, locate your folders or files, long press & either choose move or copy & place them in the folder called sdcard (*internal) or sdcard2 (*external).
There are other ways to get your files onto your tablet but since you asked specifically about a usb flash drive, I'll stick with that.
You should make sure that USB Debugging is NOT checked. Go to Settings>Applications>Development to check on it. If it is checked (enabled) it will not find your USB drive.
I was having problems with it recognizing my thumb drive, and that was the problem. Found that after I unchecked USB Debugging I still had to reboot, then all was well.

[Q] external hdd write problem

Hi,
I recently bought a Archos Gen9 ICS.
Using the host cable I can copy from internal memory to USB (fat32) without a problem. This also works when connecting the USB using the 3G input.
However when I connect an external HDD (ntfs) using the 3G input it's recognized, but I can't copy files to it. In the default file manager I don't even have the "paste" button when I select the drive. Astro said something about the drive being read-only.
(btw...copying files to the usb-stick didn't even work with astro...it always complained about not being able to create a new directory. Anyway if the default file manager works, that's fine by me)
What could be the problem here? Is it file system related or...?
Hope someone knows the answer.
Thanks in advance!
neva
Write support on ntfs file system isnt given.
You could reformat your hard drive as fat 32 but i wouldnt do so.
You would lose support for big files over 4 gb, you would lose all your data, etc.
it is kernel related, perhaps it might be possible to trick your archos if you feed it with ntfs-3g, but i dont know if it is possible. It would be tricky, you would have to find arm binery therefore. There is a thread here on xda in same subsection gen9 android developement.
http://forum.xda-developers.com/showthread.php?t=1463679&highlight=ntfs-3g
You could try that and report if you successed.
Greatings.
Thx for your quick reply.
I didn't know that ntfs write wasn't possible at the moment...
I'll probably convert my hdd back to fat32, or buy a "bigger" usb stick

Cloning a USB mounted card as internal storage?

Hi,
If this has been asked before i apologies but i've searched, used google, and never really found the answer i'm looking for.
I have a nexus 7, OTG cable, flash drive and stickmount installed. As an external storage device this works fine for movies, audio etc.
I'm not experienced with android having only previously used it on my touchpad, and wondered if the following was possible.
Is there an app that can essentially clone the externally mounted USB drive so that when installing an app with a large data download i can choose to download the data to the externally mounted usb drive instead of the main device memory. An example, Spiderman has nearly 2GB of data and i would prefer to move it using an app rather than having to continuously move the data file from the root to the external USB using es file explorer.
Many thanks for the help
Doobdonk said:
Hi,
If this has been asked before i apologies but i've searched, used google, and never really found the answer i'm looking for.
I have a nexus 7, OTG cable, flash drive and stickmount installed. As an external storage device this works fine for movies, audio etc.
I'm not experienced with android having only previously used it on my touchpad, and wondered if the following was possible.
Is there an app that can essentially clone the externally mounted USB drive so that when installing an app with a large data download i can choose to download the data to the externally mounted usb drive instead of the main device memory. An example, Spiderman has nearly 2GB of data and i would prefer to move it using an app rather than having to continuously move the data file from the root to the external USB using es file explorer.
Click to expand...
Click to collapse
Hard Link feature of ext4 partition can help you.

USB drives change after boot, how to stop it?

Ok so my title kinda sucks, but here is the situation.
I have an Android on a stick(iMito MX1) attached to my TV. I have a USB hub and two hard drives attached.
Each time I boot the drives swap SDA and SDB. Is there any way to stop the drives from doing that as it is messing up my mount points and reversing my movie/aps locations.
I am using an app called NtfsSd to mount one of the drives as /sdcard. So far this is working great as it allows apps to use the 750G NTFS drive as a place for the apps extras and aps2SD(built into JB rom). But if the power goes out or I reboot the device and the deviceID of the two drives swap then the other USB drive acts as the SDCARD and it messes up aps2sd.
NtfsSd would be perfect for a single drive, but in this situation it points to dev/block/sda1 but when I reboot sda1 might be the other USB drive. So how do I force one of the USB drive to always use sda1???
I looked everywhere but nothing seems to work. Udev is not supported on android so no go there. And trying to get a UUID for fstab seems to be a dead end but even then the app is looking for a particular sd* device.
I am really at wits end on this and totally stumped. Any help would be greatly appreciated.

Speed up USB Disk Mount

I posted this on the Nexus7 pages, but I wonder if it might be better in a general android page .
I have a nexus 7 that i'm utilising in a car build.
It's running CM10.1 which I believe is based on 4.2.2, and Timurs custom Kernel.
I have a 175gb SSD dive, hooked up to a USB hub and OTG cable.
The SSD is recognised and mounts correctly on the Nexus via the kernel.
I'm looking to speed up the mount process.
When I connect the SSD, the led activity light on the SSD will start to blink rapidly, any media on the drive is inaccessible until the drive activity has ceased.
This process takes around 30 seconds or more.
The drive is formatted using exFat, with a single partition.
I've placed a number of .nomedia files inside the USBDISK folder, SDCARD folder, and in the root of the USB drive itself, but still mounting takes time.
Is there a way to speed up the mounting process.
Maybe moving the media folders inside a single folder, or some sort of file (like .nomedia) inside the folder structure to tell Android to not perform a file check and just mount it regardless.
Maybe a cache system.
The kernel is configured to have the drive in read only mode, so unless I manually add any files, then I have no need to scan for any file changes.
The drive could be in the car for months before I add any new media to it.
I noticed last night, when I connect the HDD to my Windows 7 PC, no such disk activity takes place.
The drive is mounted, and ready to access within seconds.
Thinking that the drive activity could be folder related, I created a new folder in the root named .files, and then moved all my data in to it.
However, the tablet is still performing some sort of laborious disk activity when the drive is connected.
This now has me thinking...
When a disk is mounted in Android, is it a real mount of a virtual one.
If it's a virtual one, then I guess the system needs to build the directory listing and populate this in a virtual folder ??
I guess no one else has experienced this, or I posted in the wrong forum, but i think i figured it out.
Just incase someone else has the same problem in the future, and in the vain hope that they stumble across this thread, I think it's only fair that I post my findings.
My SSD drive is formatted exFat for compatibilty between my PC, Tablet and S7 phone which is on Marshmallow.
I have 2 hard drives, I have a 2.5" SSD and a standard 2.5" Sata drive.
So something to experiment with.
I have 2 hard drives, I have a 2.5" SSD and a standard 2.5" Sata drive.
So something to experiment with.
Formatting the standard hard drive as NTFS and then copying a small number of my files on to it, i noticed that the mount time was instant, with hardly any drive activity.
All files are accessable.
It makes little sense, considering a standard mechanical drive is supposedly slower than SSD.
I then formatted it exFat, and copied roughly the same number of files, but now the mount time was about 5 seconds, with the drive light activity issue.
I reformatted my SSD as NTFS, copied my files back on to it, and the mount time is still almost instantaneous.
So it looks like whatever is causing the extended mount time is asscociated with exFat.
I've no idea why, so if anyone can explain, i'll be happy to learn.
somehow exfat formatted disk is checked for errors on android every time it mounts.

Categories

Resources