usb mounting question gnex to ubuntu - General Questions and Answers

Ok this is kind of an odd question.. because of my galaxy nexus inability to mount as external storage i have been messing around with stick mount, which works excellent btw. I was curious if it is possible or if anyone has tried to use their pc as external storage. Not sure if this is possible but i was thinking maybe I could partition a spot on my hdd that could be mounted to my phone via usb. Pretty much creating a "flash drive" on my computer that could be accessed perhaps by any usb device that supported external mounting. I run ubuntu on all my computers so linux instructions would be nice Again not sure if this is possible but maybe one of the geniuses on here has tried it or could figure it out Any feedback is appreciated and im sure there are other users that could benifit from this. Thanks in advance.

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

I am Freakin Lost.....

Ok Guys,
I have just done the rom swap on my tablet. Everything went fine and thanks to the easy direction builder....worked great. I have a few questions because I am lost. Please help me understand what I have here and how to fix the broke things if they are actually broke.
I can't read a usb jump drive from the usb port
My computer does not see the tablet now that I have changed the rom
Now for my lost part. I am trying to figure out how to move things around on this unit but I can't seem to make the sdcard and sdcard2 make sence. When I dismount the sd card I loose stuff on both sdcard and sdcard2, but when I mount the card again I get back stuff on both. I am trying to figure out which is which. I have heard the sdcard2 in the external but it just does not figure in my head. I hit the home button on the file manager and it brings up sdcard and sdcard2 along with a lot of other stuff. When I click on sdcard it shows all the stuff on the mini sd I have installed and when I click on sdcard2 it shows DCIM & LOST.DIR. That seems to be the internal but it is listed as sdcard2...what gives. Someone please get me up to speed. Also I had some tunes on here and there was cover art that showed when it played and now it is gone......no idea as to where it went.
Sorry for the newb questions but I have never had a tablet like this and it is all new to me.
Thanks
Brad
redbullsushi,
First, if you want more help you will have to give more info. You don't say what rom you are using, etc. That would help.
Second.....when you look at the file manager:
/sdcard -- is the internal memory of you tablet.
/sdcard 2 -- is the name assigned to the miniSD card slot with the external miniSD.
/usbdisk -- is the USB key (large) port.
Don't know why they named them that way but might as well get used to it!
Now sort out what you can and get back here with more info on your G-Tablet and the software on it.
Rev
Yea sorry about that
I am running Vegan 5.1
And I had read about the strange names but mine seem to be backwards. Everything that I think is on my minisd is listed as sdcard.....when i dismount my sdcard in the system I don't see all my stuff anymore and the sdcard shows a blank folder. The sdcard2 still shows the DCIM and LOST.DIR. So it appears to me to be backwards.
I also got the usb storage to work by mounting it in clockwork but the usb connection to my computer is still not working.
Thanks
Vegan does not properly display the microsd storage in the System Settings. When you dismount the sdcard in Vegan from the System Settings, it will dismount the internal storage as this is option in the settings is not referring to the external micro sd. You don't need to be dismounting the sd card in your settings really.
While in Vegan, when you connect the USB to your computer, a notification should pop up in the tablet to enable USB storage, you need to make sure this is turned on, then your pc should see the tablet, and it will see your internal memory (/sdcard).
Turn off your tablet and remove your microsd card and plug it into a card reader, I'm guessing you'll see the DCIM folder.
Ok,
so got the usb working...mine did not offer the turn on option. i had to pull the toolbar down from the top to enable that. should i have usb debugging on?
also, my computer does not read sdhc cards so if anyone has some info on updating a machine running win7 to read that it would be helpful. i have tried both my on board reader and my usb reader and neither work. i assume they are out dated and i need to buy another reader?
that being said how do i see my minisd on the machine other than it is listed as sdcard not sdcard2. i know this because when i hooked to the usb and connected to my cpu i saw all of the things that are listed on sdcard2.....arg
so i must make the assumption that sdcard is my external and sdcard2 is my internal?.......is that right?
Thanks
Also,
I have tried to move some tunes from the sdcard to sdcard2(external/minisd) and it says file cant be moved. I also don't see anywhere that my minisd size is listed......I know this is all noob to you guys but wow this is frustrating. I appreciate the help very much.
Thanks
that being said how do i see my minisd on the machine other than it is listed as sdcard not sdcard2. i know this because when i hooked to the usb and connected to my cpu i saw all of the things that are listed on sdcard2.....arg
Click to expand...
Click to collapse
You're not making much sense to me. Maybe I'm reading this wrong...you're asking how you can see your microsd on your pc (it's microsd, not minisd, minisd is a different format), but at the same time you do see it on your pc (which shouldn't be the case).
On your tablet, what do you see in the /sdcard folder? What do you see in the /sdcard2 folder? On your pc, what do you see when you've connected the tablet to your pc?
Sorry again.......i meant micro not mini. When i look at sdcard i see a bunch of files. When i look at sdcard2 i see the DCIM file. So when i connected to pc i took out microsd to make sure i knew what i was looking at. So sdcard is internal and sdcard2 is micro like you said. I am trying to get used to this.
My struggle now is the 2 avi apps dont play the avi i downloaded. I am also finding apps that wont install, and they seem to be the best of what i need ie: pdf ereader and avi video player. And i cant move files from sdcard to sdcard2.
And let me say dude thanks for your help and i hate you were the poor bast*rd that has tried to help. I appteciate it and if it woild be easier for you to chat on phone i will PM my cell.
Thanks
Get vitalplayer from the market. It plays videos well. My divx/xvid files play well using vitalplayer. It's also dependent on how your videos were encoded.

[Q] How to mount only external SD?

Whenever I plug in the phone to my computer via USB, it loads it as two separate drive letters. This is fine and good for the PC side of things.
The problem is that I want to be able to use the phone's external SD as a mass storage device that attaches to a new car's USB port. The car always throws back an "unsupported" error, and I'm betting it has everything to do with the fact that the phone tries to mount the 2 cards. The car just doesn't know how to handle that information.
So, does anyone know of a tweak or setting that would force the phone to only mount one or the other, preferably the external?
I've removed the external SD card and plugged the phone in to the car. It doesn't error out now, but I didn't give it ample time to find music hidden in the internal SD.
That being the case, I still would like to know if there is a way to disable USB mass storage for one or the other without having to shift things around all the time. There's a reason why all of my music is on the external SD--it's a 16GB card and I have a ton of music.
The only way I can think of is by mounting it in clockwork recovery console. That would give you access to the music...but you'd lose the functionality of the phone during that time, so doesn't seem like it would be a viable route for you to take...but I suppose if you wanted to do bug testing to see if your external WOULD mount to your cars usb, that's one way to check that out.
Hope this helps.
I'll give that a try this afternoon. You're right, though, it does defeat the purpose--I'd really like a functioning phone while I drive. I'm sure there's a way to adjust this, I just don't know enough about the inner workings to make it happen.
Hello devitec,
I have the same Problem in a BMW with a Samsung Galaxy SII phone. I have no satisfying solution but I can use below workaround.
The BMW cannot mount both drives, but he chooses randomly one of the two. Because there are no music-files on the internal sd, it gives me an errormessage. On every second try i get the external sd which is browsable like a usb-stick. The album- and artist-informations are not parsed for the BMW-filterfunctions, so i can only choose by directory.
I hope this workaround will also work in your car.
max01001111
P.S.: The Samsung galaxy SII has to be in debug mode to mount without kies-support.
what if you guys try to unmount the internal sd before you connect ur phone to ur car?
Sent from my LG-P999 using XDA App

[Q] External HDD?

Hi,
I was thinking of buying an external hdd to connect to my TF, however, try as I might, I can't find anywhere that confirms that it will work. I don't want to shell out for one and have to send it back if not.
Thanks in advance.
kingronnie said:
Hi,
I was thinking of buying an external hdd to connect to my TF, however, try as I might, I can't find anywhere that confirms that it will work. I don't want to shell out for one and have to send it back if not.
Thanks in advance.
Click to expand...
Click to collapse
I can plug my portable USB hard-drive directly into either of the USB ports on the dock and it works fine. It appears in the notifications area as a hard-disk icon. Clicking on this shows me all the files on the drive. I was able to start watching an mp4 video from the HDD, although I didn't watch it all the way through.
That's great news
Just out of interest, did you format it using the TF, or was it pre-formatted? If so, are you using FAT32 or NTFS?
Sorry for the barrage of questions!
kingronnie said:
Hi,
I was thinking of buying an external hdd to connect to my TF, however, try as I might, I can't find anywhere that confirms that it will work. I don't want to shell out for one and have to send it back if not.
Thanks in advance.
Click to expand...
Click to collapse
A quick search for HDD shows the following:
http://forum.xda-developers.com/showthread.php?t=1067975&highlight=hdd
Thanks. I'd searched for Hard Disc.
Sorry to be a pain.
interestingly though, honeycomb doesn't automatically mount the external harddrive unless it's fat32 or NTFS. No idea why this is the case as ext 2/3 are clearly supported.
Regardless, I was able to manually mount my external HDD once I found out where the device was.
Is anybody familiar with the auto mounting scripts enough to know offhand where you would look to add ext support? My knowledge of this kind of thing ends with fstab unfortunately and I don't know too much about how honeycomb works yet as I just got my transformer yesterday night.
Both NTFS and FAT32 are supported.
I was really glad NTFS is supported out of the box.
I use both Toshiba portable HDD and WD portable HDD and have no problem.
Just to update, I bought a 250G Seagate laptop drive and put it in a caddy, hooked it up and it worked and mounted first time

[Q] [Verizon] Disc Drive and External USB

Hi. I've searched but found no answer so here is my thread . So I am somewhat unhappy with how my Verizon GSIII is behaving. Since day 2 I learned I cannot connect this phone as a disc drive on WIndows or Linux. The only options I get when connected via USB to a computer are Media device (MTP) and Camera (PTP). My friend show me his ATT GSII last night. It connects as a disc drive (regular flash drive behavior).
When connecting an external HDD via USB Android should recognize that drive as a mass storage device. His ATT SIII did this, my Verizon SIII did not. I got the message in the notification area "USB Connect" followed by "USB Disconnected." Thankfully, I have no files I want to transfer onto my device as I'm coming from an HTC Incredible, but in the future I will want to browse my file system on my laptop.
Am I the only one here with these issues? I am not rooted.
-Justin
Edit: I found an article which looks like I can browse the external SD Card but not hte internal memory. This is only for root users however. Enable USB Mass Storage for root.
If your Galaxy S3 connects as mass storage, post the carrier.
My S3 shows up as separate internal and external devices when I plug it into my USB port and is listed as SCH-I535 when ejecting. However my Nexus show up as an MTP device when ejecting. Both devices are rooted.
So there may be hope. I'm going to root today, well try to. Can you link me to the ROM you flashed so I have a higher possibility of achieving what I want?
Will every build ROM found in the developer section here get rid of the OEM functionality?
I have the same 2 options as you when connecting to a PC, but, when connected windows will pop the "browse for files" instantly and the 2 drives will be displayed under Computer, one for the internal SD and for the external.
This was like this from the first time i plugged the phone in, before root, same after.
It actually seems like we get to skip the step of "Enable USB sharing" which I find great, plug in and the drives pop.
JMooney5115 said:
So there may be hope. I'm going to root today, well try to. Can you link me to the ROM you flashed so I have a higher possibility of achieving what I want?
Will every build ROM found in the developer section here get rid of the OEM functionality?
Click to expand...
Click to collapse
I used root66 to do mine.
However I had access to both drives prior to doing the root update.
Both of you seem to have more luck than I'm having. When I plug it into Windows I had no way of browsing files. In (K)ubuntu when I plug it in a popup has an option to browse which takes me to 1 folder names 'USB PTP Class Camera' which I can get to the internal storage, but not the SD Card. I'll be making a trip to Verizon today for sure. It makes me wonder if a rooted stock image from Samsung would fix the issue.
Quick question.
Which drivers did you install?
Why do I need drivers, I'm not doing anything but reading the flash memory? It should just work in both Linux and Windows.
Note that the guide to enable UMS on the S3 is for the International version, not the US version. The US version doesn't yet have a UMS option.
You shouldn't (and don't) need drivers for the SD storage to show up on your computer.
Just to test it I connected my S3 to my gf's laptop running W7, both drives popped right away there too.
I just want to make a note: Can't remember exactly what I did but after a few drivers on my AT&T SGS III I am able to just plug into my computer and move files around.
Can anyone helo me transfer video files...pic files i can transfer but all the video files wint...i get an error message on the computer ( pc ) and my s3 says syncing and does nothing. Its a verizon gs3.
skillzo1: How are you trying to transfer these video files?
Madcat81 said:
Just to test it I connected my S3 to my gf's laptop running W7, both drives popped right away there too.
Click to expand...
Click to collapse
Thanks for the test. Just to be sure, you have a Verizon S3?
JMooney5115 said:
Thanks for the test. Just to be sure, you have a Verizon S3?
Click to expand...
Click to collapse
Sure do.
ICS devices use MTP to transfer files, not UMS. I have a verizon S3 and the drives appear when I plug it in. I had USB debug mode enabled and when I plugged it in it automatically downloaded and installed drivers and worked after that. You shouldn't need root to do all of this.
kthung, thanks for that tid-bit of information. Now how do I do this in Linux? I can browse internal memory, but not my micro SD card via USB.
JMooney5115 said:
kthung, thanks for that tid-bit of information. Now how do I do this in Linux? I can browse internal memory, but not my micro SD card via USB.
Click to expand...
Click to collapse
Hmm unfortunately I don't really know anything about linux. Maybe check this thread out http://forum.xda-developers.com/showthread.php?t=1785243

Categories

Resources