[WIP] UMS/MSC storage - Samsung Galaxy Nexus

First off: UMS/MSC is USB Mass Storage/Mass Storage Class
This is something I've been working on. We don't have UMS. And, I want UMS. Google/Samsung's reasoning was they didn't want to make us choose between internal storage for apps, and external storage for music.
The one flaw that comes with this is that we lose UMS. UMS requires a block device that can be unmounted from the phone and mounted to the host machine (Windows/Linux/Mac).
We can get this back relatively easy I believe without re partitioning our phones. I don't want to play with partition tables, because there isn't an easy way that I know of to restore it to stock.
To get technical: /sdcard on the Nexus is just a symlink to /data/media. We can break that symlink, modify the fstab and init.rc to mount an image file to /sdcard, then modify vold to allow us to mount that image file to windows. The downside: we'd lose what google/samsung thought was an amazing idea: not making us choose between sdcard storage and internal app storage.
I guess why I'm posting this: is anyone interested enough for me to actually do this?

What exactly is the benefit? Could you explain?
Sent from my Galaxy Nexus using XDA App

lonnyrs said:
What exactly is the benefit? Could you explain?
Sent from my Galaxy Nexus using XDA App
Click to expand...
Click to collapse
Sounds like a ext but to the sdcard instead of the data partition..
Sent from my vzw Gnex.

sounds interesting! the convenience of having UMS is definitely missed. as long as everything functioned "normally" I'd do it.

Yes please! Especially if u can do it so that it'll also work in clockwork, might be easier. It would make everyone's life easier, and I bet a lot of devs would end up baking it in to their roms!
Sent from something, using something, from somewhere!

If I am reading this correctly this would essentially make that folder act like it would under an external SD card meaning once I mounted it to windows I would lose all access until unmounting it from windows?

More options are always good, but honestly I've gotten used to MTP and not having to mount and remount as well as not having to worry about swapping between internal storage and sdcard. I say do it just so we have options as users, but I'm not really sure I'd use it over the current methods.

staticx57 said:
If I am reading this correctly this would essentially make that folder act like it would under an external SD card meaning once I mounted it to windows I would lose all access until unmounting it from windows?
Click to expand...
Click to collapse
You got it. You could even use the folder as /sdcard and programs wouldn't know the difference.

zifnab06 said:
You got it. You could even use the folder as /sdcard and programs wouldn't know the difference.
Click to expand...
Click to collapse
This would be very very nice for Linux users as mtp can be a pain to transfer files with. And adb isn't exactly the fastest for large files.
Sent from my Galaxy Nexus using XDA App

Great idea. Mtp sucks
Sent from my Galaxy Nexus using XDA App

Would love this to use with my MacBook Pro.

I'd use it.
Sent from my Galaxy Nexus using xda premium

Yes pleaseeeeee!!!!!!!

You should work for Google. I think that's how they should've shipped the phone.

Great idea. That would make device recognition much easier in Linux. It's a real pain trying to get it to pick up GN on Debian. If you get it working maybe I can have your permission to use it in my git for my rom compilation?

Be nice, current method with Macs is painful.
Sent from my Galaxy Nexus using xda premium

cricketsmoke said:
Be nice, current method with Macs is painful.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
i agree its no picnic. but its better then nothing

Pithism said:
i agree its no picnic. but its better then nothing
Click to expand...
Click to collapse
Whats the problem with it? I got a Mac and I have no issues, it's quite easy in fact.

franciscofranco said:
Whats the problem with it? I got a Mac and I have no issues, it's quite easy in fact.
Click to expand...
Click to collapse
i dont mind it either, i just rather it mount like a sd card. so it actually mounts like a Hard Drive

Yes thanks in advance
Sent from my Galaxy Nexus using xda premium

Related

[Q] No sd-ext found. Skipping backup of sd-ext.

Does anyone else have this problem? This happens when I make a nandroid backup. I just want to make sure that this is not something that will hurt my phone or keep me from being able to restore a rom. Any help would be appreciated.
Thanksyall
dave2metz said:
Does anyone else have this problem? This happens when I make a nandroid backup. I just want to make sure that this is not something that will hurt my phone or keep me from being able to restore a rom. Any help would be appreciated.
Thanksyall
Click to expand...
Click to collapse
I believe a nandroid only backs up your internal sd card. Its nothing to worry about. It wont hurt anything and wont cause any problems restoring a backup.
That means you don't have sd-ext is present on your sd card. EXT is simply a partition of a sd card so that you can dedicate the space to apps. Example, if you have a 2GB SD card and you partition your card to so that the 1GB will be available to apps. Other 1gb you can access it on explorer to store files, etc
Thanks for the info. How do I go about fixing it?
Sent from my SGH-T989 using xda premium
dave2metz said:
Thanks for the info. How do I go about fixing it?
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
create the partition cwm searches for when doing a backup.
Sent from my SGH-T989
Hmm. OK. Thanks
Sent from my SGH-T989 using xda premium
dave2metz said:
Hmm. OK. Thanks
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
You don't need one....you aren't fixing anything.
EXT used to be used back in the days of the G1 because it had limited space. Now a days, phones have a ton of space and it is not really an issue.
OK. Still confused ...what do I need to do to have my sd-ext recognized.?
Sent from my SGH-T989 using xda premium
You don't need to do anything. Its OK because the phone already has enough memory. This is for phones that don't have a large amount of memory. For example, the HTC G1 had like ~85 MB of memory for apps. So one had to create a separate partition on the memory card, EXT 3 or EXT 4 with at least ~500 MB to store more apps. With this phone, we get about ~1.90 GB. So there is no need for that. Anyone correct me if I'm wrong.
Sent from my SGH-T989 using Tapatalk
dave2metz said:
OK. Still confused ...what do I need to do to have my sd-ext recognized.?
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
It's attempting to back up something that no longer needs to be backed up because the information that was previously stored there is now being stored on your internal sd which IS being backed up. You don't need to do anything or worry about it, everything on your phone is being backed up except your external sd card (which no flash should touch and thus shouldn't need to be backed up). We all get the same message, it's nothing to worry about.
Wow lmfao this is comical xD answer the dude 3x n he still disnt get it xD
U want it fixed? Boot to cwm, Reformat sdcard, wen it asks for ext size put 512, swap size 0, issue "fixed" basicly useless tho on this phone, n the ext will probably b slower then the system storage, but u obviously want it to stop showin onn the log so there ye go, done
OK. Thanks for everybodies help.
Sent from my SGH-T989 using xda premium
LOL thanks homeboy...
Sent from my SGH-T989 using xda premium
yoft1 said:
It's attempting to back up something that no longer needs to be backed up because the information that was previously stored there is now being stored on your internal sd which IS being backed up. You don't need to do anything or worry about it, everything on your phone is being backed up except your external sd card (which no flash should touch and thus shouldn't need to be backed up). We all get the same message, it's nothing to worry about.
Click to expand...
Click to collapse
Thanks for that detailed information
galaxy ace, LG
could you tell me how to make a backup for apps on the sd card, my sister and girlfriend both have **** phones where they constantly run out of space or memory so they sometimes cant even receive sms messages, my girlfriend has a galaxy ace, she can't have to many apps because the memory is crap, my sister has a crappy LG phone which gives her really bad problems, how can i turn their terrible phones into half decent phones in order to release a bit of their sd cards for app management? any bit of help would be amazing, cheers guys

The point of having a micro sd card slot

is? If I cant see it in some apps or file explorer?
Root explorer and astro can see external. So does my apps
Sent from my SAMSUNG-SGH-I747 using xda premium
As does es file explorer
Sent from my SGH-I747 using Tapatalk 2
rambo8987 said:
Root explorer and astro can see external. So does my apps
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
Thanks, I now see astro can see my micro sdcard and I can install apps that way but why does samsung make their file structure so limiting?
corythug said:
As does es file explorer
Sent from my SGH-I747 using Tapatalk 2
Click to expand...
Click to collapse
es file explorer didnt see my card. Or at least I couldnt navigate up a parent directory.
The stock my files app can.
Sent from my SAMSUNG-SGH-I747 using xda premium
xshaftx said:
The stock my files app can.
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
Youre running stock? I'm wondering if stock doesnt have this problem. Didnt bother checking.
Some apps such as Root Explorer you will find it located at mnt/extSdCard. Also for some app settings you can point to that. It works for me anyway.
EDIT: Ok just downloaded ES File explorer and figured it out. If you're rooted check 'root explorer' on and check 'Up to root'. Once you do that you can go up to parent folder and select mnt. There you will find /extSdCard. :thumbup:
Sent from my SGH-I747M using xda app-developers app
Issue is your apps can't use external sd card which sucks and no current rom from what I read fixes this because it is a Google screw up on purpose in Ics and jelly bean. You can only use internal memory to install apps now and I am pretty sure Google is doing this on purpose so you store more in their cloud and they can harvest your data more easily for targeted ads. If you install a lot of games from game loft forget it your 16gb internal memory is shot quick and your large sd card is sitting there empty.
Sent from my SAMSUNG-SGH-I747 using xda premium
Create a folder called external_sd on your internal sd card and download the app ics sd binder and it will mount it to there
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
SysAdmNj said:
es file explorer didnt see my card. Or at least I couldnt navigate up a parent directory.
Click to expand...
Click to collapse
In ES Explorer you have to go to settings to allow "Root" in order to see your micro sd card in /mnt/extsdcard.
I'm certainly no expert here, but I don't think Google/Samsung have a conspiracy going. Coming from the Linux world, it's a common thing to mount storage under /mnt. The location of the external sd was also a bit weird on my last phone, the Moto Atrix. When it came out it took a while for app developers to adjust their programs to accommodate it (i.e., Titanium Backup). Hopefully the same will happen soon with the S III. As for the ability to move apps to the external sd, I'm not so sure that's a good idea anyway. For me doing that on any Android phone has always been somewhat problematic. I pretty much just use the sd for media storage now.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
SysAdmNj said:
is? If I cant see it in some apps or file explorer?
Click to expand...
Click to collapse
All my mp3 are on the the SD card, same for pictures and video clips.
Yup 100% stock. I didnt root it yet.
Sent from my SAMSUNG-SGH-I747 using xda premium
hunmin said:
In ES Explorer you have to go to settings to allow "Root" in order to see your micro sd card in /mnt/extsdcard.
Click to expand...
Click to collapse
I dont need root (I dont even have root access on this phone) and I can see my SD card with any apps and I never needed to mount the card either.
I dont know what you are all doing wrong.
rickwood said:
I'm certainly no expert here, but I don't think Google/Samsung have a conspiracy going. Coming from the Linux world, it's a common thing to mount storage under /mnt. The location of the external sd was also a bit weird on my last phone, the Moto Atrix. When it came out it took a while for app developers to adjust their programs to accommodate it (i.e., Titanium Backup). Hopefully the same will happen soon with the S III. As for the ability to move apps to the external sd, I'm not so sure that's a good idea anyway. For me doing that on any Android phone has always been somewhat problematic. I pretty much just use the sd for media storage now.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
Click to expand...
Click to collapse
Exactly what I was trying to say. Why cant we navigate to /mnt and pick our storage ourselves.
drakeymcmb said:
Create a folder called external_sd on your internal sd card and download the app ics sd binder and it will mount it to there
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Click to expand...
Click to collapse
Thanks appreciate the help.
Sent from my SAMSUNG-SGH-I747 using xda premium
sabre31 said:
Issue is your apps can't use external sd card which sucks and no current rom from what I read fixes this because it is a Google screw up on purpose in Ics and jelly bean. You can only use internal memory to install apps now and I am pretty sure Google is doing this on purpose so you store more in their cloud and they can harvest your data more easily for targeted ads. If you install a lot of games from game loft forget it your 16gb internal memory is shot quick and your large sd card is sitting there empty.
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
Or maybe they just don't want to make average users go through a file explorer if possible?
It's not a conspiracy, even if you think it is.
drakeymcmb said:
Create a folder called external_sd on your internal sd card and download the app ics sd binder and it will mount it to there
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Click to expand...
Click to collapse
How did i miss this reply, thanks that seems to help. Is there an original thread on this app or this issue by any chance?
SysAdmNj said:
How did i miss this reply, thanks that seems to help. Is there an original thread on this app or this issue by any chance?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1652079

Backing up Photos/Videos on Ubuntu

Hey guys, I know im not the only Ubuntu user out there, currently im running Ubuntu 12.10 Alpha 2 and most of us know that MTP is completely broken on Ubuntu, and im currently being forced to restart into windows 7 to copy my files over MTP. I know there is Airdroid, Solid File Manager FTP which I have used, but it takes forever when I transfer 10 gigs a video and pictures each month, is there a better way to backup all my files while in Ubuntu? I'm thinking I can use ADB pull, but is there any other solutions out there? I'd rather not transfer files over wifi since its slower than a USB connection.
Can you use the cloud?
Sent from my Galaxy Nexus using xda app-developers app
defconoi said:
Hey guys, I know im not the only Ubuntu user out there, currently im running Ubuntu 12.10 Alpha 2 and most of us know that MTP is completely broken on Ubuntu, and im currently being forced to restart into windows 7 to copy my files over MTP. I know there is Airdroid, Solid File Manager FTP which I have used, but it takes forever when I transfer 10 gigs a video and pictures each month, is there a better way to backup all my files while in Ubuntu? I'm thinking I can use ADB pull, but is there any other solutions out there? I'd rather not transfer files over wifi since its slower than a USB connection.
Click to expand...
Click to collapse
Use adb. Fast and stable transfers.
Sent from my Galaxy Nexus using Tapatalk 2
Mount an SD card?
danger-rat said:
Mount an SD card?
Click to expand...
Click to collapse
Not possible with the gnex.
Sent from my Galaxy Nexus using Tapatalk 2
Petrovski80 said:
Not possible with the gnex.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Yes it is. Just use an OTG cable and an SD card adapter (or thumbdrive)...
danger-rat said:
Yes it is. Just use an OTG cable and an SD card adapter (or thumbdrive)...
Click to expand...
Click to collapse
Ah yes. Thought you meant mounting the /sdcard partition of the phone as usb mass storage.
Sent from my Galaxy Nexus using Tapatalk 2
suggestion: openssh/openssh frontends, scp/sftp
// wireless and encrypted.

All JPEG files automatically deleted today - CM10

So today I noticed all my photos in my gallery app were greyed out... thought it was strange. Selected one... big grey pic... then another.... and another....
These pics span the internal storage and sd card....
First I deleted the cache to the gallery app.... same result...
OK... went into es file explorer.... dcim... camera..... all JPEGs gone....
Went into the sdcard..... have multiple folders under pics main folder... all empty... except for any video files...
Then mounted on my PC... and they also don't show.
What could of happened to cause this.... I wouldn't normally care but I lost a lot of pics of my kids... that spanned 3+ years that weren't all backed up. Any help on the snowballs chance in hell of recovering this would be appreciated.... but at the very least any reasonable explanation as to why this may have happened would be much appreciated.
Thanks in advance.
Sent from my SGH-T999 using Tapatalk 2
You could try pulling the sd card out, putting it in the computer directly, and then using a data restore or undelete app. As long as the sectors haven't been rewritten, they should be recoverable.
Also, this may help for the future. I use my phone to capture my kids as well. What I've been doing is using the auto upload features in both Google+ and DropBox, to back pics up in replicate. Sucks for bandwidth and battery usage, but it is what is is. lol
Hope you get them back!
Sent from my SGH-T999 using XDA Premium HD app
Forza Palermo!
Sent from my SGH-T999
Mi|enko said:
You could try pulling the sd card out, putting it in the computer directly, and then using a data restore or undelete app. As long as the sectors haven't been rewritten, they should be recoverable.
Also, this may help for the future. I use my phone to capture my kids as well. What I've been doing is using the auto upload features in both Google+ and DropBox, to back pics up in replicate. Sucks for bandwidth and battery usage, but it is what is is. lol
Hope you get them back!
Sent from my SGH-T999 using XDA Premium HD app
Click to expand...
Click to collapse
I will try that when i get the chance.... just wish i knew WHY this happened. So frustrating!
So i was able to recover my files on the external sd card with a card reader.... now how would i do the same on the internal card, if we cant mount it with usb mass storage mode?
GameOver69 said:
So i was able to recover my files on the external sd card with a card reader.... now how would i do the same on the internal card, if we cant mount it with usb mass storage mode?
Click to expand...
Click to collapse
There is a pc program called recova I think it's from pirova. I wiped my phone once and was able to do the deep scan and recovered them. Hope it helps good luck.
Sent from my SGH-T999 using xda premium
GameOver69 said:
So i was able to recover my files on the external sd card with a card reader.... now how would i do the same on the internal card, if we cant mount it with usb mass storage mode?
Click to expand...
Click to collapse
Unfortunately, I don't think that one's doable with the way the device mounts. You may be able to mount it as a drive via recovery, but I'm not sure.
Edit: Just noticed your other post. You're asking the right thing. Hope you get an answer. If CWM doesn't have it, you could try TWRP.
Sent from my SGH-T999 using XDA Premium HD app
Mi|enko said:
Unfortunately, I don't think that one's doable with the way the device mounts. You may be able to mount it as a drive via recovery, but I'm not sure.
Edit: Just noticed your other post. You're asking the right thing. Hope you get an answer. If CWM doesn't have it, you could try TWRP.
Sent from my SGH-T999 using XDA Premium HD app
Click to expand...
Click to collapse
Recova is what i used on the SD card and worked perfectly.
Also, i flashed TWRP... and the option isnt there either, so i will assume that its not possible on our phone yet... so for now im screwed...
am afraid to install any new programs or files, in fear of losing my more current pics, which were internally.
That happened to me too, but i am using the GS2 Tmobile, after flashing cm 9 nightlybuild. but my picture on my sd card, so i guess will use recova.
Thanks and hope you get your pictures recovered.
Sent from my SGH-T989 using xda premium
It sucks that you lost quite a few pictures that mean a lot to you. I do see sincerely hope that you now understand the importance of backing up these important files. This really goes for everyone. Keep important files backed up in at least one other place, and keep it up to date. Most people don't start doing backups until they've lost something that's irreplaceable.

[Q] Enable USB Mass Storage Mode in AOSP(A)

I'm having trouble with MTP using the latest version of Paranoid Android, it's SO slow, I just copied a 5MB file to the phone and the transfer lasted like 15 seconds, also, I really don't like that "media" layer thats added, I need to make some space in my internal storage/SDCARD and I can't even use a program to calculate the folder sizes, I want direct access to it, just that, I don't understand why it's not available in AOSP.
Well, I searched and someone said "hey, mount the storage/sd with recovery", ok, here we go. And nope, last TWRP doesn't work for some reason. OK, lets go back to CMW. And nope, again, can't mount them, it just won't work, nothing happens when I check the mount button...
Also I read that using the "Fix permissions" fix may solve it, well, it doesn't, tried that with both recoveries.
So, is there any way to enable USB Mass Storage Mode? Also, why is MTP SO DAMN SLOW? I've searched and I'm not the only one thats having this problem it seems.
Thanks.
Anyone?
Samsung made it like that, you cant do nothing about thet so far.
Sent from my GT-N7100 using xda premium
gefilus said:
Samsung made it like that, you cant do nothing about thet so far.
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
Can you explain a bit further about that? What did Samsung do?
Cant sorry, samsung made your sd car like a media storage not all file storage, more for music, movies, pictures, thats one of the reasons why samsung wont let you save apps on sd card.
Sent from my GT-N7100 using xda premium
gefilus said:
Cant sorry, samsung made your sd car like a media storage not all file storage, more for music, movies, pictures, thats one of the reasons why samsung wont let you save apps on sd card.
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
Well, thats a crap sad, thanks for the explanation, I guess that I should use an external sdcard reader :S

Categories

Resources