Yes, I Am The Idiot Who Repartitioned His SD Cards - Atrix 4G Q&A, Help & Troubleshooting

Ok, through a truly noob-ish and inexplicable series of events, I have repartitioned my internal AND!!! external sd cards using my Mac (specifically with disk manager). Short story is that i now have two FAT32 Partitions that my Macbook can see but of course the phone can't!!! I've been fooling around with fastboot to see if I can restore the partitoins but am having no luck. The Romracer CWM recovery doesn't appear to help either. Any thoughts on how I can repartition and remoutn /sdcard and /sd-ext properly? ADB? A hammer?

a hammer to the mac.

that sux. i been looking for a method to regain lost space too, but people recommend gparted or other partition managers..which i cant get to work. i google searched left n right but nothing i came across has worked ;/

Related

[Q] [SDCARD] Compacity Problem! HELP FAST#

Hi XDA Members and staff!
Today i have bought a brand new Samsung 32GB Class 10 + High speed MicroSD Card. I just placed a new rom on the SD CARD and flashed it on to my HTC HD2 as i got to the Home screen i didn't see the Preparing SD card notification so i connected my phone to my computer and guess what it didn't show up... Then i took my old LG phone and it worked. I went to format it and then again guess what; it was 31.6MB Free of 31.6MB! Where did my memory go? OK i right clicked F: selected "format" tried making it FAT32 but is not there... So i done it on FAT; still no luck... I then tried SDFormatter no luck; it wasn't even capable of Fully erasing it because it wasn't compatible with the LG phone.... OMFN! I am so unlucky! God hates me!
Can Somebody help me out?
God does not hate you that's impossible. God loves you. What kind of SD is this ??? Also try this
http://forum.xda-developers.com/showpost.php?p=10878511&postcount=8311
If it doesn't work send Me a pm and after I get home from church I'll check to see if your issue still remains. God Bless
#Root-Hack_Mod*Always\
My suggestion is that you try to erase all data from the SD card, even partition data. I don't use Windows a lot these days, so I can't point you to a useful utility, but it's very simple in Linux-based systems if you use GParted. If you don't have GParted or even Linux then download GParted Live from gparted.sourceforge.net , it's a bootable cd/usb-image you can run without installing anything on your computer.
Then in GParted, remove all partitions, create a new FAT32 partition and format it.
I've fixed some corrupt SD-cards this way myself. I've also seen some wierdly factory formatted SD-cards during the years.

CWM - can't see SDCard (except under "Install zip from SDCard")

Weird,
Android says my SD card is corrupt and only offers to format it.
Windows says the same.
CWM doesn't, as far as I can see, see it either, EXCEPT when I ask it to install a zip from it... it can see everything on the SD card and installs successfully from it!
Problem is, I need to copy stuff from the card before reformatting it.
Any ideas on how I might do that?
P.S. Yes, it is definitely the SD card and not the internal one
P.P.S. Windows doesn't see the phone when connecting under CWM...should do though shouldn't it. Perhaps that's my problem..?
Thanks.
Are you rooted? If yes, maybe running e2fsck on the command-line will sufficiently recover it to be mounted.
Alternatively you can use Recuva under Windows to find and rescue the files you need, or chkdsk to attempt a repair.
Is it a Fat32 or exFat (Fat64) filesystem and is there any reason such as removing it without ejecting, that could have caused this?
Sent from my GT-I9300 using xda premium
d4fseeker said:
Are you rooted? If yes, maybe running e2fsck on the command-line will sufficiently recover it to be mounted.
Alternatively you can use Recuva under Windows to find and rescue the files you need, or chkdsk to attempt a repair.
Is it a Fat32 or exFat (Fat64) filesystem and is there any reason such as removing it without ejecting, that could have caused this?
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
Thanks for the prompt reply.
It is rooted, although I tried to install this e2fsck through CWM and it gave me generic errors. Not being a Linux man I wouldn't feel that comfy with stuff like that anyway though.
The card is exFAT so I think Chkdsk (Win7) won't fix anything IFAIK. Oh, Windows says the card isn't formatted though, so won't do anything.
Recuva is unable to determine the file system.
:-(
I installed CM9 from the card, which then couldn't read it (I didn't know CM9 didn't support exFAT), so I restored my previous backup from the Sammy rom so it would be back to normal. But when it booted up the first time post-restore, it said the card was corrupted.
The kernel is what defines whether a filesystem can be or can't be mounted since it includes the filesystem logic. So replacing the kernel always helps if a ROM cannot mount the filesystem.
(Except for special userland filesystem based on Fuse)
It sounds like the partition table got badly corrupted, either by software or hardware.
I'm sure it didn't give you the output "generic errors". We're here to help guide you through the process if you have not enough knowledge but you'll at least have to try. However I don't know how I managed to type e2fsck, since that one is for Ext2 filesystems which has nothing in common with Fat64. You'll have to use a computer to repair it...
After having plugged in the card, could you please go to the Start menu and type 'diskmgmt.msc', then hit ENTER.
Check if the removable disk is initialized and contains a partition (aswell as what the type of the partition is)
It probably shows an unitialized disk, a disk with a RAW partition or a disk without any partitions.
If that is the case, try http://www.cgsecurity.org/wiki/TestDisk
You'll find a reference to a lot of other (free and paid) tools on this page: http://www.hiren.info/pages/bootcd in the Section "Recovery Tools"
Depending of what your data is worth to you, you'll want to get a bitwise backup of the content first so if you screw up during recovery nothing is really lost.
I wasn't being lazy, just keeping in mind how important the data is and how much effort it's worth expending.
The answer was 'not that important' and I ended up formatting it using the very brilliant fat32format.exe (after trying with Windows Pish 7).
It must have been pretty screwed as TestDisk found nothing of any value there at all. (It was RAW in Windows).
But the upshot is I now have a FAT32 formatted 64GB (hopefully, unless it's a dodgy one) SD card that will work on Sammy and AOSP roms.
Thanks for your time, d4f.

Internal SD card partition lost, help!

SOLVED - did a factory reset from inside CM9 and checked the box to format the sd card (god knows why this worked but the one in recovery didn't..also, why the hell didn't i think of this sooner? could have saved myself a week of searching)
while i was tinkering around trying to fix "mediaserver" (was killing my battery) i started to format my internal sd card memory (after backing it up)...for whatever reason i choose to do this via windows with the quick format off (wanted to scan for bad sectors and crap) then i forgot it was still running and unplugged my phone :facepalm:
novice mistake, i know.
anyhow, i've got adb up and running again, but i haven't been able to find a guide to fix it, or the info to bring up the partition tables, most sites give me specific commands to deal with the external card, but not ones to figure out how CM9\sgs2 is partitioned
ideally i'd like to just restore the partition, I do have backups if that's not possible though.
Phone is up and running fine minus that partition (which of course many apps rely on to store data, most don't have options to redirect it to my sd card.
any info on how CM9\sgs2 is partitioned or how to use ADB to find out would be greatly appreciated
Boot into your recovery and format your SD from within the recovery. That should fix it.
Lennyz1988 said:
Boot into your recovery and format your SD from within the recovery. That should fix it.
Click to expand...
Click to collapse
already tried that, the partition fails to mount, when i put my external sd card in the "sd card" partition mounts, but emmc doesn't (the sd card partition now being my external instead of my internal memory)
anyone even have a idea where i can find info on partitioning the internal memory? i've been searching as much as i can but i mostly only get link2sd pages, nothing on how to actually partition the internal memory
::edit:: i've made some progress, i've managed to install and operate parted via adb, but the version i have doesn't seem to support fat 32, i deleted then remade the partition but the phone still won't recognize it. cwm recovery is telling me "failed to mount /dev/block/mmcblk11 (invalid argument)" other pages seemed to imply that if i can get the partition to fat32 with a block size of 4096 it might work.
a factory reset from inside CM9 with the sd card format box checked did the trick, not sure why it took me a week of googling to figure that out :/ (wtb a facepalm emoticon)
"CM" you mean ?
CM = CyanogenMode?
CyanogenMod Kernel for Galaxy ?
"CyanogenMode" by installin from default ClockWorkMode? section of "Install ZIp from SD" ?
I need to re-partition Internal Memory too.
searched & found this your Topic.
would you please tell me what exactly has been done to fix re-partitioning internal memory?
maybe it can be so Important and Sticky.
Reza_Sadeghi said:
"CM" you mean ?
CM = CyanogenMode?
CyanogenMod Kernel for Galaxy ?
"CyanogenMode" by installin from default ClockWorkMode? section of "Install ZIp from SD" ?
I need to re-partition Internal Memory too.
searched & found this your Topic.
would you please tell me what exactly has been done to fix re-partitioning internal memory?
maybe it can be so Important and Sticky.
Click to expand...
Click to collapse
Actually, I have had the same problem, and if your device is not recognizing/mounting your internal SDcard, Bad news! You`ve lost it...
See this post for more details: http://forum.xda-developers.com/showthread.php?t=1665123
Next time think on a HTC or (even) Nokia, when you are about to purchase a new gadget (samsung, never ever more...:crying.
SociedadePsicopata said:
Actually, I have had the same problem, and if your device is not recognizing/mounting your internal SDcard, Bad news! You`ve lost it...
See this post for more details: http://forum.xda-developers.com/showthread.php?t=1665123
Next time think on a HTC or (even) Nokia, when you are about to purchase a new gadget (samsung, never ever more...:crying.
Click to expand...
Click to collapse
it's been a while, but it wasn't lost, i just had to repartition it, i described how i did this a few posts up.
i'm quite happy with my samsung sgsII, i'm not familiar with some of the other devices but i haven't run into any issues i can blame samsung for.
CM9 is exactly what i said it was, cyanogenmod 9. it's a whole rom package, not just a kernal

[Q] Only acces on sd-card thru usb-mass storage

Hi there,
I have a HTC wildfire [buzz] -s off, I rooted it, got cm7 on it. Now the problem is, the SD-card worked perfectly, and after a while the phone doesn't recognize my SD-card anymore. At some point it eats 4g away from my partitionated 8g SD. Then suddenly i have no SD at all anymore atleast on software cm7 running, however when I boot into recoverymode i can only have acces to that sd card while in usb mass storage device thru my pc. But can't install any apps since I was gonna install 'gapps' when i noticed SD was not recognized by cm7.... I formated mulitple times using sd-format and minitool partion a few times with different partitions one fat-32 other ext2. now 4g formatted just fat 32.
Can anybody give me a work around? I'm fairly new to rooting. So keep it a bit simple if possible.
Thanks and kind regards.
cluster56 said:
Hi there,
I have a HTC wildfire [buzz] -s off, I rooted it, got cm7 on it. Now the problem is, the SD-card worked perfectly, and after a while the phone doesn't recognize my SD-card anymore. At some point it eats 4g away from my partitionated 8g SD. Then suddenly i have no SD at all anymore atleast on software cm7 running, however when I boot into recoverymode i can only have acces to that sd card while in usb mass storage device thru my pc. But can't install any apps since I was gonna install 'gapps' when i noticed SD was not recognized by cm7.... I formated mulitple times using sd-format and minitool partion a few times with different partitions one fat-32 other ext2. now 4g formatted just fat 32.
Can anybody give me a work around? I'm fairly new to rooting. So keep it a bit simple if possible.
Thanks and kind regards.
Click to expand...
Click to collapse
Try Using SD Formater tool I used in windows fixed loads of SD card Problems for me the link: http://panasonic.jp/support/global/cs/sd/download/
Now I use Gparted in linux as no longer use Windows ever
already did that mate, got that tool but didn't resolve the problem
thx for the reply tho
sd-card problem
well, the phone does recocgnize when I remove the card.... strangely enough, not when I put it back inside
cluster56 said:
Hi there,
I have a HTC wildfire [buzz] -s off, I rooted it, got cm7 on it. Now the problem is, the SD-card worked perfectly, and after a while the phone doesn't recognize my SD-card anymore. At some point it eats 4g away from my partitionated 8g SD. Then suddenly i have no SD at all anymore atleast on software cm7 running, however when I boot into recoverymode i can only have acces to that sd card while in usb mass storage device thru my pc. But can't install any apps since I was gonna install 'gapps' when i noticed SD was not recognized by cm7.... I formated mulitple times using sd-format and minitool partion a few times with different partitions one fat-32 other ext2. now 4g formatted just fat 32.
Can anybody give me a work around? I'm fairly new to rooting. So keep it a bit simple if possible.
Thanks and kind regards.
Click to expand...
Click to collapse
when did this started because it happened to me after i partitioned my sdcard try deleting all partitions then see what happens
problem is solved
the X Machine said:
when did this started because it happened to me after i partitioned my sdcard try deleting all partitions then see what happens
Click to expand...
Click to collapse
Well it seems the partition I made was lost, I ran minitool partition lost and it did the trick, found 4gb partition back, deleted all and made a new one, sd-card works again on phone, me happy....
Thanks for the reply's tho
Kind regards
Cluster
cluster56 said:
Well it seems the partition I made was lost, I ran minitool partition lost and it did the trick, found 4gb partition back, deleted all and made a new one, sd-card works again on phone, me happy....
Thanks for the reply's tho
Kind regards
Cluster
Click to expand...
Click to collapse
and me want to see a thx :good:

Anyway to move apps to SD card, without formatting to internal storage?

That. I'm rooted with TWRP recovery, using the AOSP Extended ROM v3.2 (7.1.1 nougat).
I dont want to format my sdcard to internal, because I use it to save files and backups, and zip files to flash on an emergency.
Is there an alternative? I can't seem to find one.
It would be cool to make it think it has 2 sd cards, 1 internal and 1 external, while in real it's just one that is formatted in 2 partitions, but I don't think thats possible.
Thanks.
makmm said:
That. I'm rooted with TWRP recovery, using the AOSP Extended ROM v3.2 (7.1.1 nougat).
I dont want to format my sdcard to internal, because I use it to save files and backups, and zip files to flash on an emergency.
Is there an alternative? I can't seem to find one.
It would be cool to make it think it has 2 sd cards, 1 internal and 1 external, while in real it's just one that is formatted in 2 partitions, but I don't think thats possible.
Thanks.
Click to expand...
Click to collapse
What you want is possible. I'm using it on my moto e and moto z play.
I'll try to dig up the link for the procedure. You need a PC, and a basic knowledge of adb.
Edit: here you go. http://blog.sam.liddicott.com/2016/02/android-6-semi-adopted-storage.html?m=1
Here's what it looks like on Z play.
dandrumheller said:
Here's what it looks like on Z play.
Click to expand...
Click to collapse
Is it safe to do? In worst case scenario, will it brick my phone?
soft brick or hard brick?
(yes, i'm obviusly going to backup the contents of my sd card.)
BTW, thanks! if this works, ily so much lol
makmm said:
Is it safe to do? In worst case scenario, will it brick my phone?
soft brick or hard brick?
(yes, i'm obviusly going to backup the contents of my sd card.)
BTW, thanks! if this works, ily so much lol
Click to expand...
Click to collapse
It will nuke whatever is on your SD card. Won't touch a thing on your phone. Just follow the directions, he tells you how to confirm you're looking at the proper storage device.
AFAIK there are no negative effects beyond the normal additional read write cycles due to adoptable storage. Been using one card like this on the e (backup device, low use) for six months, and the other one for about a month now on the Z (high use daily driver). Working fine for me.
dandrumheller said:
It will nuke whatever is on your SD card. Won't touch a thing on your phone. Just follow the directions, he tells you how to confirm you're looking at the proper storage device.
AFAIK there are no negative effects beyond the normal additional read write cycles due to adoptable storage. Been using one card like this on the e (backup device, low use) for six months, and the other one for about a month now on the Z (high use daily driver). Working fine for me.
Click to expand...
Click to collapse
Seems legit. I have a 32gb sd (max for the Moto E surnia) and going for 25% internal (about 8gb) and 75% external (about 24gb.)
Thanks a lot!
EDIT: OK. I did it, but i forgotten to eject it, so now it's corrupted, and I can't seem to find a way to eject it to try to do it again, as when I press on the SD card, it tells me to format it. If I format it (temporarely, to then do it again) it will still say "Corrupted". EDIT2: I tried formatting it as portable and it worked, but then when I ejected with the icon next to the sd card, and then doing the commands gives the same result as before. "Portable Storage" is okay, named as "sdcard1 / vfat" but internal says "Corrupted". What do I try now?
makmm said:
Seems legit. I have a 32gb sd (max for the Moto E surnia) and going for 25% internal (about 8gb) and 75% external (about 24gb.)
Thanks a lot!
EDIT: OK. I did it, but i forgotten to eject it, so now it's corrupted, and I can't seem to find a way to eject it to try to do it again, as when I press on the SD card, it tells me to format it. If I format it (temporarely, to then do it again) it will still say "Corrupted". EDIT2: I tried formatting it as portable and it worked, but then when I ejected with the icon next to the sd card, and then doing the commands gives the same result as before. "Portable Storage" is okay, named as "sdcard1 / vfat" but internal says "Corrupted". What do I try now?
Click to expand...
Click to collapse
Hmmm. Probably better off to reformat the whole card to a single fat32 partition (use a card formating tool on the pc for this) and start over. Not sure if or how to do it via adb if it's seeing one partition as corrupt.
Fwiw, 32gb is the max " officially " supported SD card size on the surnia, but it works fine with bigger cards. I'm running 64gb.
I'm going to try a solution that is on the comments of the blog post. Thanks!
EDIT: tried the solution, heres the comment:
A Bored Boy 16 September 2016 at 19:54
For anyone that is getting the corrupted error on their SD card when creating a mixed partition. Here is the solution.
After you have partitioned the disk and while your SD card is corruped enter In the terminal the following:
$> adb shell sm list-volumes all
Which will list your volumes, for example:
private mounted null
public:179,1 mounted B5B1-140C
private:179,3 unmountable null
emulated mounted null
Then enter the following replacing 179,3 with whichever disk numbers you are given:
$> adb shell sm format private:179,3
$> adb shell sm mount private:179,3
Now your SD card in device storage should be properly mounted and your portable storage will still be there.
This worked on my LG G5 and should work on the S7.
On the 2nd and 3rd step I get the following error:
▶ adb shell sm mount private:179_67
Error: java.lang.IllegalStateException: command '55 volume mount private:179_67 0 -1' failed with '400 55 Command failed'
Help?
dandrumheller said:
Hmmm. Probably better off to reformat the whole card to a single fat32 partition (use a card formating tool on the pc for this) and start over. Not sure if or how to do it via adb if it's seeing one partition as corrupt.
Fwiw, 32gb is the max " officially " supported SD card size on the surnia, but it works fine with bigger cards. I'm running 64gb.
Click to expand...
Click to collapse
OK. Tried formatting into FAT32 with a chromebook (only computer I had access to atm, no usb adapter :/) and it formatted. Then putted the sd on my phone, selected as portable, EJECTED and did the proccess.. no luck.
Same result. The internal partition marks as "corrupted".
Anyone, help? I really need it, lol.
Thanks anyway,
dandrumheller? Someone? I really need it ?
I readed some more and see that link2sd is a better option? What's the difference?
makmm said:
dandrumheller? Someone? I really need it ?
Click to expand...
Click to collapse
Don't know what to tell you, I just followed the post and it worked. Do you have another card you can try with?
Does the original card work normally again after going back to fat32?
dandrumheller said:
Don't know what to tell you, I just followed the post and it worked. Do you have another card you can try with?
Does the original card work normally again after going back to fat32?
Click to expand...
Click to collapse
I think yes. I have other card(s) but they are not mine.
But what's the difference from this method than link2sd?
makmm said:
I think yes. I have other card(s) but they are not mine.
But what's the difference from this method than link2sd?
Click to expand...
Click to collapse
Haven't used link2sd in many years. Used to require lots of manual management, but it's the same concept. 2 partitions on SD card, 2 different formats, apps on one, media etc on the other.
Give it a shot. Used to have to manually format SD card to ext2 (iirc) for the app partition.
dandrumheller said:
Haven't used link2sd in many years. Used to require lots of manual management, but it's the same concept. 2 partitions on SD card, 2 different formats, apps on one, media etc on the other.
Give it a shot. Used to have to manually format SD card to ext2 (iirc) for the app partition.
Click to expand...
Click to collapse
I tried a thousand times with ext4 (and fat32) and it didnt work....
BUT WAIT, theres more! i tried with ext2 as you said (fat32 + ext2) and Just Works(tm)
Thanks, i really appreciate your help, you were the only one to respond lol...
PS: using apps2sd instead of link2sd as apps2sd has part manager, that's how i partitioned it, yay!
PS2: should i just use link2sd as "linker" and apps2sd as alternative/part manager?
thanks again ;D
Edit: I needed to change some config in SuperSU and create in advanced mode the Mnt script, but it works like a charm! It lets me move any app! ;D
makmm said:
I tried a thousand times with ext4 (and fat32) and it didnt work....
BUT WAIT, theres more! i tried with ext2 as you said (fat32 + ext2) and Just Works(tm)
Thanks, i really appreciate your help, you were the only one to respond lol...
PS: using apps2sd instead of link2sd as apps2sd has part manager, that's how i partitioned it, yay!
PS2: should i just use link2sd as "linker" and apps2sd as alternative/part manager?
thanks again ;D
Edit: I needed to change some config in SuperSU and create in advanced mode the Mnt script, but it works like a charm! It lets me move any app! ;D
Click to expand...
Click to collapse
Glad you got it working!
andorid sucks those years too

Categories

Resources