How do I erase my internal SD card? - Samsung Galaxy Nexus

My phone is all messed up. When I plug into USB the only folder I see is the Android folder, and then the data folder. I can't access any of my other folders unless I am using Astro. I am trying to format my SD card to see if I can fix this. I went into CMW and formatted the data, the cache and the system. STILL all my files are there, and I still can't get them through USB. What am I doing wrong??? I also reinstalled my ROM and I wiped data/factory reset...

I believe there is a "wipe local storage" option (or equivalent) under "advanced" in CWM.

WiredPirate said:
I believe there is a "wipe local storage" option (or equivalent) under "advanced" in CWM.
Click to expand...
Click to collapse
Nope, I only have
Wipe Devlik Cache, Wipe Batt Stats, Partition SD card (maybe that?) and other unrelated things. It's not under mount/storage either

Relock and unlock the bootloader.. That should erase the sdcard
fastboot oem lock
fastboot oem unlock
If that doesnt work, reflash to google stock images. Look into the guides available in this thread.

No need to relock/unlock.
Just use fastboot
Code:
fastboot erase userdata
Sent from my i9250

Thanks! Is there a way to do it with plain adb instead of fastboot? in fastboot it keeps saying. "waiting for device"

notyourstar said:
Thanks! Is there a way to do it with plain adb instead of fastboot? in fastboot it keeps saying. "waiting for device"
Click to expand...
Click to collapse
Why don't you just format the drive in Windows? Seems like you're overcomplicating it.

notyourstar said:
Thanks! Is there a way to do it with plain adb instead of fastboot? in fastboot it keeps saying. "waiting for device"
Click to expand...
Click to collapse
In fastboot mode, go to device manager and update drivers. You need to install them twice to work
Sent from my Nexus 7 using Tapatalk 2

bk201doesntexist said:
No need to relock/unlock.
Just use fastboot
Code:
fastboot erase userdata
Sent from my i9250
Click to expand...
Click to collapse
this.. or you could do it in recovery.. for cwm go to mounts and storage>format sdcard and for twrp go to wipe>internal sd card

063_XOBX said:
Why don't you just format the drive in Windows? Seems like you're overcomplicating it.
Click to expand...
Click to collapse
Wrong, doesn't work.
Can't format a MTP device.

thephantom said:
In fastboot mode, go to device manager and update drivers. You need to install them twice to work
Sent from my Nexus 7 using Tapatalk 2
Click to expand...
Click to collapse
Thanks! That worked. 13 gigs free again!

notyourstar said:
Thanks! That worked. 13 gigs free again!
Click to expand...
Click to collapse
Mark the thread as solved please. (Edit thread title - first post - to include [SOLVED])
Sent from my i9250

bk201doesntexist said:
No need to relock/unlock.
Just use fastboot
Code:
fastboot erase userdata
Sent from my i9250
Click to expand...
Click to collapse
Thanks to your tip I could erase the SD content! It's probably best to do this though:
Code:
fastboot format userdata
063_XOBX said:
Why don't you just format the drive in Windows? Seems like you're overcomplicating it.
Click to expand...
Click to collapse
As mentioned not possible on MTP device.
Khizar said:
this.. or you could do it in recovery.. for cwm go to mounts and storage>format sdcard and for twrp go to wipe>internal sd card
Click to expand...
Click to collapse
This option is not available in the CWM versions I have.

Samsung Galaxy Nexus by mistake format SDcard, Sytem, Data.
:crying:
By mistake i have formatted my sdcard, system and data partitions from CMW touch recovery and now unable to mount sdcard and flash a rom.
Kindly suggest some solution.

rishisharmacse said:
:crying:
By mistake i have formatted my sdcard, system and data partitions from CMW touch recovery and now unable to mount sdcard and flash a rom.
Kindly suggest some solution.
Click to expand...
Click to collapse
My suggestion is to search and read. This has been asked and answered a million times FFS
Sent from my Galaxy Nexus

rishisharmacse said:
:crying:
By mistake i have formatted my sdcard, system and data partitions from CMW touch recovery and now unable to mount sdcard and flash a rom.
Kindly suggest some solution.
Click to expand...
Click to collapse
Fastboot flash stock images.
Sent from my Galaxy Nexus using xda premium

this f'ing thread should have been closed long ago.

rishisharmacse said:
:crying:
By mistake i have formatted my sdcard, system and data partitions from CMW touch recovery and now unable to mount sdcard and flash a rom.
Kindly suggest some solution.
Click to expand...
Click to collapse
Dude if u formatted every thing then u don't have any choice but to restore to stock.........
for u to restore gnex toolkit is your best bet..
here's the link.
http://forum.xda-developers.com/showthread.php?t=1392310

Related

Partition SD

I'm wanting to format my internal SD card and completely erase every single thing thats on it to start from scratch. I see in TWRP there is a section for partitioning SD. If I use this feature it should wipe my sd card and I can install a fresh rom right? What should I set the partion to? 2048? And use ext4?
I have a lot of junk on my sd that I no longer want and have been getting extremely annoying insufficient space errors when trying to install apps. I have a ton of space and am still getting errors. Just want to wipe it all, format the card correctly, and start over.
Please help I have tried seaching but nothing mentions TWRP or ext4.
What you are suggesting is not supported on the GNex.
Reboot into fastboot and type:
fastboot erase userdata
Now everything is gone...
I believe that option is for phones with an actual sd-card. On older phones with less storage for apps(less than 200 mb), a2sd scripts allowing you to place your apps on an ext-partition on the sd-card was very popular.
So in short it will make 2 partitions instead of 1 which you do not want on your gn.
efrant said:
What you are suggesting is not supported on the GNex.
Reboot into fastboot and type:
fastboot erase userdata
Now everything is gone...
Click to expand...
Click to collapse
Ok well I went ahead and was messing around in TWRP and set a partition size to 2048. How can I wipe out that partion and everything on the card? What if I unmount the card from the settings menu and then format? Will that work?
seh6183 said:
Ok well I went ahead and was messing around in TWRP and set a partition size to 2048. How can I wipe out that partion and everything on the card? What if I unmount the card from the settings menu and then format? Will that work?
Click to expand...
Click to collapse
Fastboot erase userdata
seh6183 said:
Ok well I went ahead and was messing around in TWRP and set a partition size to 2048. How can I wipe out that partion and everything on the card? What if I unmount the card from the settings menu and then format? Will that work?
Click to expand...
Click to collapse
You can't unmount the card because there is no card
efrant said:
Fastboot erase userdata
Click to expand...
Click to collapse
I'm terrified of fastboot for some reason lol
Sdobron said:
You can't unmount the card because there is no card
Click to expand...
Click to collapse
It says right there in settings, unmount sd.
seh6183 said:
I'm terrified of fastboot for some reason lol
Click to expand...
Click to collapse
You should be more terrified of yourself trying partition options that aren't supported on the galaxy nexus.
Your original question has been answered twice by efrant.
Boot into the bootloader
Type fastboot erase userdata
Fastboot reboot.
Done.
Sent from my Nexus 7 using xda premium
seh6183 said:
I'm terrified of fastboot for some reason lol
Click to expand...
Click to collapse
Misplaced fear.
seh6183 said:
It says right there in settings, unmount sd.
Click to expand...
Click to collapse
I don't think you understand. The GNex has no sdcard. "sdcard" on the GNex is just a folder in the userdata partition, so...
EDIT: Ninja'd by El Daddy.
El Daddy said:
You should be more terrified of yourself trying partition options that aren't supported on the galaxy nexus.
Your original question has been answered twice by efrant.
Boot into the bootloader
Type fastboot erase userdata
Fastboot reboot.
Done.
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
efrant said:
Misplaced fear.
I don't think you understand. The GNex has no sdcard. "sdcard" on the GNex is just a folder in the userdata partition, so...
EDIT: Ninja'd by El Daddy.
Click to expand...
Click to collapse
Ok doing it now. Is this the same thing as doing a data/cache wipe through CWM?
seh6183 said:
Ok doing it now. Is this the same thing as doing a data/cache wipe through CWM?
Click to expand...
Click to collapse
No. When you erase the userdata partition using fastboot, everything in that partition is gone, including all your apps and app data, as well as everything in /sdcard. If you wipe data in CWM, it wipes your apps and app data, but not /sdcard. (It is specifically set up that way to prevent you from losing your backups, etc. stored in /sdcard.)
seh6183 said:
Ok doing it now. Is this the same thing as doing a data/cache wipe through CWM?
Click to expand...
Click to collapse
No. It erases everything on the phone
Sent from my Galaxy Nexus using Tapatalk 2

Formatting

Hi after upgrading to JB i am getting some issue with my phone. If i format my htc one x with gparted and then re-install the rom . Will it be ok to do that ?
I would be cautious doing that...
Better to factory reset and erase the sdcard from within your recovery (TWRP or CWM).
peedub said:
I would be cautious doing that...
Better to factory reset and erase the sdcard from within your recovery (TWRP or CWM).
Click to expand...
Click to collapse
OK Thanks. But when erasing the sdcard (That is the built in sdcard) it will erase everything so will i still be able to connect as a drive so that i can copy the rom into it.
rajesh1108 said:
OK Thanks. But when erasing the sdcard (That is the built in sdcard) it will erase everything so will i still be able to connect as a drive so that i can copy the rom into it.
Click to expand...
Click to collapse
As long as the recovery is either the latest CWM or TWRP, you can mount the USB Storage and put ROM.zip on it. Not with a stock recovery.
And be sure to have CWM 5.8.4.0. The usb mounting doesn't work with earlier versions.
Sent from my HTC One X
Yep. It's fine to erase everything, as long as you have latest CWM or TWRP on there, you can still mount your phone and put a rom on there to flash
Good luck!
peedub said:
Yep. It's fine to erase everything, as long as you have latest CWM or TWRP on there, you can still mount your phone and put a rom on there to flash
Good luck!
Click to expand...
Click to collapse
Can you please explain step by step how to do it?
I've never format my internal SDcard so
Just connect the phone to the pc nd format the sd card like any USB diskdrive .... what's difficult about that !
Mr Hofs said:
Just connect the phone to the pc nd format the sd card like any USB diskdrive .... what's difficult about that !
Click to expand...
Click to collapse
Well sorry for asking...tons of topics about it on XDA so I am not the only one how wants to know the proper way...
FCDHBubbles said:
Well sorry for asking...tons of topics about it on XDA so I am not the only one how wants to know the proper way...
Click to expand...
Click to collapse
Well now you know :thumbup:
Merry Christmas !

tuch screen is not working and stuck on htc logo

hey guys i was try to root my htc one x 4.2.2 and after the restart the phone wont turn on and when i went to TWRP recovery to restore the backup the I find that my touch screen in not responding
can someone help me please?
max-halmat said:
hey guys i was try to root my htc one x 4.2.2 and after the restart the phone wont turn on and when i went to TWRP recovery to restore the backup the I find that my touch screen in not responding
can someone help me please?
Click to expand...
Click to collapse
When you restore the backup, do full wipe before restoring? If not try again like this
- First flash boot.img from backup file as "fastboot flash boot boot.mg" then "fastboot erase cache"
- Go to recovery do full wipe then restore backup.
- Reboot
virgolib said:
When you restore the backup, do full wipe before restoring? If not try again like this
- First flash boot.img from backup file as "fastboot flash boot boot.mg" then "fastboot erase cache"
- Go to recovery do full wipe then restore backup.
- Reboot
Click to expand...
Click to collapse
I Just Found that my internal SD card has formated and my device is without any packup and .zip file to install it any help?
max-halmat said:
I Just Found that my internal SD card has formated and my device is without any packup and .zip file to install it any help?
Click to expand...
Click to collapse
Go there and find the nandroid backup according to your CID & main ver; rom >>>>>http://forum.xda-developers.com/showthread.php?t=1975140
I can't open the internal SD ... how to copy this to the device??
max-halmat said:
I can't open the internal SD ... how to copy this to the device??
Click to expand...
Click to collapse
Search how to ADB push to device.
Mount as usb mass storage device inside the recovery is easier
sent from my .......
Mr Hofs said:
Mount as usb mass storage device inside the recovery is easier
sent from my .......
Click to expand...
Click to collapse
Thanks Mr.Hofs It works ......... :good::good::good:
I thought my Device is dead and I will not be able to use it anymore .

Same old bug: 32gb Nexus 5X showing only 16gb

I've had the same bug pop up on a 32gb Nexus 5 and Nexus 7 2013. Basically, sometimes when you flash a factory image, it formats the userdata partition as 16gb (well, actually 10.55gb or so).
The only fix I've found so far is a factory reset. I do have my boot loader unlocked so I could do a nandroid backup but that is a lot of work.
If anyone knows of a better solution to resize the partition without nuking my setup, let me know.
Just wipe the device into recovery.
Sent from my Nexus 5 using Tapatalk
TecQuality said:
Just wipe the device into recovery.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Yeah, I know that. I was just hoping to avoid that, but it looks like that isn't possible.
TecQuality said:
Just wipe the device into recovery.
Click to expand...
Click to collapse
I'm having the same problem. I don't mind wiping. I downloaded the latest factory image and extracted the .img file for each partition, then I ran
fastboot flash boot boot.img
fastboot flash userdata userdata.img
....
I still get 10GB user storage space
P.S. bootloader is oem unlocked
chochopk said:
fastboot flash boot boot.img
fastboot flash userdata userdata.img
....
I still get 10GB user storage space
P.S. bootloader is oem unlocked
Click to expand...
Click to collapse
You need to either fastboot format userdata (you will obviously lose your data doing this) or resize2fs from a recovery such as TWRP. After this, you will see your missing space.
This is not a bug. This is user error. Don't flash the userdata image. All it is, is a blank filesystem.
doitright said:
This is not a bug. This is user error. Don't flash the userdata image. All it is, is a blank filesystem.
Click to expand...
Click to collapse
How is it user error if just flashing user data, empty or not, results in the system only recognizing part of the available storage space? I would think one of two things: 1) It automatically recognizes the amount of storage or 2) separate factory images for various storage models. 2) sounds like an inelegant solution and I don't know why 1) doesn't just happen.
Do you have further explanation than just saying it is user error? Why exactly is this happening and is there a way to make it never happen? Because it happens every time I flash.
ahow628 said:
Do you have further explanation than just saying it is user error? Why exactly is this happening and is there a way to make it never happen? Because it happens every time I flash.
Click to expand...
Click to collapse
Because userdata.img ***IS A FILESYSTEM***.
You stop it from happening by NOT FLASHING THAT FILESYSTEM.
This is not that complicated.
Don't flash the filesystem, and then the filesystem won't be flashed.
doitright said:
Because userdata.img ***IS A FILESYSTEM***.
You stop it from happening by NOT FLASHING THAT FILESYSTEM.
This is not that complicated.
Don't flash the filesystem, and then the filesystem won't be flashed.
Click to expand...
Click to collapse
So to clarify, when I'm flashing a factory image and I want a blank slate, I should do
Code:
fastboot flash <partition name> <partition image>
for every each partition except userdata.
For user data, I should do
Code:
fastboot erase userdata
and it should solve the problem?
Edit: Found this in the fast boot help file:
options:
-w erase userdata and cache (and format
if supported by partition type)
Pbrah said:
... or resize2fs from a recovery such as TWRP. After this, you will see your missing space.
Click to expand...
Click to collapse
This.. TWRP advance format
Born<ICs said:
This.. TWRP advance format
Click to expand...
Click to collapse
Resize or format what partition exactly? I am missing 8gigs on my 32 gig 5x...
stackz07 said:
Resize or format what partition exactly? I am missing 8gigs on my 32 gig 5x...
Click to expand...
Click to collapse
.
Under advanced it's 2fs.
Supposedly this frees all available space.
.

I cannot see storage ....

I am in TWRP I ADB sideloaded BenzoROM and cannot see it on the phone. I can get into BL and TWRP. Any ideas how to fix, flash, format internal storage, fix contexts, partition SD card or ADB BenzoROM?
Scottay5150 said:
I am in TWRP I ADB sideloaded BenzoROM and cannot see it on the phone. I can get into BL and TWRP. Any ideas how to fix, flash, format internal storage, fix contexts, partition SD card or ADB BenzoROM?
Click to expand...
Click to collapse
Did you format data in twrp? If so: fastboot boot twrp-3.2.0.0-marlin.img
format data again should show the internal storage
liam_davenport said:
Did you format data in twrp? If so: fastboot boot twrp-3.2.0.0-marlin.img
format data again should show the internal storage
Click to expand...
Click to collapse
I did format data in TWRP. I just FB TWRP and format data. I'll let you know the results.
Scottay5150 said:
I did format data in TWRP. I just FB TWRP and format data. I'll let you know the results.
Click to expand...
Click to collapse
Yes after formating reboot to twrp and format again always fixes it for me :good:
Scottay5150 said:
I did format data in TWRP. I just FB TWRP and format data. I'll let you know the results.
Click to expand...
Click to collapse
YAY, success!!! Now, what if I want to go BenzoROM? Flash factory? All I am seeing in storage from the desktop is TWRP. I am suffering from PTSD with the issues I have been having.
Scottay5150 said:
YAY, success!!! Now, what if I want to go BenzoROM? Flash factory? I am suffering from PTSD with the issues I have been having.
Click to expand...
Click to collapse
Copy Benzo Rom and twrp zip to internal storage
Flash the Rom and Flash the twrp zip
Reboot = Profit!
liam_davenport said:
Copy Benzo Rom and twrp zip to internal storage
Flash the Rom and Flash the twrp zip
Reboot = Profit!
Click to expand...
Click to collapse
HOLEEEEE COW I have OS again!! THANK YOU!
Scottay5150 said:
HOLEEEEE COW I have OS again!! THANK YOU!
Click to expand...
Click to collapse
Like seriously... This whole thread would have been prevented if OP would just read... Smh. Please delete all this guys post Mods..

Categories

Resources