Partition SD - Samsung Galaxy Nexus

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

Related

Factory Reseting

Since this phone does not have an SD card, does this mean that anytime I want to try a new ROM or something and have to factory reset, that everything off my phone will be erased? Including pictures and ect? I cannot believe they didn't leave SD card support for this phone, really upset about that. It takes too long to transfer my 10gig+ data from my sdcard to this phone. I don't want to have to go through that constantly with this phone.
No the stuff on your phone will not be wiped. The whole "sdcard" thing is a misconception.
The phone itself has a internal storage.
Other phones such as Galaxy S2/S1... have a internal storage and external. Which is removable.
HerroMoto said:
Since this phone does not have an SD card, does this mean that anytime I want to try a new ROM or something and have to factory reset, that everything off my phone will be erased? Including pictures and ect? I cannot believe they didn't leave SD card support for this phone, really upset about that. It takes too long to transfer my 10gig+ data from my sdcard to this phone. I don't want to have to go through that constantly with this phone.
Click to expand...
Click to collapse
Well, if you flash a new a new system image only, then I guess the stuff located in the userdata partition will not be erased...
zephiK said:
No the stuff on your phone will not be wiped. The whole "sdcard" thing is a misconception.
The phone itself has a internal storage.
Other phones such as Galaxy S2/S1... have a internal storage and external. Which is removable.
Click to expand...
Click to collapse
... but if you flash the userdata partition, ALL of your data will be erased, because /sdcard is actually a link to /data/media
If it was me I would make a backup anyway for the sake of a few minutes before flashing any ROM.
Flashing a new rom does NOT erase your data, ie photos - downloads - music etc.
Vangelis13 said:
Flashing a new rom does NOT erase your data, ie photos - downloads - music etc.
Click to expand...
Click to collapse
Have you tried it? Try flashing one of the stock builds from Google found here and tell me if your data gets erased. I can tell you that mine did, but I make sure to make a backup of everything (like daleski75 said earlier) before flashing anything related to the data partition.
as far as I have seen the stock recovery will wipe the /sdcard partition. CWM recovery will not
fundo51 said:
as far as I have seen the stock recovery will wipe the /sdcard partition. CWM recovery will not
Click to expand...
Click to collapse
Is there any way to flash a ROM or factory image in fastboot without wiping the SD card partition? I can only get my device to show up in fastboot, not ADB.
PolishPauL11 said:
Is there any way to flash a ROM or factory image in fastboot without wiping the SD card partition? I can only get my device to show up in fastboot, not ADB.
Click to expand...
Click to collapse
Remove userdata.img from the Google images.
Honestly I would work on getting ADB to work properly. It will give you much more flexibility in these situations.
Sent from my Galaxy Nexus using XDA App
i got the same prob i just rooted, im use to having a sd card so whats the answer if you flash in cwm do a wipe in cwm it wont erase the internal storage? because it sux reloading everything from the computer via usb
dre4402 said:
i got the same prob i just rooted, im use to having a sd card so whats the answer if you flash in cwm do a wipe in cwm it wont erase the internal storage? because it sux reloading everything from the computer via usb
Click to expand...
Click to collapse
No it won't wipe the SD card partition unless you unlock the bootloader or flash the factory images in fastboot.

Non deleteable files?

Is there a way to make a folder or does a folder already exist that will not be deleted when you wipe data to flash a new rom? I want to flash a new rom but do not want to lose my music and pictures and have to re-transfer them from my computer. Any help is appreciated
Sent from my Galaxy Nexus using XDA
happymfeet said:
Is there a way to make a folder or does a folder already exist that will not be deleted when you wipe data to flash a new rom? I want to flash a new rom but do not want to lose my music and pictures and have to re-transfer them from my computer. Any help is appreciated
Sent from my Galaxy Nexus using XDA
Click to expand...
Click to collapse
Flashing a rom doesn't wipe your sdcard.
Unlocking the bootloader wipes your sdcard.
Just flash the rom, you will lose apps and user data but pictures, music etc. That are on the sdcard are safe.
nodstuff said:
Flashing a rom doesn't wipe your sdcard.
Unlocking the bootloader wipes your sdcard.
Just flash the rom, you will lose apps and user data but pictures, music etc. That are on the sdcard are safe.
Click to expand...
Click to collapse
I'm assuming its a virtual SD card of some sort?
Sent from my Galaxy Nexus using XDA
Ya pretty much.
Its the sdcard partition of the total 16/32gb total.
The rest is split into recovery, system, boot, cache and data.
Flashing a rom overwrites those, not the sdcard partition.
Just make sure to do a full wipe in cwm before you flash a rom.
Yeah, it's not really an SD card but a special partition of the internal storage that gets treated like an SD card. If you have the stock recovery, a factory reset will erase the SD-like partition; ClockworkMod Recovery will not erase it.
If you do unlock your bootloader (via the fastboot oem unlock route), everything on your phone will be wiped - SD card data included - but that is really the only time you have to worry about losing SD card data.
Thanks for all your answers I understand now. Next up flashing AOKP!
Sent from my Galaxy Nexus using XDA
nodstuff said:
[snip]
Flashing a rom overwrites those, not the sdcard partition.
Click to expand...
Click to collapse
codesplice said:
Yeah, it's not really an SD card but a special partition of the internal storage that gets treated like an SD card. If you have the stock recovery, a factory reset will erase the SD-like partition; ClockworkMod Recovery will not erase it.
If you do unlock your bootloader (via the fastboot oem unlock route), everything on your phone will be wiped - SD card data included - but that is really the only time you have to worry about losing SD card data.
Click to expand...
Click to collapse
You guys forgot to mention that /sdcard is actually just a symlink to /data/media, so if you wipe or flash the data partition in fastboot (or flash a stock ROM) it will erase /sdcard.
Sent from my Galaxy Nexus using Tapatalk

How to wipe internal storage?

So I have a lot of junk on the internal phone storage and want to wipe it
Last time I went and wiped the /data/ partition a lot of **** broke, but that was a different ROM/device/recovery all together so I have no idea what I'm doing now
That being said, My first guess is to issue a /data/ wipe because the SDcard is stored under /data/mnt or /data/media or something like that... or is it system? I know wiping system is bad for something
anyway, obviously dont know what to do so I'm asking... how do I wipe my internal storage? I tried re partitioning but that did nothing
^ This. I have a similar question. I'd like to a total wipe back to how I got it. (Well except my rom. I wan't to keep that)
I was thinking maybe a factory reset from the phone or fastboot erase <whatever the partition is called>
Not sure how to do it, but I've been poking around for an hour or so and cant find it :<
Should be able to Fastboot erase system.img boot.img and recovery.img and then Fastboot flash system stock-system.img etc..etc.. then relock and unlock the bootloader and then relock it once more.
Don't quote me on this... I'm not entirely sure... first Fastboot device ever so... take that with a grain of salt.
Sent from my sprint galaxy nexus
XFreeRollerX said:
So I have a lot of junk on the internal phone storage and want to wipe it
Last time I went and wiped the /data/ partition a lot of **** broke, but that was a different ROM/device/recovery all together so I have no idea what I'm doing now
That being said, My first guess is to issue a /data/ wipe because the SDcard is stored under /data/mnt or /data/media or something like that... or is it system? I know wiping system is bad for something
anyway, obviously dont know what to do so I'm asking... how do I wipe my internal storage? I tried re partitioning but that did nothing
Click to expand...
Click to collapse
What exactly do you want to erase? The stuff on /sdcard? All app data? Both?
I believe the easiest way is to lock and unlock the boot loader. This wipes the internal storage on the device
Sent from my Galaxy Nexus using xda premium
fastboot erase userdata
Zepius said:
fastboot erase userdata
Click to expand...
Click to collapse
This. This is the easiest way.
Sent from my i9250
Can't you just go to backup and restore in settings and hit wipe?
Zepius said:
fastboot erase userdata
Click to expand...
Click to collapse
Alright to clarify
I wanted to wipe /sdcard/ contents due to a lot of garbage. In particular, Google music had "cached" about 4GB of songs and wasn't using the cache on a new ROM
I also wanted to erase everything (full wipe) to install new ROM but that was different
I ended up trying
fastboot erase userdata
and had great success for what I wanted.
I did not feel that messing with the bootloader (locking it, etc) would help me at all as other's posted mixed results.
A factory reset from Android OS did not wipe the SD card
Using partitioning tools didn't work for obvious reasons
Nothing in CWM or ADB would erase (short of removing the /sdcard/ partition/mount under /data)

How do I erase my internal SD card?

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

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.
.

Categories

Resources