I know I've read this somewhere but is there a cleaner & simpler way to wipe an EXT3 partition??
*Yes I have searched but the recommended way didnt work*
I wanted to install the new JAC Sense build, I thought I wiped properly, & ran wipe from console but then once the build was fully booted up, GUESS WHAT my apps & stuff were still in there! Double wether app & other stuff I ma sure was causing issues from my old build & everything...I finally just blew everything out in parted & started again...but for next time
I did follow these instructions:
mount -o rw /dev/block/mmcblk0p2 /system/sd
mount /system/
mount /data/
rm -rf /data/*
rm -rf /system/sd/*
But i did get an error about lost+found after running the rm -rf /data/*
I know I did something wrong what was it?? I dont see it...
do this in the recovery console to completely wipe your ext3 partition
Code:
mke2fs -j /dev/block/mmcblk0p2
Grab the RA recovery from my sig.
RA-dream-recovery is sooo convenient.
Related
I had to wipe my phone and have ext2 partition on my card but when I try the copy.sh app command it works but always hangs on the flashing g1 after I reboot the phone. So this leads me to believe its because the apps are still there on the ext2 partition and need to be removed before I could do it again.
Joeriginal said:
I had to wipe my phone and have ext2 partition on my card but when I try the copy.sh app command it works but always hangs on the flashing g1 after I reboot the phone. So this leads me to believe its because the apps are still there on the ext2 partition and need to be removed before I could do it again.
Click to expand...
Click to collapse
well you can try flashing LucidREM mod that has the files for mounting it located here and instead of using the copy.sh app first try this.
$su
# cd /system/sd
# ls -la
check if the app folder is there if it is than
# cd app
#ls
check if the files are there.. and if they exist than try this
# rm -rf /data/app
# ln -S /system/sd/app /data/app
# reboot
hope that helps and it u still want to wipe the ext2 parttition than jut
# rm -rf /system/sd/*
or
# rm -a /system/sd/*
Nitro212 said:
well you can try flashing LucidREM mod that has the files for mounting it located here and instead of using the copy.sh app first try this.
$su
# cd /system/sd
# ls -la
check if the app folder is there if it is than
# cd app
#ls
check if the files are there.. and if they exist than try this
# rm -rf /data/app
# ln -S /system/sd/app /data/app
# reboot
hope that helps and it u still want to wipe the ext2 parttition than jut
# rm -rf /system/sd/*
or
# rm -a /system/sd/*
Click to expand...
Click to collapse
I have problems when I get to ln -S /system/sd/app /data/app
it says link failed no such file exists
Joeriginal said:
I had to wipe my phone and have ext2 partition on my card but when I try the copy.sh app command it works but always hangs on the flashing g1 after I reboot the phone. So this leads me to believe its because the apps are still there on the ext2 partition and need to be removed before I could do it again.
Click to expand...
Click to collapse
I kinda had the same question but was wondering if there was an easier way of wiping the ext2 partition? I'm kinda new at all this and am now starting to get the hang of flashing different roms onto my phone but I realized that doing an Alt+W before flashing new roms does not wipe the ext2 partition. (At least I'm pretty sure it doesn't.)
I'm not too savvy on using terminal yet..I've heard of using adb but I don't even know where to begin with that..so I was wondering if going into Paragon Partition Manager and just formatting the ext2 partition will work? Any info will be greatly appreciated.
Ok i finally have it working. I keep getting a social network force close.
wiping an ext2/ext3 partition
Joeriginal said:
I had to wipe my phone and have ext2 partition on my card but when I try the copy.sh app command it works but always hangs on the flashing g1 after I reboot the phone. So this leads me to believe its because the apps are still there on the ext2 partition and need to be removed before I could do it again.
Click to expand...
Click to collapse
there is an app on the market called lucid REM that runs his script via terminal emulator. after getting it and running it you can go to terminal and type
su
lucid -c (this wipes ext2/3 partition)
hopefully this helps you. if you are on a rom that uses auto a2sd then you will most likely getting force closes all over until you flash your new rom.
I posted a thread with steps to do it http://forum.xda-developers.com/showthread.php?t=533731
Code:
Open console and enter the following commands. Press "Enter" after each line. This wipes the ext partition.
mount -o rw /dev/block/mmcblk0p2 /system/sd
rm -r /system/sd/
[code]
Glad this wasnt deleted right away, maybe it can just be moved?
It helped because I also was wondering the best way of doing this, and now I know.
Thanks .
Odd, double post for no reason. Sorry delete this post?
hi everyone,
***i searched and searched but i couldnt find the answer***
i had apps2sd on a previous rom and i recently switched to the mytouch rom.
after i wiped and applied update, i get stuck at the boot loop. i know that this is caused by the apps2sd and i remember seeing a set of commands that erase it from the sd card but it was deep in a thread and i dont remember which thread it was.
can someone please help me ( and others) out by posting the commands that will get it past the boot loop?
i tried this in the recovery console but it didnt work:
mount data
ln -s /system/sd/app /data/app
Thanks guys!
also tried this but it didnt work:
mount data
rm /data/app
mkdir /data/app
im still stuck on boot loop
Code:
mount -o rw /dev/block/mmcblk0p2 /system/sd
cd /system/sd
rm -r *
slyfury said:
also tried this but it didnt work:
mount data
rm /data/app
mkdir /data/app
im still stuck on boot loop
Click to expand...
Click to collapse
mount -o rw /dev/block/mmcblk0p2 /system/sd
cd /system/sd
rm -r *
does that delete everything on the sd card?
this gives me an invalid argument error:
"mount -o rw /dev/block/mmcblk0p2 /system/sd"
i can get to
/system/sd #
when i type in cd /system/sd
?????what do i do???
slyfury said:
mount -o rw /dev/block/mmcblk0p2 /system/sd
cd /system/sd
rm -r *
does that delete everything on the sd card?
this gives me an invalid argument error:
"mount -o rw /dev/block/mmcblk0p2 /system/sd"
i can get to
/system/sd #
when i type in cd /system/sd
?????what do i do???
Click to expand...
Click to collapse
said what the hell and tried the rm command and i got permision denied on everyfile it tried to erase
easiest way would be to reformat your ext partition.
then wipe and reflash
other roms can leave junk in the ext partition that causes bootloops quite often. this is a very common problem and i always find a reformat, which takes like 30 seconds with gparted live cd, fixes it
is there a way to do it through the phone?
my micro sd adapter broke and im waiting for amazon to send my a new one
found it:
http://forum.xda-developers.com/showthread.php?t=534714
Hey guys,
is there a way to backup the ext3 partition? when flashing Drizzys ROM you must have a clean ext3 to do initial boot. without clean ext3 you get a bootloop. Ive flashed his ROMS several times and i want to flash a new cyans 4.0.1 but im afraid that ill lose my apps.
any ideas on how to keep your info AANNNDDDD flash drizzys ROM??
If you have adb up and running you can adb pull /system/sd/app (some directory on your computer) to make a back up the adb push (same dir from above) /system/sd/app if you don't have adb then i do not know
If you ant to go from Drizzy to Cyan you should be fine. Just wipe and flash Cyan.
For fututre refrence, to back up your ext, go in to the recovery console
Code:
mkdir /sdcard/app/
mkdir /sdcard/app-private/
cp /system/sd/app/* /sdcard/app
cp /system/sd/app-private/* /sdcard/app-private
All that does is make the "app" and "app-private" folders on the fat32 partition of your sdcard and copies the apps to them from the ext3 partition (the mount point of ext3 is /system/sd).
To push them back after flashing a new ROM (again from recovery, don't do this from the terminal when your phone is on):
Code:
mount -o rw /dev/block/mmcblk0p2 /system/sd
cp /sdcard/app/* /system/sd/app/
cp /sdcard/app-private/* /system/sd/app-private
This time was also have to mount the ext3 as re-writeable so we can copy to it.
Hope that helps.
or just do cp /system/sd/* /sdcard
gets you all the folders in /system/sd
This makes it really easy http://forum.xda-developers.com/showthread.php?t=549876
so i want to wipe my g1 to delete all of its apps.
however I would still like to keep my contacts and sms's/emails.
is this possible? if so, how do i do it?
thanks, God Like
your email's and contacts should be synced to google's servers if you keep sync on. if not just manually sync it a few times to get it to register on the servers. you can back up your messages.
or if you have fastboot, you can make a nandroid back up. pull userdata.img and use fastboot flash data userdata.img or something like that to put it back on your phone.
totally forgot that they were on google :/
but remember i am a noob, how do i wipe lol?
also my apps are on sd so will it delete them off the partition?
also will it delete everything else on my sd?
lastly, it wont delete my rom or root will it?
thanks
well to wipe your phone, boot the phone into recovery (home and power) and there is an option in recovery to wipe your phone. that will clear cache and data.
to wipe your ext2/3/4 boot into recovery, then choose the option recovery console, once in the recovery console hit enter, there will be a prompt to hit enter, so that is how you will know you are in the recovery console. after you hit enter type
Code:
mount /system
rm -r /system/sd/*
that will delete everything off of your second partition.
if you either wipe your phone or format your sdcard, it is recommended that you reflash your rom. but you will not lose root by just wiping your phone or formatting your sdcard
david1171 said:
Code:
mount /system
rm -r /system/sd/*
Click to expand...
Click to collapse
didnt work. My partition is linux ext2 ...do i need to change the asterix to anything?
thanks
mackz said:
didnt work. My partition is linux ext2 ...do i need to change the asterix to anything?
thanks
Click to expand...
Click to collapse
/system/sd is what the phone recognizes the ext2 partition to be. try
Code:
rm /system/sd/*
or
Code:
rm -r /system/sd
or
Code:
rm /system/sd
if that doesn't work then try
Code:
mount -o rw /dev/block/mmcblk0p2 /system/sd
cd /system/sd
rm -r *
that and see if it will work.
make sure you are doing this from the recovery console.
If you are using cm recovery 1.4 you can go into the recovery console and type ums_enable to acess the sdcard with nothing running on it, I just did it to wipe my sd and start over fresh and when you are done type ums_disable to unmount the sd and type reboot to restart the phone
david1171 said:
/system/sd is what the phone recognizes the ext2 partition to be. try
Code:
rm /system/sd/*
or
Code:
rm -r /system/sd
or
Code:
rm /system/sd
if that doesn't work then try
Code:
mount -o rw /dev/block/mmcblk0p2 /system/sd
cd /system/sd
rm -r *
that and see if it will work.
make sure you are doing this from the recovery console.
Click to expand...
Click to collapse
hey, thanks this apparently worked. It replied a # which tells me it worked and when i tried to repeat the command it said (code) could not be found...but after i rebooted, all my apps are still there...and they work. I reflashed and everything still is there
any ideas?
Just got my Droid yesterday. Already have Simple ROM 1.0 running... And I'm looking on here for apps2sd and can't find anything. Any answers? Before I did the flash, I was sitting at 120 megs of memory easily. Now... I'm sitting at around 77 megs.
Please help!!!
Sent from my Droid using XDA App
Haven't tried that rom, but if you go into settings>>applications, and go into each application, there should be an option to move to SD card. Don't move your launchers, or anything that has a widget, or you will have issues. Some apps will not allow you to move them anyways. It also doesn't move the entire application, usually about half to two thirds of the app gets moved.
If his suggestion doesn't work, Cyanogenmod has Apps2SD integrated and working. I thought you had to create an ext* partition, but apparently not anymore. It works fine as normal.
I'm using CyanogenMod right now... And I hate it. I keep getting FCs from .acore, whatever that is. I think it's a Firmware System File, and it's corrupted.
And that dude's answer is like the answer for a total noob that has no clue what they're doing. Sorry, but I'm not new to this. LOL!
Back on topic.... is there any way to get Apps2SD using the SDK's ADB Shell? I think I read somewhere that there's some way of basically tricking the Market and the phone into saving Apps2SD by using the ADB. If you've got commands, I can type them.
And also.... If I were to get Apps2SD working in SimpleRom, is there going to be a way that I can just pull the apps off my SD Partition without having to go all the way back through the excruciating process of RE-DOWNLOADING ALL MY APPS from the Market?
Until we figure this out, I'll be tinkering away on my own... LOL!
Regarding the force close with acore...have you tried clearing the dalvik-cache? I've had issues with the dalvik-cache getting hosed (or having an older copy).
Quickest way of clearing the dalvik-cache:
If dalvik is on internal storage: busybox rm -f /data/dalvik-cache/*
if dalvik is on cache partition: busybox rm -f /cache/dalvik-cache/*
In both cases, reboot the phone.
If the CyanogenMod is a nightly build, I noticed it puts the dalvik-cache on /cache partition. With my Darktremor Apps2SD, this messes up the program as it completely bypasses /data/dalvik-cache. Simple workaround would be to copy the files in /cache/dalvik-cache to /data/dalvik-cache, remove the /cache/dalvik-cache, then create a symlink of /cache/dalvik-cache pointing to /data/dalvik-cache.
Classic Apps2SD (or as some would call A2SD+) can be achieved by performing the following actions (after you launch ADB Shell):
1. Find out where your EXT partition for your SD card mounted to. There's at least two mount points: /system/sd or /sd-ext
2. Perform the following command:
- for mount point /system/sd: cd /system/sd
- for mount point /sd-ext: cd /sd-ext
3. Create two directories: app and app-private:
- busybox mkdir app
- busybox mkdir app-private
- chmod 777 app
- chmod 777 app-private
4. Copy the contents of both /data/app and /data/app-private to the SD card:
For mount point /system/sd:
- busybox cp -fp /data/app/* /system/sd/app
- busybox cp -fp /data/app-private/* /system/sd/app
For mount point /sd-ext:
- busybox cp -fp /data/app/* /sd-ext/app
- busybox cp -fp /data/app-private/* /sd-ext/app-private
5. Remove the /data/app directory and /data/app-private directory:
- busybox -rf /data/app
- busybox -rf /data/app-private
6. Create symlinks to the sd card:
For mount point /system/sd:
- busybox ln -s /system/sd/app /data/app
- busybox ln -s /system/sd/app-private /data/app-private
For mount point /sd-ext:
- busybox ln -s /sd-ext/app /data/app
- busybox ln -s /sd-ext/app-private /data/app-private
And that should do it. Just make sure that the rom mounts the /dev/block/mmcblk0p2 device:
Mount to /system/sd:
- busybox -t auto -o rw /dev/block/mmcblk0p2 /system/sd
Mount to /sd-ext
- busybox -t auto -o rw /dev/block/mmcblk0p2 /sd-ext
Hope this helps.
DyMiC said:
I'm using CyanogenMod right now... And I hate it. I keep getting FCs from .acore, whatever that is. I think it's a Firmware System File, and it's corrupted.
And that dude's answer is like the answer for a total noob that has no clue what they're doing. Sorry, but I'm not new to this. LOL!
Back on topic.... is there any way to get Apps2SD using the SDK's ADB Shell? I think I read somewhere that there's some way of basically tricking the Market and the phone into saving Apps2SD by using the ADB. If you've got commands, I can type them.
And also.... If I were to get Apps2SD working in SimpleRom, is there going to be a way that I can just pull the apps off my SD Partition without having to go all the way back through the excruciating process of RE-DOWNLOADING ALL MY APPS from the Market?
Until we figure this out, I'll be tinkering away on my own... LOL!
Click to expand...
Click to collapse
I used a simple shell command in terminal emulator which worked fine for me, I believe its
pm setInstallLocation 2 (1 instead to reset to internal storage.)
one line of code, simple fix. and as stated earlier, no launchers or widgets should be moved, so if you install one after entering this, move it back to phone through application settings, manage applications.