[Q] Mounting multiple usb drives via hub - G Tablet General

So, I have a USB hub and a couple flash drives. Everything "works" fine. I say it like that because the hub functions fine, and the first drive you plug in mounts to /usbdrive just fine. The issue is with the second. When you plug in the second drive, Android sees it in /dev/block as sdb1, and using the Terminal app I can manually mount the drive and use it.
Ideally though, it'd be nice if there was a way for Android to see the second drive and automatically (dis)mount it to something like /mnt/sdcard/external. Is this something that can be configured in the system?

What about the way Android detects and mounts an initial flash drive currently? Does anyone have any knowledge of how that's working currently? Perhaps that could just be duplicated to work with a second one?

This might help.
http://forum.xda-developers.com/showthread.php?t=952456

I'm not sure that's quite right. From what I'm seeing, that tool is designed to let you mount existing media on your device in a way that makes it available to a PC. I'm just wanting the tablet to mount a second USB drive so that it's available on the device itself.

Related

SD"2" Mount Issue

My first thread that I can call my own.
Question for you all. Is there an easier way to transfer files over the the GTAB then having to pop out the SD Card and put it into an adapter and then into the computer and then out of the computer, out of the adapter and back in the GTAB?
Because every time I mount the USB, it only mounts the "internal" SD Card. Is there some sort of way to get it to mount both the internal and external SD Card?
I hate messing with the external SD Card. All the "popping in and out" makes me nervous.
I even tried mounting the internal SD Card and then copying the movies/music/etc.. over to the external SD Card via a file manager... but that is DAMNNNNN slow.
I haven't found a way (yet). Given that neither the zPad or TnT stock builds work, I'm thinking it's not that easy to do. Drives me nuts as well because I really don't want to keep taking the card out over and over and potentially damage it, over time.
That's exactly what I am worried about. LOL
I can just picture not paying 100% attention and snapping the card in half or, breaking the "locking" mechanism that holds the card in place.
roebeet said:
I haven't found a way (yet). Given that neither the zPad or TnT stock builds work, I'm thinking it's not that easy to do. Drives me nuts as well because I really don't want to keep taking the card out over and over and potentially damage it, over time.
Click to expand...
Click to collapse
If you have ADB, can you do adb pull or push?
Jim
My workaround has been to use the LAN tab in ES File Explorer to copy data wirelessly to sdcard2. Probably not the speediest method but it keeps the card in place.
The techie/hacker solution to easy file transfer is to use the Rsync for Android app in the market store. Once you have it setup, (not the easiest thing to do) it works great for moving files automated from your gtab back to an rsync server (my linux box to the rescue). I even have a secondary profile to get it to reverse rsync a specified directory FROM my linux box to my gtab. Presto -- easy file transfer via wifi!!!
Also, another idea might be to use Dropbox?
Jim
P0RT3R said:
My workaround has been to use the LAN tab in ES File Explorer to copy data wirelessly to sdcard2. Probably not the speediest method but it keeps the card in place.
Click to expand...
Click to collapse
I do the same thing. It's mighty slow, but it works.
roebeet - an idea that almost worked - maybe you know why?
roebeet said:
I haven't found a way (yet). Given that neither the zPad or TnT stock builds work, I'm thinking it's not that easy to do. Drives me nuts as well because I really don't want to keep taking the card out over and over and potentially damage it, over time.
Click to expand...
Click to collapse
Hi,
You all got me curious, so I just tried the following:
- Created a dir under /mnt/sdcard, /mnt/sdcard/mymnt
- Get temp root (z4root)
- Start terminal
- su
- mount -t vfat /dev/block/vold/179:17 /mnt/sdcard/mymnt
At this point, I can access the sdcard2 by using /mnt/sdcard/mymnt or simply /sdcard/mymnt.
So, I disabled USB debugging, and I get the popup asking if I want to activate USB transfer (I'm on 3452, on earlier TNT firmware, it use to say enable USB storage).
I click the button to Activate, and then another window pops up, and I click Activate.
Then, the popup just stays there, with the spinning thing. It never enables USB transfer, and, on my PC, I see the removable drive, but when I click on it, it says it's not ready.
I've also tried umounting /mnt/sdcard2, thinking that it might be confused because of the two mounts to /dev/block/vold/179:17, but it still does the same thing.
So:
- It looks like I can mount the /dev/block/vold/179:17 (the external microSD card) under /mnt/sdcard, and
- When I do that mount, I can see the contents of the external microSD card in terminal under /mnt/sdcard/mymnt and under /sdcard/mymnt, but
- For some reason, turning off USB debugging/activatiing USB transfer fails.
Maybe someone can figure out why activating the USB transfer fails. If we can figure that out, then that would allow seeing the external microSD card via the PC USB interface.
Jim
I think it would need to mount both volumes -- the internal SDcard and the external SDCARD2 -- separately...
Using a mount (reparse) works internally since they are on the same device -- but if you try to mount SDCARD externally it doesn't understand the reference to SDCARD2
My phone actually mounts to the computer as two drives -- one for internal (SDCARD) and the other for external (SDCARD2)
I'd assume there is a way to have something similar work on our gTablets...
I'll have to slap a spare microSD card into the tablet to try though...wondering if teh INF needs to be tweaked as well (??)
From what Ive seen or experienced, Cyanogen was the only rom that Had the Sd card and Sd card2 Thing fixed right (with exception of having to plug in the Power cord before mounting). Evrey other Rom seems to have problems. But Cyanogen has way too many other problems so I use Vegan since to me it seems the most stable :s
Yeah -- my phone is running a fork from Cyanogenmod 6...so the code is shared
TeutonicWolf said:
I think it would need to mount both volumes -- the internal SDcard and the external SDCARD2 -- separately...
Using a mount (reparse) works internally since they are on the same device -- but if you try to mount SDCARD externally it doesn't understand the reference to SDCARD2
My phone actually mounts to the computer as two drives -- one for internal (SDCARD) and the other for external (SDCARD2)
I'd assume there is a way to have something similar work on our gTablets...
I'll have to slap a spare microSD card into the tablet to try though...wondering if teh INF needs to be tweaked as well (??)
Click to expand...
Click to collapse
That's the problem... When the Gtab is plugged into the PC USB (while USB debug is disabled), only one new "drive" appears, corresponding to /sdcard on the Gtab. There is no 2nd drive appearing on the PC corresponding to /sdcard2 on the Gtab.
I've been looking at my Windows configuration, with the Gtab plugged in, and the one drive that appears shows up under "Portable Devices" branch in Device Manager. The properties show that it corresponds to "wpdfs.inf", and looking through that, it looks like a generic USB Mass Storage configuration, i.e., a USB drive.
I still think that something would need to be fixed on the Gtab end for the two drives to appear on the Windows end.
Jim
app fix
I have found a workaround for the issue with the installation of a single app:
http://forum.xda-developers.com/showpost.php?p=12299831&postcount=2
Depending on what you want to do, an FTP solution is also possible as discussed in this thread:
http://forum.xda-developers.com/showthread.php?t=869844
By using swiFTP, I am able to open a connection through a Win7 windows explorer, and I can drag-and-drop files to SDCARD2 (over a wireless connection). I put a 1Gig movie on the card and it took about 12 minutes.
Another option is to use Multi Mount SD-Card. This is link is for the lite version, there is also a paid version.
This app works outside the embedded SD Card Mounting scheme that comes with Froyo.
With this you dont have to press the "Mount USB" button that comes up in the notification bar when you attach the USB cable. Instead it will auto-mount the either the internal or the external SD Card when you plug in the cable.
(Having configured the setting of your choice before hand).
Unfortunately it can not mount both at the same time.
It works with my GTAB and I'm using VEGAn 5.1 Beta.
(Without the 5.1.1 Suppliment patch)
Folks are still struggling with this?
Use a USB flash drive, I do it all the time. Just a regular, boring, Windows FAT-formatted flash drive.
Wow it is amazing that this problem still exists.
I am a new owner of a Gtab and have had it for less than 2 days. Thank goodness for the many informative posts on this site, that have helped me make my new toy almost perfect.
I updated to 3588, installed cwm and titanbackup, vegan5.1.1 including the suppl patch and even learned how to tether it to my Samsung Captivate. The one thing that was annoying me was my device not seeing the 16 gb microsd card that I had inserted both in the gtab and on my pc.
After reading this thread, it looks like I am not going crazy, but it seems like my device is destined to not acknowledge this addtional storage in it's settings?
I really was hoping to use the external card for videos and my mp3 collection, so I am missing something or did I do something wrong to make this happen?
I would appreciate any comments or suggestions since this is the only thing that I need to get squared away before I install more apps(with the possibility and ever present threat of having to re-install something I may have already done)
I could not post this question in the dev section since I do not have enough posts to allow me to.
Thanks
Tina

[Q] I need an OTB tutorial and answers to some questions.

I have an OTB cable camera connection kit and I purchased a 4 port USB powered HUB and am also using a thumbdrive. I use Root Explorer as my primary folder organizer/file management.
What I did was load up Music Junk and pointed it to my usbOTG directory and into a Music folder. When I download a song it goes directly to my thumbdrive so that I don't have to keep the music on my Xoom, or so I thought. When I disconnected the OTG cable and opened up the Music app the music was in there and was able to be played. Is it stored twice on the Xoom (once on the stick and once on the device)?
I noticed that sometimes I have to refresh a lot in Root Explorer or unplug the thumbdrive from the hub to be able to see any files on it. Is that normal? Is there a correct way to unmount the thumbdrive so I don't corrupt any information on it. I'm testing this out on a thumbdrive because I plan to use a hard drive in the future with the OTG.
Thanks for looking.
Have you tried it without the hub? I've read that people have problems with hubs because the xoom simply can't output that much power.
The OTG cable works perfectly with the HUB. I loaded some emulator ROM's on a flash drive and connected a USB controller to it perfectly fine. I just don't know how to unmount the drive so I can disconnect it. Does it really matter? I'm under the impression that it does because I know you can corrupt files by just pulling it out of a computer without ejecting first.
It depends on the drive. Some drives protect against that, some don't. Majority of them do though.

[Q] Android Phone as USB Stick

Hi!
I know it is possible to connect my Samsung Galaxy SII to a PC and mount the file system of the SD card (either in debug mode as two removable Windows volumes or, without debug mode, as a phone device). However, I would like to have the phone more as a USB stick, i.e. having only one partition (so that Windows can see it properly) and, more important: being a USB stick even when not yet plugged into the host, i.e. the host never seeing anything else than a USB stick.
Why do I want that?
Because I tried to connect the phone to a DVD player that has a USB port, so that I can watch photos directly on TV (via DVD player). The player would offer to display media from USB stick.
However, nothing I tried worked. When I plug in the phone, the player sees the USB device plugged in but does not see a file system, saying that the media is not formatted or supported. When the phone itself offers to go into USB connection mode, it is too late and the player refuses to see it still. The phone simply offers USB connection mode too late.
So the question is: is there an app capable of doing this? That would be an app that I start and which puts the phone into USB connection mode *before* I plug it into the host. If I could define a directory that will be seen as the root file system of the stick from outside, this would be great. If I could put that file system into read-only mode, it would be perfect.
I found many posts about the phone being a portable drive, connecting USB sticks to the phone and so on. But nothing fits that use case I described.
Any hints?
Hm, today I thought about it
But my DVD Player as yours, say USB Device Unsupported.
I'd really like the possibility to connect to DVD Player as normal pendrive, and play movies.
And still no reply. That's... sad
skr68 said:
Hi!
I know it is possible to connect my Samsung Galaxy SII to a PC and mount the file system of the SD card (either in debug mode as two removable Windows volumes or, without debug mode, as a phone device). However, I would like to have the phone more as a USB stick, i.e. having only one partition (so that Windows can see it properly) and, more important: being a USB stick even when not yet plugged into the host, i.e. the host never seeing anything else than a USB stick.
Why do I want that?
Because I tried to connect the phone to a DVD player that has a USB port, so that I can watch photos directly on TV (via DVD player). The player would offer to display media from USB stick.
However, nothing I tried worked. When I plug in the phone, the player sees the USB device plugged in but does not see a file system, saying that the media is not formatted or supported. When the phone itself offers to go into USB connection mode, it is too late and the player refuses to see it still. The phone simply offers USB connection mode too late.
So the question is: is there an app capable of doing this? That would be an app that I start and which puts the phone into USB connection mode *before* I plug it into the host. If I could define a directory that will be seen as the root file system of the stick from outside, this would be great. If I could put that file system into read-only mode, it would be perfect.
I found many posts about the phone being a portable drive, connecting USB sticks to the phone and so on. But nothing fits that use case I described.
Any hints?
Click to expand...
Click to collapse
Try this app it seems that work with many devices...
Yeah, might work... If I somehow can install Windows Phone 7 on my Galaxy
On that thread i've read about people that doesn't have win7 phone but that program working on their phone , you could try it doesn't cost anything...
And Elvis lives in Las Vegas
You can try the following:
Open ‘Menu’ on your Android and tap on settings. You can find ‘Wireless and Network’ option in settings, just open it and it will now show you various options. Select ‘USB Utilities’ and you will get the option ‘Connect storage to PC’ as shown below.
Now it will ask you to connect your phone to PC using USB Cable. When you done with that you will get an Android symbol and message ‘USB connected’.
Everything is done now and your Android has turned into USB storage device. Transfer and manage files as you want.
Not fully sure, try putting the videos in root(in no folder) of sd card.
Reboot to recovery and under mounts and storage try mount usb mass storage
Sent from my HTC EVO 3d
Root: revolutionary
Recovery: Twrp cwm 4
ROM: Synergy 2.3.4 ( I want aosp)
The dual core shooter. Double the bad ass.
Hi!
The hints from mikedavis120 and pcbilski actually look like they could work. Unfortunately it is not my DVD player but my father's and he is on vacation now. Will take two weeks until I can try
I have tried both methods on two DVD players, and both failed
pcbilski's - 1st player when in standby, gives power to USB so when I connected a phone it popup a message to mount sdcard. Mounted SD, and started up a player and... nothing, it doesn't load, doesn't say anything.
2nd player doesn't give power to USB so when I turned it on, my phone found a connection. So before phone mounted SD, there was error - Unsupported USB. When it was mounted, choose other source, and back to USB and nothing, like on 1st player
mikedavis120's method - both players didn't saw any USB Device
Sorry for my english, but I think it's readable
Yeah, figured as much today. Problem is that before the phone accepts to becomes a USB drive, you have to plug in the cable, wait a second, and confirm the popup. But until then the DVD player already sees the phone and thinks it is not a USB stick, refusing to accept it later. A hen and egg problem.
Any news on this? My USB-stick just broke and I need to update my TVs firmware...
Hopefully this will work for future readers.
It is actually for installing OSes(I think, atleast that was my use.), but I think it will work. Create a blank image, and copy the files to the blank new drive from a computer.

How do I use my tablet as a mass storage device?

I want to move a 10GB file to my computer from another one, but I don't have a pen drive or external HD around... I used to install the USB drivers on my computer, and plugged my tablet into my computer's USB port, it worked like a charm but since I upgraded to JB the drivers are useless now, what do I do?
Sent from my ASUS Transformer Pad TF700T using xda app-developers app
You need to buy a USB pen drive or an external HD, or a network cable. The tablet cannot be mounted as USB mass storage device because that mode would need to give full control over the internal storage to the computer, i.e. Android could not run at the same time.
It still works fine I copy large files all the time. Just make sure you have the latest SDK from Google installed and you should get the latest USB drivers then you can use it like a pen drive again.
sbdags said:
It still works fine I copy large files all the time. Just make sure you have the latest SDK from Google installed and you should get the latest USB drivers then you can use it like a pen drive again.
Click to expand...
Click to collapse
As USB mass storage? I don't think so - which filesystem should be unmounted here?. Otherwise please explain in detail how. And if you mean only as MTP device, how do you transfer files > 2 GB?
Ah right yes not as a mass storage device. I never tried anything over about a gig so never thought about that.
Since JB, only MTP(Media Device) and PTP (Camera) protocols are supported. The MTP protocol is achingly slow, not just on the TF700. My SGS3 (supposedly 'faster than the tf700') is equally slow in terms of USB transfer.
I agree that it used to work as a regular Mass Storage Device before JellyBean. Mine always showed up as F:\Asus TF700T. Updated to JB and to my great annoyance, only MTP. (PTP is pointless.)
ICS with Regular took 30 seconds to copy 600MB. JB's MTP requires 5 minutes! On both of my devices.
As for it not showing up, it's not in the list of drives. It should show up below everything else, without a drive letter(!). For me it's below Control Panel and above Shared Documents. (WinXP)
Did you, by any chance, kill the wufdhost.exe process in taskmanager's processes tab? You see, I did. And not a single MTP device would be recognised afterwards. It should A, running in Taskmanager, B, be in C:\WINDOWS\system32 and C, as 'Windows Driver Foundation - User-mode Driver Framework' in services.exe.

Problem with mount over otg.

First I have to say mounting a usb stick over a otg cable is no problem.
THe problem I have is that when I mount a usb stick the first time it mounts to usbstick_1.1.1.
Al right till then, but when I disconnect the stick and want to mount it again, no chance!
I need to reboot then it works again.
When I mount the usb stick with stickmount pro i have a other issue.
It mounts then to /sdcard/usbstorage/sda for the first time.
But when i disconnect the stick, the next time I connect it it mounts to sdb and so on.
I need a FIXED mount point for programs like spotfiy.
I need the music database on the same place when i conenct my meenova so the app can find the stuff.
Anyone has a solution for this?
THANKS!
vampy2k5 said:
First I have to say mounting a usb stick over a otg cable is no problem.
THe problem I have is that when I mount a usb stick the first time it mounts to usbstick_1.1.1.
Al right till then, but when I disconnect the stick and want to mount it again, no chance!
I need to reboot then it works again.
When I mount the usb stick with stickmount pro i have a other issue.
It mounts then to /sdcard/usbstorage/sda for the first time.
But when i disconnect the stick, the next time I connect it it mounts to sdb and so on.
I need a FIXED mount point for programs like spotfiy.
I need the music database on the same place when i conenct my meenova so the app can find the stuff.
Anyone has a solution for this?
THANKS!
Click to expand...
Click to collapse
Sorry, no solution, but I have the same problem, see my posts here:
http://forum.xda-developers.com/showpost.php?p=48267845&postcount=34
I am also having the problem since I have rooted and tried several apps, like StickMount, etc.
Mounting is fine, dismounting not good, requires a re-boot to mount again.
I am blaming the OTG cable I have, from a China Tab i got, works perfectly on that tab though.......
Let me know if you find an answer, OK!!
Do you have the meenova, btw??
There does seem to be mixed results from USB OTG on the G
I can mount, unmount, remount fine but write no.
Others can mount, remount & write
Others can't even remount.
I'm not sure it's the hardware, as when I tried my cables on a HTC One it would write no problem, but on the G it didn't want to know.
I'll feel happier once my Meenova & high end quality SDCard arrive & I can try on decent hardware it'll become clear then if it's hardware or the moto G software.
I'm pretty sure it is the software, messing around since about 5h with unmount and mount ****.
The curious thing is when i mount and unmount otg storage with adb i can access the data on it in the shell.
But when i go then in a File Explorer on the phone it looks like there is no data.
Just brain *****.
sorry, delete please
vampy2k5;48309652
When I mount the usb stick with stickmount pro i have a other issue.
It mounts then to /sdcard/usbstorage/sda for the first time.
But when i disconnect the stick said:
I rooted mine and used stickmount pro for some time and all seemed fine, with a consistent mounted device. Then, having installed Titanium Backup, I decided to back up to a microsd device.
I'm always careful to unmount before removing the microusb device. But after doing the backup, Stickmount declined to unmount it. I checked the box to allow it to force holding apps to abort, but it still wouldn't unmount. So I rebooted. And the microusb device was still there according to stickmount even when unplugged.
Next time, when I plugged it back in, it came in like yours as sdb, And now it's incrementing with every new plug in. I've checked with df in a terminal and it doesn't seem to know anything about the imaginary devices...
Very curious.
Click to expand...
Click to collapse
You say that you had a consistent mount point? How often do you mount it before you installed titanium, coz I have titanium too.
Dont know if this is the error?!
But I think it is a software error related to the moto g firmware.
I really need a fix, every help is welcome
vampy2k5 said:
You say that you had a consistent mount point? How often do you mount it before you installed titanium, coz I have titanium too.
Dont know if this is the error?!
Click to expand...
Click to collapse
A number of times and it always mounted and unmounted OK as sda1. Whether Titanium is holding it open I don't know, as I said ticking the box in stickmount to force release doesn't do anything. And so far I've only done the back up once, but the device name increments each time I plug the microusb in. My microusbs are all dumb adapters with Sandisk USB sticks plugged in to them.
I have same problem.
Hopefully OTG Disk Explorer Lite from google play can enter the USB drive all the times. Unfortunately it seems to not support NTFS but with FAT32 works fine. Too bad I cannot find a way to reach the flash drive on other file explorers...
P.S. Xbox 360 controller works normally on Moto G
Little update:
I received my meenvo 1 week ago.
With the meenova and stickmount pro it works now the way it should.
I can write and read to it all the time, it mounts to /storage/usbStorage/sd* but on the same time it mounts also to the fixed mount point /storage/usbdisk_1.1.1.
So I use the fixed mount point /storage/usbdisk_1.1.1.
What ROM are you on? I'm still trying to figure out how some people can mount, read & write & others can't. (I'm on a tesco UK 16GB ROM)
Blur_Version.14.71.8.falcon_umts.Retail.en.DE
techguyone said:
What ROM are you on? I'm still trying to figure out how some people can mount, read & write & others can't. (I'm on a tesco UK 16GB ROM)
Click to expand...
Click to collapse
I'm also 16 GB tesco... I wonder if it's software or hardware problem...
Software clearly as others can Mount, read & write. Maybe when we get the KK update it'll be resolved.
Sent from my Moto G using XDA premium 4 mobile app
I wrote on Moto Care and they gave me ticket to send on warranty. On the bottom I'll quote the mail because it has some interesting details about warranty.
But I did not give up and I think I found out the solution!!! It looks like this app is working flawlessly: USB Stick Plugin-TC (TRIAL). It's plugin for Total Commander but works without any problem on Moto G!!! The most important feature is that it does not need root. I hope that this will work for everyone
Anyway, people reporting that they don't have any problems - what apps do you use? I'd like to have a standalone and possibly free app for USB OTG management.
ATTACHEMENT:
(...)Motorola will repair and return your phone free of charge under the warranty conditions. If in the event that your phone is found to be out of warranty by the repair centre then please be advised that a quotation and handling charge may be applied. Any damage caused by using unauthorised operating systems, tampering or altering the device firmware will void your warranty and you may be charged for repair.
You can expect the phone to be repaired within 5 working days from its arrival at our repair centre but please allow additional days for postage. Please also note that Motorola do not accept claims for losses incurred by customers not following the process detailed in this message.(...)
Click to expand...
Click to collapse
Moto G Otg FIX FOR USB STORAGE DEVICES WITHOUT APPS/ROOT
vampy2k5 said:
First I have to say mounting a usb stick over a otg cable is no problem.
THe problem I have is that when I mount a usb stick the first time it mounts to usbstick_1.1.1.
Al right till then, but when I disconnect the stick and want to mount it again, no chance!
I need to reboot then it works again.
When I mount the usb stick with stickmount pro i have a other issue.
It mounts then to /sdcard/usbstorage/sda for the first time.
But when i disconnect the stick, the next time I connect it it mounts to sdb and so on.
I need a FIXED mount point for programs like spotfiy.
I need the music database on the same place when i conenct my meenova so the app can find the stuff.
Anyone has a solution for this?
THANKS!
Click to expand...
Click to collapse
The method which I am telling you is for usb storage devices.....It needs formatting, so backup your data.
Step 1:Install EaseUS Partition Master Free Edition>> (Since new user so cannot write url , but you can google that)
Step 2: Plug in your usb device properly. Open the program and click DELETE
Step 3:Then click CREATE....a dialog box will appear
Step 4:IMPORTANT: Select "PRIMARY" OPTION IN "CREATE AS:" and Select "FAT32" in "File System"
Step 5:Click "OK" and click "APPLY"
Now your usb stick works in moto g........you can see "preparing usb drive". You can locate usb drive in device\storage\usbdisk
Orignally posted by me Share if you want
tried this method and still doesnt wrk
also i installed the nexus media importer app and that shows my otg flash drive but doesnt read it
this is really weird because my dell venue 8 tablet that has 4.2.2 can read the usb storage lickety split

Categories

Resources