Replace default '/sdcard' mount - LG Optimus Black

Hi guys!!
Long story short; Phone went swimming and hardware reading the sdcard got messed up. The phones works decent otherwise but many many applications need to put some form of data on the sdcard to work so simply put my question is;
Can i mount an image from internal memory (for example from /data) as a virtual SDCard?
Ive already fiddled with this for quite a bit but i am completely unable to unmount the default sdcard mount, nor am i able to locate where the OS mounts this from in the first place.
Now i know how to mount an image for storage under the default SDcard mount on some android other devices (/data/storage.img under /sdcard/storage for example) but what id like to do is mount an image as an SDcard as mounting it under it is not possible without a functional sdcard in the first place.
Phones is rooted ofc. Thanks for the help in advanced guys!!

Unroot and send to repair?
Sent from my LG-P70 using xda premium

RomWiz said:
Unroot and send to repair?
Sent from my LG-P70 using xda premium
Click to expand...
Click to collapse
Well obviously water damage is not covered under LG warranty and local repair-shops asked repair prices over half the cost of a new phone... And yes i know having something fixed by someone else or buying a new phone is easier but i figured that what im asking for (mounting an image as sort of a virtual sdcard) should be very much possible right?

Related

Slow sdcard mounting

After i updated to froyo during the pre-release days its been taking a MUCH longer time to mount my sdcard to my desktop. It can take up to a minute or longer when in the past it only took a few seconds, just like any standard USB flash drive.
I tried formatting the sdcard via the phone, but when i click "unmount sdcard" it just says unmounting sdcard and it stays that way forever. I exit the screen and go back, and i have to press unmount sdcard again which delivers the same results. So for some reason i can no longer unmount my sdcard via the phone. So i tried mounting the sdcard to my desktop, backed it up, and formatted it via windows before copying back all my files and apps. I tried mounting the sdcard to my desktop again but it still takes forever to mount.
To ensure the sdcard isnt damaged, i took it out of the phone and plugged it into a card reader. Windows detected the sdcard immediately and behaves just like how its supposed to.
So whatever the problem is, it lies with the phone itself. I tried googling around for answers but found none. Any help would be appreciated.
Running stock N1 on FRF91.
BUMP
No one really? :/
You using apps2sd? If so, it has to do lots of mount/unmount work, one mount per program moved.
It makes it much slower to prepare the drive for the PC and to return it to the phone. Since going to apps2ext on Enom's rom it's as fast as it was on 2.1 before apps2sd.
khaytsus said:
You using apps2sd? If so, it has to do lots of mount/unmount work, one mount per program moved.
It makes it much slower to prepare the drive for the PC and to return it to the phone. Since going to apps2ext on Enom's rom it's as fast as it was on 2.1 before apps2sd.
Click to expand...
Click to collapse
Yeah i shifted 100MB+ of apps into sdcard, i have to if not i wont have any space in my internal memory. And all of that is causing it to slow down? So is there any work around to this?
The more the app on the sd, the slower the USB mount... the system look for all active/background apps installed on the sd and terminates them before mounting...
The workaround (the better solution, actually) is to use Apps2SD+ method (EXT3 partition for data) instead of regular Froyo Apps2SD.
Jack_R1 said:
The workaround (the better solution, actually) is to use Apps2SD+ method (EXT3 partition for data) instead of regular Froyo Apps2SD.
Click to expand...
Click to collapse
Damn but i need to root first right? So im pretty much screwed until my warranty is up. Because i'll definitely push more apps into my sdcard to free up space.
You need to root, and you can root without unlocking - which means preserving your warranty (not that it matters - phones with unlocked bootloaders are repeatedly reported as serviced with no charge, as long as they have known HW problems)
Jack_R1 said:
You need to root, and you can root without unlocking - which means preserving your warranty (not that it matters - phones with unlocked bootloaders are repeatedly reported as serviced with no charge, as long as they have known HW problems)
Click to expand...
Click to collapse
Ahh i see. Thats good to know, I'll take note of that. Thanks. Maybe i'll go check it out.

[Q] Convert SDCard to MainMem so External_SD becomes SDCard?

Hi there,
Is there a way to make the add the internal SD card to the main memmory? So that there would not be an internal SD card anymore?
I do not mean swapping the moutpoints around so my External_SD becomes my primary and my internal my second....
I want to get rid of the internal one alltogether (adding it to main memory).
I figure that I'll have to format the storage in a certain way... would that do it?
Can someone tell me step by step what to do?
I do have CW-mod installed.
I did search the forum, but couldnt find anything conclusive. Just hints that it should be possible...
If there already is a thread where all this is explained, please point me to it, because I couldn't find it.
Thanks,
Pfeffa-rah
I don't think this is possible , never heard of someone who did it
I have no idea how to do that. My question is... why would you want to do that?
Having an internal_sd partition adds the benefit of having big app data (such as those in Gameloft games) sit in a very fast partition and still be called "sddata".
Also, it's mountable via PC so everything in there can still be backed up. So it's best of both worlds really.
This was discussed some time ago in this thread: http://forum.xda-developers.com/showthread.php?t=1013575
There were ideas on how to remount the cards at boot. I myself come to the conclusion that since more phones start to behave in this way, app developers will have to start dealing with it. It just sucks they are mostly slow on the uptake. My main problem was the Spotify cache location being hard coded so I resorted to hack the Spotify apk.
PS. salisbury_steak: What is it with people like you that every time someone has a question on how to do something, your immediate response is "But why would you want to do that?!".
sorech said:
PS. salisbury_steak: What is it with people like you that every time someone has a question on how to do something, your immediate response is "But why would you want to do that?!".
Click to expand...
Click to collapse
That was actually an honest question.
I wanted to understand why he wanted to do it. (i.e. What would be the advantages of it.) There was no supposed sarcasm in there.
how about the ability to install 5x more applications?
Having that stupid 5gb partition as sd card and the real sd card as a sub folder is retarded...
My 32GB class 10 cars is a lot faster than the internal one.
The internal 5gb memory is MUCH TOO SMALL!!! Most apps don't allow you to store data on the external card. If you like me and many others install some games that download aditional data + a nav app that downloads maps for europe + some streaming music app like wimp that can cache music for offline play then you are ****ed with LG's setup.
The setup CM7 uses solves the main problem but effectively wastes the 5gb by mounting it at emmc where like 0,0001% of apps are able to access it.
So adding those otherwise wasted 5gb to the main memory would be great. But i have not seen any solution to that yet :-(
Thank you Gensplejs for explaining that to them. I had no idea how to reply to that since it seemed so obvious to me.
This thread was ment to be a question about how to do it and not to discuss the usefullness of it. That is where I lost the way in other threads...
So, thanks for your replys all (realy).
But now, back On-Topic:
How would I do it?
Sent from my LG-P990 using XDA Premium App
Please don't blame me if you tried it and you screwed up your phone.. It's your choice...
Well, I don't know if this would work, but this is how I would do it (accepting the fact that I'd loose almost 2GB of /data's free space):
1. Format your internal sd card to the same file system as your /data partition is (ext3 or ext4)
2. Copy every file from /data 1:1 to your sdcard (cp -R /data/* /sdcard)
3. I don't know when and where the partitions are mounted (maybe init.rc??)...anyways change the target there and let /data point to the internal sd card partition (so it is ensured that it is mounted automatically to the new location)
4. Reboot and keep your fingers crossed
I think i figured how to do it in theory. First we need some free space at our microsd to cp /data. Then we should repartition with fdisk /dev/block/mmcblk0p8 and p9 into one partition and change vold.fstab to mount only externalsd at /sdcard as we do when we swap partitions. In theory it should work but i cant test it right now or make a script since ve gone vacations and i dont have a pc to restore in case of error
I agree.. certain apps wont store to sdcard.. its better to use the whole 8gb as phone storage, and use external sdcard as default sdcard.
Sent from my LG-P990 using XDA App
What ive found till now is that sd swapping is easy. You can do it by tweaking only vold.fstab. But repatriationing is a pain in the ass. Looks like lg has "faulty" partitions or something and to do it you must mesh up with with almost half partitions.
I had to rebuilt boot lgdrm recovery data and sdcard to make em half work. So it probably isnt worth the trouble. Also I think init.rc is built on the boot. So just remounting internal sd to /data wont work either.
sectors is not space
it says 7996, so thats 8GB
i saw it in hurry. the brain sometimes belives whats he want to belive
sorry
New to XDA
Hello everybody,
I'm new to android and i'm trying to find out how to solve the problem posted in this thread.
I see you've got the awnser but i don't know how to do this.
I've been searching google and XDA for ever but i just can't find the awnser.
Could you make a step by step howto or point out to a post how to do this.
I mean converting your external sd to ext4 and change the mounting points.
I'm a complete nood, i didn't get adb to work on my pc, ext4 recovery is not for the p990 2x.
I've read something abbout changing fstap for swapping te mounting points for sdcard and emmc, witch is also ok for me, but formating to ext4... wel i frankly don't know how to do this.
I'm quite stuk on this.
The only partitioning experience i've got is Gparted in Ubuntu or repartitioning in Windows 7.
Thans in andvance!
Greetz,
JMG
http://android.modaco.com/topic/347...-partitions/page__gopid__1821791#entry1821791
check this
you can expand data partition , but there is a limitation of 1.75gb
Thanks davjan
Thanks davjan,
As far i can see it's indeed not worth it.
I wil have to go on and try to find out how to change the filesystem to ext4 and swap the internal and external sd.
That way i get more usable space instead of a big datastorage witch cannot contain program data.
But thanks for the quick reply.
Jean Michel Gaar said:
Thanks davjan,
As far i can see it's indeed not worth it.
I wil have to go on and try to find out how to change the filesystem to ext4 and swap the internal and external sd.
That way i get more usable space instead of a big datastorage witch cannot contain program data.
But thanks for the quick reply.
Click to expand...
Click to collapse
what rom are you using? is your phone rooted?
swapping internal with internal sd is very easy
and most of the roms here on xda are ext4 , if you instal one of them they autoconvert to ext4
Jean Michel Gaar said:
Thanks davjan,
As far i can see it's indeed not worth it.
I wil have to go on and try to find out how to change the filesystem to ext4 and swap the internal and external sd.
That way i get more usable space instead of a big datastorage witch cannot contain program data.
But thanks for the quick reply.
Click to expand...
Click to collapse
I you read the link provided you'll see that it makes what you want: grow internal filesystem = lower SDcard usable space. The only thing is that it doesn't seem possible is to use the whole space: system limitation. 75Markus tried high /system and /data values and phone didn't work.
See in his Mediafire Folder, 'Nvflash + guide for changing Partitions:
http://www.mediafire.com/75markus
Ext4 is now common with custom ROMs (in fact all of them).
You should search in sd-ext partition system, which was designed to artificially expand filesystem on older phones using an 'ext' partition. I didn't heard anybody using this on O2X.
If you use CyanogenMod based ROMs, your external card will be mounted ad /sdcard by default.
Switching internal and external SD
Thanks guy's,
I'll check it out.
I've been using cyanogenmod 7.1 stable with vorkkernel 20110208.
But that gave me batterydrains while using maps and nextvid ate the same time (while i'm driving).
Now i'm trying MIUI 1.11.11 with latest swift extreme.
But MIUI is very buggy so i'm thinking of going back to CM.
The only thing is that my phone won't boot with the latest vorkkernel.

Droid X2 SD Storage Flip-Flop

I was wondering if a dev would be able to come up with a SD Storage flip flop for the Bionic? I had always used the modified app that navenedrob had posted here for my Droid X2,
http://forum.xda-developers.com/showthread.php?t=1229294
I'm hoping someone could come up with this for the Bionic.
Sent from my DROID BIONIC using XDA App
I'd also second this.
Sent from my DROID BIONIC using Tapatalk
Terri M said:
I was wondering if a dev would be able to come up with a SD Storage flip flop for the Bionic? I had always used the modified app that navenedrob had posted here for my Droid X2,
http://forum.xda-developers.com/showthread.php?t=1229294
I'm hoping someone could come up with this for the Bionic.
Sent from my DROID BIONIC using XDA App
Click to expand...
Click to collapse
I would like to "third" this.
Fourth?
Sent from my DROID BIONIC using xda premium
sd flip flop
i would love to have the flip flop. it would fix a few things
Count me in!!
Sent from my DROID BIONIC using Tapatalk
+1 for me.
What a pain in the ass the two storage systems are.
I haven't tested this but it's just a theory since Linux is generally pretty flexible. Hypothetically you could just use the Terminal to unmount both the storage spaces, and then re-mount them but switch the addresses. See here:
/dev/block/vold/179:1 is the address of the external storage, named '/sdcard-ext'
/dev/block/vold/179:58 is the address of the internal storage, named '/sdcard'
so you could HYPOTHETICALLY type into the terminal:
su
unmount /sdcard-ext
unmount /sdcard
mount /dev/block/vold/179:58 /sdcard-ext
mount /dev/block/vold/179:1 /sdcard
and it should mount the two in each others' locations.
Again, I haven't tested this and my phone is on the charger right now so I'm not going to yet, but assuming that works it would probably just restore itself to normal when you reboot since I'm assuming there is a script that mounts the hardware locations to everything when Android loads.
K.AuthoR said:
I haven't tested this but it's just a theory since Linux is generally pretty flexible. Hypothetically you could just use the Terminal to unmount both the storage spaces, and then re-mount them but switch the addresses. See here:
/dev/block/vold/179:1 is the address of the external storage, named '/sdcard-ext'
/dev/block/vold/179:58 is the address of the internal storage, named '/sdcard'
so you could HYPOTHETICALLY type into the terminal:
su
unmount /sdcard-ext
unmount /sdcard
mount /dev/block/vold/179:58 /sdcard-ext
mount /dev/block/vold/179:1 /sdcard
and it should mount the two in each others' locations.
Again, I haven't tested this and my phone is on the charger right now so I'm not going to yet, but assuming that works it would probably just restore itself to normal when you reboot since I'm assuming there is a script that mounts the hardware locations to everything when Android loads.
Click to expand...
Click to collapse
The "script" is vold.fstab in /etc folder. I edited this and was able to change mount locations, but had random reboots when trying USB mount to computer.
sk8tingusmc said:
The "script" is vold.fstab in /etc folder. I edited this and was able to change mount locations, but had random reboots when trying USB mount to computer.
Click to expand...
Click to collapse
Probably because when it's trying to mount it sees them still as what they really are instead of the edited vold.fstab. There is probably somewhere else you would need to edit to get that working correctly also. Or you could try something such as Auto Mount in the Market. Maybe it'd work.
Anyone have luck downloading that file? Seems like its down or its just me?
Sent from my DROID BIONIC using Tapatalk
sk8tingusmc said:
The "script" is vold.fstab in /etc folder. I edited this and was able to change mount locations, but had random reboots when trying USB mount to computer.
Click to expand...
Click to collapse
I was wondering if it was an fstab file but I didn't really poke around. Good to know, thanks!
frostincredible said:
Probably because when it's trying to mount it sees them still as what they really are instead of the edited vold.fstab. There is probably somewhere else you would need to edit to get that working correctly also. Or you could try something such as Auto Mount in the Market. Maybe it'd work.
Click to expand...
Click to collapse
The problem is after the swap when you connect to the PC over USB it unmounts the internal memory, and dual-mounts the microSD card. If the phone accesses the card at the same time as the PC the phone will reboot. To fix this the init.rc file would need to be modified, but it reverts to the stock file on each reboot.
cvmaas said:
The problem is after the swap when you connect to the PC over USB it unmounts the internal memory, and dual-mounts the microSD card. If the phone accesses the card at the same time as the PC the phone will reboot. To fix this the init.rc file would need to be modified, but it reverts to the stock file on each reboot.
Click to expand...
Click to collapse
Good to know. I was messing around with it. Ill check into this. Maybe I can magically make something happen
Sent from my DROID BIONIC using Tapatalk
Let us know if you have any luck, even if it's just a temp solution, because I would most certainly like to quit using this stupid internal memory if possible.
cvmaas said:
The problem is after the swap when you connect to the PC over USB it unmounts the internal memory, and dual-mounts the microSD card. If the phone accesses the card at the same time as the PC the phone will reboot. To fix this the init.rc file would need to be modified, but it reverts to the stock file on each reboot.
Click to expand...
Click to collapse
Oh okay. Does the bootloader need to be unlocked to edit that? I'm coming from the Incredible (hence my name) and have just become used to the Incredible's unlocked bootloader.
Anyone have any luck downloading any file in the browser?
Sent from my DROID BIONIC using Tapatalk
CWM zip originally by navendrob
Does not have full functionality yet! Read below!
Here is a CWM zip that I have modified that will flip flop SD storage locations. This is just to speed the process when someone figures out how to mount them to computer.
Important Facts
make your own back up before flashing
mount storage in CWM
Flash
This will mount the actual SD card as SDCARD and internal as SDCARD-EXT, but will not mount via USB to a computer. This will reboot phone and has already been discussed in thread.
sk8tingusmc said:
Does not have full functionality yet! Read below!
Here is a CWM zip that I have modified that will flip flop SD storage locations. This is just to speed the process when someone figures out how to mount them to computer.
Important Facts
make your own back up before flashing
mount storage in CWM
Flash
This will mount the actual SD card as SDCARD and internal as SDCARD-EXT, but will not mount via USB to a computer. This will reboot phone and has already been discussed in thread.
Click to expand...
Click to collapse
Thanks to everyone who is working on this!! Sk8, I will give this a try and will let you know! Thank you!
Sent from my DROID BIONIC using XDA App
dadsterflip said:
Anyone have any luck downloading any file in the browser?
Sent from my DROID BIONIC using Tapatalk
Click to expand...
Click to collapse
The stock browser is actually a POS. Try using the Dolphin hd browser.
Sent from my DROID BIONIC using XDA App

[Q] How do you format the internal NAND as ext3/4?

First post and first topic here, bear with me a little. I have a rooted phone and when I wanted to make a symlink using Terminal Emulator, to my horror, the internal NAND mounted at /mnt/sdcard is formatted as FAT32, so I get an access denied error.
The main reason I wanted to make a symlink is because the darn alarm application doesn't detect Musics outside the /mnt/sdcard/Samsung/Musics directory! I think the method I wanted to use to solve it seems overkill but I think it's the most worthwhile, as I do plan to try a lot of other things with this phone.
Important info is probably that I'm a linux newbie.
You can mount the dir to get an alias without using symlinks although it's possible to format it as ext of course.
Sent from my superior GT-N7000 using Tapatalk
Whoops, thought this was in the A500 section.
I'll take the plunge and see what I can do with mke2fs. Also, it seems like I can only do ext2, as finding a mkfs.ext3 seems difficult. Will post here once I'm done. See you guys next week.

[Q] E:failed to mount /sdcard?

Hello, I have tried various searches, although they all seem to be slightly different from my own experience.
I just purchased a Note 3. Aside from using Kingo for basic root to do some manual debloat, I tried following http://forum.xda-developers.com/showthread.php?t=2559715 just to get back to stock MJ5 and was finding the directions quite simple and informative.
The only problem I have had, is after going through everything, and putting all of the files in the root of my device (which I assumed is = ExternalSD in that guide, unless im supposed to buy an actual external SD, which if that is the case please let me know) then doing the rest of the steps, I fall short when it comes time to "upgrade from external storage."
When I select the option, all I get is the following error: E:failed to mount /sdcard (No such file or directory)
When using Root Browser, I can see that all of my regular folders and what not are still actually on /sdcard, but I haven't been able to get the sd card to acknowledge that it is mounted.
Does anyone see where I may have gone wrong in all of this? What is my best course of action?
Yea, external sdcard is the removable sdcard. You would need to buy that if you don't have one in your device.
arod175 said:
Yea, external sdcard is the removable sdcard. You would need to buy that if you don't have one in your device.
Click to expand...
Click to collapse
Thank you for such a quick reply. I guess I will simply have to go buy one. Thank you again

Categories

Resources