Hello, I could use a little advice. I rooted my Vibrant when the phone came stock with Eclair. I then upgraded to Froyo using Kies mini. Of course, I lost root access. Since then I have tried many ways to root my phone again, without any success. Yesterday, I tried by using SuperOneClick....again. This time I scrolled back through the commands and found that the necessary files couldn't be copied into the /system/bin or /system/xbin directories because the /system directory is too small. I checked the /system drectory and have only 28k available out of 375.81M allocated to this directory.
I have read the NOOB Guide, but still have questions. If I have to go back to Eclair does my /system directory get allocated more space? I already rooted in Eclair and lost it going to Froyo, so I don't understand that suggestion.
Obviously, I need enlightenment....someone please enlighten me.
Thanks in advance.
Try backing up everything from your internal sd on your computer, then format it and try again.
Sent from my SGH-T959 using XDA Premium App
Do as posted above. Then you might want to try the toolbox.
http://forum.xda-developers.com/showthread.php?t=954509
Thanks for responding. I want to make sure that I understand. When I USB to my PC and open the drives from the Samsung, I see drives L and K. The 2Gb one is my external and the 13Gb one is the internal drive. So theoretically, if I copy all of the files that I see from the internal drive to my PC, then restart in recovery and format the card, I should be able to continue to boot the phone, connect the USB and copy all the files back?
I don't see any of the root files on this drive on the PC but I do on the phone.
There are definitly some gaps in my knowledge.
Correct. Just copy everything from the 14g (internal) to your pc. You can format without recovery. Menu>settings>sd and storage
Sent from my SGH-T959 using XDA Premium App
Thanks. I'm downloading the toolkit now.
I have another question. As I got to the end of the download, I received a message about 2 files whose names were too long to copy to Windows (7 - 64 bit). The dialog box suggested that I rename the files to something shorter, but I don't know how to identify those files are if that is even necessary.
Ok, I have copied out my internal sd successfully. I have done a factory reset and a format from the Recover menu. When I check the /system dir after each of those actions, I still get 28k available. Should I try to repartition in order to reallocate space?
Thanks again for any assistance.
Success !!
I reformatted the card but wasn't able to change the system size...so I used the AIO toolbox to flash back to eclair...checked the file capacity of the /system directory and it was reported at 13Mb now. So I'm back to eclair and rooted. I'm going to attempt to flash froyo and hope not to lose root.
Thanks again for your help.
Related
My Vibrant's internal sdcard was reporting corruption, so I put a fresh ROM (Macnut 12) on the external SD, rebooted into Clockwork, and formatted the SDcard, system & data partitions. Then went to install the ROM, but it turned out it wouldn't recognize the ext-sd card either! I get this error when i try to mount:
Code:
E:INFO is WRONGError mounting SDEXT:!
I've tried a different ext-sd, and even tried formatting that one on the computer (MBR partition scheme, FAT partition). Nothing is recognized by the phone.
Also when I try "mount USB storage" nothing shows up on my desktop either.
SO: I have an almost empty phone, and no way of putting any ROM whatsoever on there. Can anyone point me in the right direction?
note: i have a Mac, so AFAIK ODIN doesn't work for me.
I'm in "Clockwork 2.5.1.0 lagfix edition", and was previously rocking Eugene's Macnut R12 with the JFS+RFS lagfix.
thanks!
~peter in oakland
wrong section
huzzam said:
NOTE: I figured this out, don't bother replying! thanks for looking
My Vibrant's internal sdcard was reporting corruption, so I put a fresh ROM (Macnut 12) on the external SD, rebooted into Clockwork, and formatted the SDcard, system & data partitions. Then went to install the ROM, but it turned out it wouldn't recognize the ext-sd card either! I get this error when i try to mount:
Code:
E:INFO is WRONGError mounting SDEXT:!
I've tried a different ext-sd, and even tried formatting that one on the computer (MBR partition scheme, FAT partition). Nothing is recognized by the phone.
Also when I try "mount USB storage" nothing shows up on my desktop either.
SO: I have an almost empty phone, and no way of putting any ROM whatsoever on there. Can anyone point me in the right direction?
note: i have a Mac, so AFAIK ODIN doesn't work for me.
I'm in "Clockwork 2.5.1.0 lagfix edition", and was previously rocking Eugene's Macnut R12 with the JFS+RFS lagfix.
EDIT: "adb push" has saved the day!
thanks!
~peter in oakland
Click to expand...
Click to collapse
I also use a mac. You need to be careful how you delete and format your sd cards. I just deleted some stuff off my sd card by dragging it into the trash and it didnt free up any space on the sd card. I have also seen problems with formatting them with the mac also. Also ODIN is a great way to put things back to stock. you will need to use bootcamp to install windows on the partition. If I weere you I would still ODIN back to stock and reflash to make sure you dont have errors in the future
Format sd card through clockworkmod recovery. Itll wipe everything, but it should bring it back to being usable. Also heimdall works with mac right? I havent used heimdall but read its an open source rom flasher replacement for odin.
Sent from my SGH-T959 using XDA App
I was going to suggest Heimdall as well. You should be able to flash back to a stock firmware, then sort things out from there. If you want to do that and then report back here, we could help from there.
Information about Heimdall is available in this thread along with a link to download the program.
Good luck.
Here's my issue: I wanted to start with a fresh "slate" for flashing a custom ROM (I originally had TRIGGER+OVERSTOCK). I backed up my apps/settings and the current ROM, disabled the Voodoo lagfix and unrooted the phone. Then, I ODIN'd back to JFD. At this point I downloaded TitaniumBackup and ROM Manager. When I tried to mount the Internal SD card, nothing happened...just the external card mounted. I went back and checked my ODIN settings an noticed that I had left the "Re-Partition" box checked. Freaking out at this point, I then went ahead and rooted the phone, and checked the file system through the Super Manager app. All my data was still there!!! So I went ahead and used ADB to "pull" the TB and ROM Manager data onto my computer just in case. My question is: how do I get the internal SD card to mount correctly?? Any help would be HUGE!!! Thanks in advance for everything!
Oryon007
I can't really tell by your post, are you trying to mount your external sd onto your phone or onto your computer?
I have Odin'ed to JFD with repartition checked many times, and have never had your problem. If I were you, I would just go through and Odin again using a different JFD image (maybe you just had a bad flash, what version of Odin were you using?) As long as whatever you are flashing with Odin contains all the essential bits, repartitioning should not do anything too deadly to your phone. (I learned this the hard way, do not try to Odin and repartition with JI6, for example, because JI6 has no dbdata image included).
If you just want to troubleshoot your current install, check the "/etc/vold.fstab" and "/etc/vold.conf". I can't actually tell you what those two files should look like as I am currently running a 2.2.1 rom (I think the files should differ between versions of the OS, but I'm not sure).
I am a pretty big Linux and Android noob, but I'm pretty sure that those two files are responsible for mounting both sdcards onto your phone, at least partially. (I would have no idea where to look to fix it if it isn't mounting onto your computer.)
Sorry if any of my advice is off, like I mentioned a little earlier, I am a pretty big noob, albeit very interested in Android.
Sorry for the confusion....I'm attempting to mount my internal SD to my computer. As far as ODIN is concerned, I'm using 1.7 with the flash files from this post:
http://forum.xda-developers.com/showthread.php?t=734475&highlight=stock+odin
I've used this ODIN flash before without any issues, so I'm still a bit stumped on why I can't mount my SD card. I can see the entire file system from within my phone as well as through ADB, but (for whatever reason) cannot mount it to my PC. I am leaning towards the issue of the SD card being partitioned wrong. Any thoughts? Any ideas on how to repartition the internal SD back to "stock"? Thanks again for any help provided!
-Oryon007
That's actually the same JFD image I use. I would just use Odin to flash JFD again with the repartition checkbox checked. I'm pretty sure that that will solve your problem.
Make sure you use the pit file too, without that you will have serious issues if you are repartitioning.
I'll try this again, just in case I missed something the first time...wish me luck!! I'll let you know how this turned out, too!
-Oryon007
Alright, good luck. Did you use the pit file when you originally flashed JFD and repartitioned? Not using that file may have been why you had this problem.
Ok...so, no change with the internal SD. When I attempt to mount the SD cards to my PC, the only one that shows up is the external one. After unmounting them, I can still see both cards with filesystems. Could the internal SD have been partitioned incorrectly? If so, how do I get it repartitioned right?
EDIT: I did use both original files from here...
Okay, I'm sorry but I have no clue how to help you. Are you sure its not just your computer? You may have to try and get help from somebody more knowledgeable than me. Have you tried flashing any other rom through Odin over JFD?
Not yet...I wanted to make sure that it wasn't something that I was doing incorrectly through ODIN. Again, my ultimate goal in all this was to have a "clean slate" to install a custom ROM on; the catch I'm running into is that I can't mount the internal SD card to place the files on to flash through CWM, even though I can see all the files through the phone and through ADB. *sigh* Thanks for your help though! It's always nice to have help when you run into these issues...
EDIT: After trying to ODIN JI2 files, I get the following error upon boot of the phone in Recovery:
E:Can't mount /dev/block/stl10
(Invalid argument)
E:copy_dbdata_media:Can't mount DBDATA:
copy default media content failed.
Click to expand...
Click to collapse
Look at what I said at the end of the second paragraph, on the second post in the parentheses.
EDIT: Just flash a rom using Odin that does have a dbdata file. You probably checked repartition while flashing JI2.
Last night I was having a similar problem. While I wasnt flashing back to stock or anything, I could only get G: (external sd) to mount to my pc but not the F: (internal storage). Eventually I disabled USB Debugging, plugged in the USB cable from the pc, and it gives you 3 options for USB Mode: Kies, Media Player, Mass Storage. Once I selected mass storage, both internal and external sd cards mounted to the PC with no problem. Just remember to re-enable USB Debugging after.
Finally got it!!
Finally found the issue!! Only took me a week....lol
Going to manage my disk drives found that my PC wanted to assign a drive letter that was already assigned to a mapped network drive. *duh* Obviously not going to work. Reassigned the drive letter and voila!! I can mount my internal SD card!! w00t!!
That's really terrible and hilarious at the same time. Why wouldn't windows just pick another letter to map it to?
Hi,
I am new here and did my best searching but couldn;t find a conclusive answer so i just need some suggestions about a way forward.
So far using Froyo's move to SD implementation I have managed to gain some space on the phone for more apps but i am still running out. I also have to use the slow Apps 2 SD application.
So my problem is I want more space for apps. Using adb, setting the install location to SD card helps provide some more but i have hit that limit too.
So, from what i've read so far, there is another symbolic link based method, that creates a partition on the SD card and then the phone appears to think its still on the phone.
I have a stock ROM and would prefer not having a custom ROM for now. What would be the suggested way of getting Apps2sdext functionality? I mean like installing a package after rooting.
I have read about rooting, and apps2sdext also seems to need root. But i'd really appreciate if somebody could drop some links as to what I could do. Here are my thoughts of what they might be:
Root phone
Format SD card with partitions
Install a2sd
Another question: is there no way of using Gparted, etc to resize partitions and create the ext4 partition on pc? As in before taking it to the phone? that way no need to reinstall some apps.
Ok so for now I see I can use Z4Root to root my phone. So i've sorted that part out.
I also saw on DarkTremor apps2sd page that stock roms need a custom init.rc. Where are the instructions for that?
gontadu said:
Another question: is there no way of using Gparted, etc to resize partitions and create the ext4 partition on pc? As in before taking it to the phone? that way no need to reinstall some apps.
Click to expand...
Click to collapse
I'm not quite sure. I'm not an A2SD user. But, here are my hunches/ideas/opinions:
I suggest you partition with the partitioner in the recovery image. A2SD may have trouble finding the ext partition when the layout is quite different from what it expects, though I'm not quite sure.
As for not having to reinstall apps, this is what I did prior to installing A2SD:
Move all apps to phone memory
Backup
Partition SD
Flash A2SD
Install A2SD (yes, I had to manually launch a2sd scripts --')
Done
Works as intended, but I've found that there wasn't a significant increase in free phone memory storage, but I'm very sure a2sd was applied.
So I went back to native A2SD.
Which leads me to say: I suggest flashing a custom ROM with A2SD integrated
Idk, maybe I just didn't give A2SD some time. Just try it out.
Hmmm interesting! Still digging up more info as i go along...
Ok so far I installed, z4root and it installs fine and does the whole root and restart thing.
Now when i browse from adb shell i still get the $ prompt and not the # prompt. But when i go into z4root it provides options for re-root and un-root...
UPDATE: well i found out that once the shell opens as $, you type su. When you do that look at your phone and accept the superuser request, otherwise permission denied appears on the pc screen. now i have the # prompt!!!
UPDATE: Got Clockworkmod running now! and exploring a2sd... i give up. cannot find a concise thing that says here's the script that you use after doing the clockworkmod. what do i do???
Hi,I came from megatron rom and is using CM7 rom now.Not sure partitioning of sd card work on stock rom but you can try.
Disclaimer: I'm not responsible for anything that happens to your phone! Below is what I did.
Instructions: Download DarkTremor Apps2sd.zip file.
Then,Backup all your sd card contents on your PC.You MUST backup as partitioning of sd card will wipe the whole sd card.
Reboot in recovery and select partition sd card > Partition sd card again> Swap Size:Choose 0 (I'm not sure what the other numbers will do.) > Then 512mb for the next option.Then it will start partitioning. > After you're done,upgrade ext.2 to ext.3 > Then upgrade ext.3 to ext.4 > After that,connect usb or take out sd card and put DarkTremor apps2sd.zip file in the root of your sd card and then flash it!
DONE AND PROFIT!
Your internal storage should decrease very slowly because your apps are now 'tricked' into being installed on your sd card Hope this helps!
Sorted my problem out!!
Gonna post details asap! So excited
gontadu said:
Sorted my problem out!!
Gonna post details asap! So excited
Click to expand...
Click to collapse
So you did my method or what?
Nope actually not. Found a simpler method that's easier for noobs.
So here goes in very short since I don't have links
1. Split memory card into two partitions. I used 1GB. I did the partitioning on Ubuntu as it was much easier to just resize the partition using gparted. I am not sure what file systems are supported for the apps but i used ext3 for the 1GB. Backup should not be necessary but you are welcome to be careful
2. Root phone with z4root, very straightforward process
3. Install Link2SD from Android Market.
4. Once its installed, it'll prob ask for root permissions. Grant them.
5. Open Link2SD and in the list, one by one for each app you'd like to move, select and it opens a page with some details. Just click on create link, and in the next page an option for moving cache also shows. Select that too. Then the app gets moved in the background and slowly your space starts increasing.
6. I did not move any preinstalled apps that came with the phone. Just moving the apps I installed gave me plenty of space not to worry with App 2 SD (froyo method) or anything. Also with this method, mounting for USB Mass Storage also gets quicker.
What's there not to line?
Always do a nandroid backup! I didn't as i didn't think much of an app.. my phone went into continued android logo loop. After several tries of battery pull,I managed to get into the phone but many of my apps went missing.. sighz...
Running Stock rom
Sent from my LG-P500 using XDA App
yanuk said:
Always do a nandroid backup! I didn't as i didn't think much of an app.. my phone went into continued android logo loop. After several tries of battery pull,I managed to get into the phone but many of my apps went missing.. sighz...
Running Stock rom
Sent from my LG-P500 using XDA App
Click to expand...
Click to collapse
You mean the backup option that is there in clockwork mod recovery menu right? I screwed up the files once and the backup came in real handy!
Sent from my LG-P500 using XDA App
It may not help you but I was using megatron rom froyo 2.2 and had barley any memory space on my phone and since I flashed CM7 rom from milk I have tons of space I have twice as many as many apps and stol 100 megabits left
Sent from my LG-P500 using XDA Premium App
Just curious, on a scale of 10 how hard is it to get cm7 onto your optimistic? And any clue whether existing settings are lost? Any other benefits? And features missing? It would be nice if we either got more battery life or better performance if not both
Sent from my LG-P500 using XDA App
I use a stock ROM (2.2.1) and I have rooted and installed "Move2SD Enabler" from the market and moved all the apps to SD (except for widgets) in the plain simple old fashion. I currently have over 150 apps installed with about 90MBytes of internal memory free.
Im updating the first post so everyone can see how to do this u can get the updated vold.fstab from chevy on pg 2.
Basically you must be rooted before doing this.
Download above file posted by chevy
Use a file explorer program like root explorer browse to your download folder or wherever you downloaded the above file. Extract it and when it says go to extracted folder say take me there.
Once there click on the vold.fstab and long press it and select copy from the menu that pops up.
Then browse to the root of your system device and select the system folder
Once there select the etc folder
Once in there at the top right of the screen if your using root explorer change the r/o to r/w and paste the file in here.
It will ask you to overnight the file. Select yes to overright
Then at the top right of your screen change the r/w to r/o
Finally reboot your phone and you should be good to go.
To verify just go to settings and select sd card and storage and you should see your external sd card showing up as the main sd card now.
Sent from my DROID X2 using Tapatalk
I haven't had time to make the change myself, but it can be done if you are rooted.
I've attached the files that need to be changed as a rar file.
"init.rc" is a initialization file that will create the directories /mnt/sdcard/ & /mnt/sdcard-ext/ on the system partition. It will also create a symbolic link to those directories as /sdcard/ and /sdcard-ext/ respectively.
Then, "vold.fstab" is used to mount the internal memory to /mnt/sdcard/ & mount sdcard to /mnt/sdcard-ext/
You should back up the original files from your device, the vold.fstab I attached has been edited to switch the internal memory to /sdcard-ext/ & sdcard to /sdcard/
Thank you ill try this when I get off of work.
Sent from my DROID X2 using Tapatalk
Bigdragon2k3 said:
Thank you ill try this when I get off of work.
Sent from my DROID X2 using Tapatalk
Click to expand...
Click to collapse
Let us know how it goes. I'm interested in this as well.
Ok well I tried this but I guess I messed up some where I ran the init.rc first. Then I backed up the vold.fstab and put it in a folder. I then put the new vold.fstab in etc/ now neither of my sd cards are being mounted. Maybe im trying something too advanced for me. But hopefully there's an easy fix. Was I supposed to push the file with adb
Sent from my DROID X2 using Tapatalk
I wouldn't be messing with critical system files like that until an SBF is available for our phone. Just my 2c.
You can adb the original files you backed up onto the device and reboot and it will remount the partitions. I did the same thing when I tried and made the mistake of overwriting the backup I made when I saved the edits in RootExplorer, so I had to grab the files off my wifes phone and push them onto mine to get it back up. Other than the devices not mounting, there isn't much harm in editing these files.
Did you edit both files at the same time to match the directories and reboot? If they don't match the devices won't mount when the vold.fstab is called. The edit needs to be done at the same time. In init.rc make sure the paths for the export & mkdir are the same. I was able to get it to create the directory /mnt/sdcard/ext/ so the external sdcard would have been in a directory inside the internal sdcard, but couldn't get it to mount to that directory.
Where I got hung up was on the vold.fstab edit, the formatting kept getting messed up and the file wouldn't work.
I was able to change the symbolic links around which helps if the sdcard path is hardcoded in the app to be /sdcard/, but when getExternalStorage is called by the app to get the path it will return the mnt/sdcard/ path, so that only helped get certain apps to store their files on the real sdcard.
The link below is how this edit is done on the Galaxy S, it was successful on that device so thats how I know it can be done on ours if we figure it out.
http://forum.xda-developers.com/showthread.php?t=1094090
Well I got it back to default now. Im not sure if you have taken a look at the original one posted for the i9003 here http://forum.xda-developers.com/showthread.php?t=1088474. When I went to edit yours it seeemed like you had extra stuff in there. Also on the other post it diddnt say anything about the init.rc. Not saying that your wrong I just diddnt see it mentioned. But hopefully we can figure this out and get it working.
Yeah, the vold.fstab I attached had the formatting messed up when I saved it in notepad and after that it didn't seem to accept any changes I made. I need to replace it with a fresh original file, I attached it to reference what I was saying, but should have been more clear to start with a clean copy. Sorry about that.
If our goal is just to swap the two cards, editing the vold.fstab is all that is needed, but if we want to combine the cards we need to edit the init.rc to make the /ext/ directory inside of /sdcard/, that way the apps that are setup to only work with the 1 card will be able to use both as the internal card would be mounted inside a directory of the real SDcard. Ideally I was thinking of mounting the internal storage to the /sdcard/data/ folder so app2SD stuff would go there, but started by trying to set it as /sdcard/ext/ as that wasn't a preexisting directory on my SDcard so it wouldn't be an additional monkey fighting the mod.
Ok I understand now. Hopefully we could get those files coded so we can try this out. This would be a great addition.
Sent from my DROID X2 using Tapatalk
you needed a better text editor. i did the exact same thing to vold.fstab and it works.
use the attached file.
I got it working as well (just swapping partitions). These were my steps:
1. attached the phone to my PC and made sure both the internal and external storage locations that mounted on my PC contained the same information. Just copied files back and forth until they were equal
2. disconnected the phone from the PC.
3. Used Root Explorer (RE) to copy vold.fstab to a few different places on both internal and external storage (just in case)
4. Mounted the /etc folder R/W in RE and did my edits on vold.fstab via the text editor in RE. Stored my changes and this automatically created a .bak file.
5. Mounted /etc RO and rebooted.
6. Both storage areas got prepared and mounted after reboot and were swapped as expected. Now I just need to copy the 8G SD contents to my 32G and I'll be back to where I was with the OG Droid!
Corey
Well thank you that definitely worked, thats so awesom.
Is it XMas morning, feels like Santa just visited! Now I have to order up that 32g card I've been drooling over, thanks!
Can someone post these instructions step by step in simple-man terms? Thanks!
Basically you must be rooted before doing this.
Download above file posted by chevy
Use a file explorer program like root explorer browse to your download folder or wherever you downloaded the above file. Extract it and when it says go to extracted folder say take me there.
Once there click on the vold.fstab and long press it and select copy from the menu that pops up.
Then browse to the root of your system device and select the system folder
Once there select the etc folder
Once in there at the top right of the screen if your using root explorer change the r/o to r/w and paste the file in here.
It will ask you to overnight the file. Select yes to overright
Then at the top right of your screen change the r/w to r/o
Finally reboot your phone and you should be good to go.
To verify just go to settings and select sd card and storage and you should see your external sd card showing up as the main sd card now.
Sent from my DROID X2 using Tapatalk
coreywilner said:
I got it working as well (just swapping partitions). These were my steps:
1. attached the phone to my PC and made sure both the internal and external storage locations that mounted on my PC contained the same information. Just copied files back and forth until they were equal
Click to expand...
Click to collapse
Explain, please? How do you get both the internal and external storage locations to show up on the computer?
usb mode will show both sd cards in your computer screen.
Bigdragon2k3 said:
usb mode will show both sd cards in your computer screen.
Click to expand...
Click to collapse
Was able to figure it out, sleep is a wonderful thing when it comes down to thinking clearly! LOL
Thanks cvmaas and Bigdragon, it's great being able to fully use my SD card again!
Sent from my DROID X2 using XDA App
Not trying to hijack, but have any of you done this and purchased a 32gb card? Maybe a class 10 card? If so which one and how is it working?
Sent from my DROID X2 using XDA App
THIS GUIDE IS ONLY FOR ICS USERS WHO HAVE ENCOUNTERED THE ENCRYPTION UNSUCCESSFUL SCREEN ON THEIR PHONE. If you have no idea what the ENCRYPTION UNSUCCESSFUL screen is disregard this guide.
First and foremost I would like to thank and give credit to 'cgugino' for his guide over at the Captivate forums. Thanks to tabthelab and Woodrube for their helpful advice and guidence.
cgugino's guide (captivate)
http://forum.xda-developers.com/showthread.php?t=1447303
This is a similar guide if not identical to his guide for "fixing" the Encryption Unsuccessful bug that occurs in certain ICS roms (DocMasters V5 confirmed). Not sure about other ICS roms.Here is a screenshot of the "Encryption Unsuccessful" screen that will eventually appear on your ICS rom.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If you have already selected reset phone well don't panic just proceed. It will not make a difference regardless.
Note: If you still have access to CWM not stock recovery proceed to step 6 and create your new partition. But REMEMBER TO BACK UP YOUR SD CARD AS IT WILL BE WIPED COMPLETELY. Do this by going under 'mounts and storage' > 'mount /emmc' or 'mount usb storage' in CWM
DO THIS GUIDE ONLY IF YOU HAVE ALREADY FLASHED BACK TO STOCK JFD THROUGH ODIN OR IF YOU NO LONGER HAVE ACCESS TO CWM. OTHERWISE READ THE NOTE ABOVE
WITH THAT BEING SAID THIS GUIDE DOES NOT FIX THE BUG. IT IS A WORKAROUND TO CREATE A PARTITION ON YOUR SD CARD TO BE ABLE TO USE YOUR "BRICKED" PHONE AGAIN
So lets begin:
Tools/Files Needed
-ADB (Android Debugging Bridge) and Android SDK must be set up on your PC.
Here is a guide that shows how to setup ADB and SDK with the necessary drivers:
http://theunlockr.com/2009/10/06/how-to-set-up-adb-usb-drivers-for-android-devices/
-You need the latest ODIN 1.7 or whatever the latest version is along with the .pit file found here:
http://forum.xda-developers.com/showthread.php?t=848737
-Download this froyo .tar and extract it to the same directory where you have odin.
http://forum.xda-developers.com/showthread.php?t=833024&page=49
-Download CWM from here:
http://sourceforge.net/projects/stockodinjfd/files/update.zip/download
-Download any ICS rom Yes an ICS rom. You will use later to flash in CWM.
-You need a microSD card 8gb or larger which you will use to create the partition.
Thats it I think.
Here are the steps:
1. Enter download mode. Remove your battery/Then insert your battery/ hold both Volume Up and Down rocker and plug in your usb cable. You should now see the yellow android dude and it should say "Downloading".
2. Open odin and select the .pit file along with the froyo .tar file you've downloaded from above. Make sure "Re-Partition" is checked under options in odin. Click start and patiently wait for the process to be completed. DO NOT UNPLUG YOUR PHONE YET
Once odin finishes wait till the phone boots up with the new froyo rom youve just flashed.
3. Once your phone boots up and is setup copy CWM update.zip to the root of your external SD card. Do this by selecting the "mount usb storage" option in the notification bar.
Or
You can also copy the update.zip using a sd card adapter (only if your pc has an sd card reader).
You can use another phone or device which has a micro sd card slot. Just insert the sd card and plug in that phone via usb and copy update.zip.
You can also use adb to copy the update.zip.
adb remount
adb push update.zip /mnt/emmc
You must have the update.zip in the "platform-tools" folder in the android-sdk before executing the commands above.
4. BACKUP YOUR EXTERNAL SD CARD WHILE YOU CAN. IT WILL BE ERASED WHEN CREATING THE NEW PARTITION
5. Unplug your phone. Enter recovery mode using the 3 button combo or through adb using the following command: adb reboot recovery
Hit reinstall packages in recovery if CWM is not set yet. It will eventually install just keep clicking reinstall packages.
6. Once your are in CWM create the partition by going to 'advanced' > 'Partition SD Card' > Choose your data partition size 2gb is fine > Swap size 0M > You will get an error but just ignore it.
WAIT WAIT and WAIT it will take more than 5mins to create the partition. Just be patient it will eventually finish.
7. Connect your phone and while still in CWM mount your "USB Storage" under 'mounts and storage' > 'Mount USB Storage'. Then copy your ICS rom along with the update.zip (just incase) to flash. Don't flash update.zip though just keep it on your sd for future use.
8. Now while still in CWM umount your USB Storage. Go Back and select Wipe data factory rest / clear cache. Then install the ICS rom you've downloaded and flash it. (I used ICS Passion v13) Again be patient and wait till it finishes flashing and ignore any errors.
9. Once it has finished flashing it will eventually reboot. Or select 'reboot system now' in CWM if it already hasn't. Now this part you will have to be extremely patient. It may take up to 10mins or more to boot up. Once finished just set up your system using the setup wizard on your phone if there is one.
10. Check to see if your new partition has been successfully created by going to: Settings/Storage. You may see that your new partition is still 'unavailable' or it may say something like 00 for available storage. Don't worry just proceed to the next step.
11. Now to see if your partition is mounted properly. (Most likely not)Open the camera app and check to see if you get a message saying "Insert an SD card before using the camera." or something along those lines. If you get this message proceed to the following step. If not well you are lucky And you are now finished.
12. Now get ready to use adb so make sure adb debugging is enabled in Settings/Developer Options/ Android debugging [checked]
Open a command prompt on your pc in directory in which you installed your android sdk package. It should be something like this
C:\android-sdk\platform-tools
While in the platform-tools folder click on a blank space and Hold the SHIFT key + RIGHT CLICK > and select 'Open Command Window Here'. Now a command window should show up. If it doesnt show up well you didnt set up the SDK package properly go back to the guide which i suggested and make sure you have it set up properly or else you will not be able to issue commands.
13. With the command window open and your phone plugged in. Enter these commands to swap your external sdcard with your internal storage. This is the part where you will now use your new partition as your primary storage or internal storage.
Type in the following code into the command window or copy and paste it (easier) Remember to press the enter key after every command:
1) adb devices "This is to check if your device is properly attached"
2) adb remount "This is to check if your device is properly mounted"
3) adb pull /system/etc/vold.fstab "This will copy the vold.fstab file to the platform-tools folder on your PC."
3a) Now open the vold.fstab file you've just copied to your PC located in platform-tools. Right click vold.fstab and open it with notepad for editing.
Or you can also use a root explorer type of app on your phone
to edit the vold.fstab file. This might be the easier option. Just
remember to reboot your phone after editing the file.
3b) With the vold.fstab file open in notepad edit the following lines:
(They should be at the very end of the file and look something like this)
Line 1:
internal sdcarddev_mount sdcard /mnt/sdcard 1 /devices/platform/s3c-sdhci.0/mmc_host/mmc0#
Replace both instances of sdcard with emmc
Line 2:
external sdcarddev_mount emmc /mnt/emmc auto /devices/platform/s3c-sdhci.2/mmc_host/mmc2
Replace both instances of emmc with sdcard
Now that you have finished editing vold.fstab save the file close it and proceed to the next step.
3c) Now copy the edited vold.fstab file to your new partition by using the following commands:
adb remount "Followed by"
adb push vold.fstab /system/etc/vold.fstab "The file should now be overwritten."
REBOOT YOUR PHONE IF YOU DON'T GET ANY ERRORS WHEN EXECUTING THE COMMAND ABOVE.
(READ BELOW "IN RED" BEFORE REBOOTING IF YOU GET AN ERROR IN THE COMMAND WINDOW)
YOU ARE NOW FINISHED. AND SHOULD BE ABLE TO USE YOUR PHONE AGAIN WITH THE NEW PARTITION MOUNTED PROPERLY
IF YOU GET AN ERROR IN THE COMMAND WINDOW saying permission denied or something enter the following commands.
adb push vold.fstab /emmc/vold.fstab
adb shell
su
mount -o remount rw /system
cp /emmc/vold.fstab /system/etc/vold.fstab
chmod 644 /system/etc/vold.fstab
mount -o remount ro /system
exit
exit
adb reboot "This command will reboot your device so don't panic."
Once you have entered the commands above. Your phone will reboot. And the new vold.fstab file will be programmed to mount your new partition as your primary storage. And you should be finished by now. Now to test it open the camera app once again and see if you get any error messages. If so repeat step(s) 13. Otherwise You should now see that you have 1.88gb internal storage for apps etc and about 13 gb for the user (Assuming you have a 16gb) It should look something like this:
(Continued)
YOUR ARE NOW FINISHED AND SHOULD BE ABLE TO USE YOUR PHONE ONCE AGAIN. DOWNLOAD AN APP FROM THE MARKET TO SEE IF EVERYTHING WENT WELL. ALSO MOUNT YOUR PHONE TO YOUR PC TO SEE IF THE NEW PARTITION IS BEING RECOGNIZED.
Notes:
-Those of you who are new to ADB remember to hit enter after every command. dont just copy and paste all of them and expect them to work.
-You must perform step(s) 13 everytime after flashing a new rom. Reason for this is because the new vold.fstab file in the new rom will overwrite the old one you have edited in step 13. So keep that in mind.
-I have only tried this with the latest build of ICS Passion v13. It may work for other ICS roms aswell but i cannot confirm. I have tried it with a froyo rom but was unable to successfully mount the new partition. As for GB roms well you are going to have to try that your self. All you have to do is edit the vold.fstab file (Step 13) they should be identical if not similar.
-You can also edit the vold.fstab file using "Root explorer" app on your phone if you have it.
-Remember you no longer have access to your old internal memory since it is gone and I don't know what happened to it. SO SAY GOODBYE TO YOUR OLD INTERNAL STORAGE.
-Do not remove your SD CARD while your phone is on. It contains all of your system files and will probably make your phone blow up if you do so.
-If you haven't already flashed back to stock 2.1 and still have access to CWM you can skip to step 6 and create the partition from there. But remember to BACKUP YOUR SD CARD because it will be wiped.
I haven't tried this method but i assume it will work the same. Give it a try and let me know what happens
Good Luck and feel free to ask me any questions. I will be more than happy to assist you if you need any help.
[Reserved for future use]
I just read comment about the bug and your thread pops up. Great work!
Just for clarification, does this mean you must rely on the SD indefinitely to utilize the phone?
ast32 said:
I just read comment about the bug and your thread pops up. Great work!
Just for clarification, does this mean you must rely on the SD indefinitely to utilize the phone?
Click to expand...
Click to collapse
Yes... Once you've completed this guide your EXTERNAL SD CARD will then act as the INTERNAL SD CARD that was previously there prior to the bug. So in other words your sdcard will be your primary storage for the OS and other things such as music photos apps etc.
Merio90 said:
-Do not remove your SD CARD while your phone is on. It contains all of your system files and will probably make your phone blow up if you do so.
Click to expand...
Click to collapse
This also means that if you ever want to swap out any SD card, you will have to repartition your new one to fit exactly the same "smaller" partition and also find some program that will be able to pull your data from your 2g partition, save it to your desktop and then copy it over to your new partition on your new card. Or you may have to reflash whatever ROM you are wanting/restoring from scratch. You are new essentially SDcard branded to your phone.
My old phone had 2.1 with no upgrade EVER from the manufacturer. So me and a few others began building/kanging 2.2 and with 2.2's ability of app2sd we had to figure out a way to do that for it to work. Long story short, with a few init hijacks at boot and some ADB we were able to get apps to install directly to a partition that we created on our SD cards. Went from 170mb internal to "you pick the size" partition on the external. I still have that phone and do some dev-ing on it and have brought a 2.1 all the way to CM9.
If anyone needs help with the partitioning, just ask. Also, 2gb is the standard but 2gb is a ton of space. Figure that your biggest app is going to be around 20-30mb executable. 1gb is 1024mb, you can do the math but it is also your call.
Problemo
So, this guide is great, but one of the initial problems was connecting to my SD card, when I plug in via usb my computer doesn't even recognize I plugged in. How am I to get the "update.zip" and the CFW on to it? also, when I use Clockwork, I can't seem to make my partition work... I've done it many many times, but nothing. it's almost like it doesn't even work... I just have the standard 2gb micro SD, so I make a partition of 1024mb. But it doesn't seem to work.
tabthelab said:
So, this guide is great, but one of the initial problems was connecting to my SD card, when I plug in via usb my computer doesn't even recognize I plugged in. How am I to get the "update.zip" and the CFW on to it? also, when I use Clockwork, I can't seem to make my partition work... I've done it many many times, but nothing. it's almost like it doesn't even work... I just have the standard 2gb micro SD, so I make a partition of 1024mb. But it doesn't seem to work.
Click to expand...
Click to collapse
Try using the sd card adapter that came with your phone to copy the update.zip. That's if your computer has an sd card slot. Or simply use another phone to copy it by inserting the sd into that phone and plugging in the usb cable.
Right when you finish flashing the 2.2 .tar it should mount properly to your pc. Just select usb storage from the notification bar.
Sent from my Galaxy Nexus using XDA
Merio90 said:
Try using the sd card adapter that came with your phone to copy the update.zip. That's if your computer has an sd card slot. Or simply use another phone to copy it by inserting the sd into that phone and plugging in the usb cable.
Right when you finish flashing the 2.2 .tar it should mount properly to your pc. Just select usb storage from the notification bar.
Sent from my Galaxy Nexus using XDA
Click to expand...
Click to collapse
I'm getting the same problem as him. and when i flash the 2.2 tar, it goes straight to stock recovery. it doesn't boot up android. even in cwm, my phone instantly "partitions" the sd card. and it only has a 1024mb option. no 2gb. And when you press mount usb, it does nothing at all. my computer shows two devices that haven't been mounted. Any ideas? i've been trying to fix this phone for almost a week straight and nothing works....
EDIT:I have no idea what just happened but i rebooted a few times and its starting to boot up.
Yep.
Exactly the same thing. I do have another phone that I can do all of that on, but it matters not it I can't even recognize the SD card to partition. I think it could (which doesn't really makes sense to me) be the fact we're using the standard 2gb one, I should go get a bit of a bigger one.
Either way, if it works or not, I can just give it to my fiance to use on her phone :\
I will keep tinkering though, and I'll of course post my results, if I have any.
---------- Post added at 05:04 AM ---------- Previous post was at 04:55 AM ----------
I just used my ladys phone to partition my sd card. ICS Passion makes me so angry, so instead of partitioning the SD CARD, it partitioned her internal memory, yay. phone is all clean. ffs.
Okay, so I figured out how to fix the problem with the partitioning. If you are able to install a zip file from recovery, install the ICS Passion kernel with CWM 5.x.x.x http://dl.dropbox.com/u/33572867/ICS_Passion_v13_cleanup.zip
You might have to rename it to update.zip but I think it should work for everyone. From there reboot recovery into the new kernel CWM. Now when you try to partition the sd card, it should take a long time and it should work.
tabthelab said:
Exactly the same thing. I do have another phone that I can do all of that on, but it matters not it I can't even recognize the SD card to partition. I think it could (which doesn't really makes sense to me) be the fact we're using the standard 2gb one, I should go get a bit of a bigger one.
Either way, if it works or not, I can just give it to my fiance to use on her phone :\
I will keep tinkering though, and I'll of course post my results, if I have any.
---------- Post added at 05:04 AM ---------- Previous post was at 04:55 AM ----------
I just used my ladys phone to partition my sd card. ICS Passion makes me so angry, so instead of partitioning the SD CARD, it partitioned her internal memory, yay. phone is all clean. ffs.
Click to expand...
Click to collapse
Your mistake sorry. The only reason why I suggested using another phone was to simply copy CWM while having the already partitioned sd card in your lady's phone. Now i don't why you decided to create the partition on your lady's phone a second time...this was obviously going to wipe the internal memory since it is still intact.
Try this
For those of you having trouble copying CWM to the sd card try the following commands. You can execute these commands through stock recovery or with the phone already set up and going. Just remember you must have usb debugging enabled on your phone.
check to see if the phone is mounted: adb devices
now copy CWM to your sdcard: adb push update.zip /emmc/update.zip Just make sure that CWM is named
update.zip
To be honest the easiest way to copy CWM to your sd card is to use another phone or device which has a microsd card slot. Or if your computer happens to have sdcard slot simply use an sdcard adapter and copy CWM.
maybe it's not meant to be
So, I've done nearly everything I can even think of. I got the ICS installed but I keep getting the "power reset" or "unknown upload mode" now. I swear.... haha.
did you get the sd card partitioned? if so, odin back to froyo eugenes rom, install cwm, factory reset, wipe cache, and reinstall the passion 13 rom. I had the same problem and i think thats what i did to fix it.
alright. I see. Let me try that.
---------- Post added at 07:11 AM ---------- Previous post was at 07:09 AM ----------
did you have "re-partition" checked though??
yes i did.
Nirmalspeed said:
did you get the sd card partitioned? if so, odin back to froyo eugenes rom, install cwm, factory reset, wipe cache, and reinstall the passion 13 rom. I had the same problem and i think thats what i did to fix it.
Click to expand...
Click to collapse
@Nirmalspeed...Did you successfully partition the sdcard? I'm just wondering if your were able to successfully complete the guide. How did you manage to copy CWM to your sdcard? By any chance did you try anything different?
trying something now, I might have fudged up for a very obvious reason...
Merio90 said:
@Nirmalspeed...Did you successfully partition the sdcard? I'm just wondering if your were able to successfully complete the guide. How did you manage to copy CWM to your sdcard? By any chance did you try anything different?
Click to expand...
Click to collapse
what i did was that i flashed the ICS Kiss kernel that i linked on page one of this thread. And from there i was able to partition the sd card no problem. After i partitioned it, i had to redo everything from step 1 except i skip the partitioning. If i don't redo those steps, the rom gives me an error for some reason.
I'm getting a boot load!?!?! XX XX X fingers and toes crossed.