[Q] Formating SD Card with FAT32 witout a computer - Galaxy S 4 Q&A, Help & Troubleshooting

Hello Everyone,
I've been trying to run either AOKP or CM10.1 but they seem to neet FAT32, and oh small wonder, my SD card is on exFAT atm.
Well since I do not have a card reader, and the phone cannot mount into UMS mode I was a bit stumped.
I then thought, why not Busybox this thing.
But fdisk fails me blatantly.
The result is
"fdisk: WARNING: rereading partition table failed, kernel still uses old table: Invalid argument"
Some googling got me to believe that I have to make an additional DOS partition, which did no good either.
Do any of you have an idea on how I could format to FAT32?
I am running stock, with root and TWRP as recovery
Cheers,
Linus

And I think I have found the answer. Somehow fdisk didn't want to play ball, but if I use mkfs it seems to work.
At leas after reboot it was mounted as vfat
I executed "mkfs.vfat /dev/block/vold/179:33" and am now copying my backup back onto the SD card
After that I'll install CM10 I think and will tell you all if it works or not

and yes
I am now running CM10.1 and it all works as it should
very nice
Thread closed for me

Related

Fat32 partition stuck in read-only in 16GB MicroSDHC

OK so far my problem has stumped everyone.
I have a rooted and hacked G1(HTC Dream) with a 16GB MicroSDHC that is divided into a 2GB Ext2 partition and a 14GB FAT32 partition. It worked fine for a while but then my G1 started to freeze up and reboot continuously so I took the card out and it stopped. I tried chkdsk in Vista and it hung in elevated .cmd prompt and it says i have bad sectors but it cannot fix in read only mode. I tried format in Vista and cmd and it tries, says the data is RAW and that it tried to convert to FAT but cluster size too big. Then when I try fs command for vfat in .cmd it still won't work. I used Paragon Partition Manager 9.0 PAID version to create partitions but now it hangs every time it tries to read the card and it won't format. Tried sdformatter and a low level formatter to and no good.
I have Terminal in my G1 but I am not familiar with Linux commands. I tried fdisk and it says the FAT32 is in read only mode. When I type busybox df -h it won't show the "/dev/block/mmcblk0p1" but it shows the Ext2 partition. But when I type the mount command it shows up as "rw". But i cannot access it at all to wipe the stupid card out.
HELP!!!!
1) can you mount the fat32 partition in you phone and can see the files?
2) did you tried as root *mount -o rw,remount -t vfat /sdcard* ?
Yes I tried it and it doesn't work. Is there anyway to flash the bootloader or the ramdisk?
assuming i have ramdisk.img boot.img and system.img on sdcard root and I want to copy to system files, anyone know the commands in Terminal Emulator?
Download the ubuntu live cd, burn it, then boot your computer with it. Plug your SD card into an external reader, NOT the g1. Run gparted and select the sd card from the list of drives and see if you can format or re-partition your card. If it wont let you then try selecting Device->Create Partition Table, to create a new partition table. If none of that works then either your card or card reader is dead.
Mike
Nevermind, it was a class 2 16GB card...i think I broke it...getting a class 6...
need help....
i have a 16gb class 6 and i need help or technically a walk through on how to partition this card....hence i am an extreme noob. i got into parted and it says i have a 16.1 gb so would that translate to 16001 mb? reason i ask is cause i dont know what to subtract 32mb from and such? also what is the optimal set up for a card this size? thanx in advance for any help that you guys may supply me...
TeCH NiNJa said:
i have a 16gb class 6 and i need help or technically a walk through on how to partition this card....hence i am an extreme noob. i got into parted and it says i have a 16.1 gb so would that translate to 16001 mb? reason i ask is cause i dont know what to subtract 32mb from and such? also what is the optimal set up for a card this size? thanx in advance for any help that you guys may supply me...
Click to expand...
Click to collapse
do it from phone terminal its much easier, if you need any more help pm me
i got guys thanks alot....i think ill try 42mb linux-swap to see if the hero rom will run smoother. to
JJbdoggg
Senior Member
thanx

8gb class 6 dead?

so i was flashing from dudes 1.1 to cyans 3.4.6 (been out of the game for a lil while) and i figured itd be best to wipe sd and g1. I reformatted to fat32 then made ext2 partition with paragon partition manager. After that the pc needed to restart and it all went smooth until it booted up again.
the pc wont read my sd anymore now (im using a standard SD adapter), windows will show its plugged in and reccomend me to reformat it to fat32 but then it always says formatting failed.
I tried using partiton again and all it does is read it as 7.6 gb ext2 drive, it wont let me format/reformat/delete partition/ create partition. it says something like No unallocated space.
Basically...Is my card fried? = /
I doubt its fried.
If it's fried, then windows will not even detect it.
Unfortunately, I do not know the fix.
Sounds like Vista is having problems reading the card... know anyone with a Mac or Linux box?
tissle said:
I doubt its fried.
If it's fried, then windows will not even detect it.
Unfortunately, I do not know the fix.
Click to expand...
Click to collapse
Not necessarily. I've seen this problem for bad SD cards.
Infact, mine appears to have died today too. It now says "blank SD card" and wants to be formatted. Damn.
Guess it's a trip to Fry's for me.
i tried using my linux liveboot cd, it detects it but linux wont mount..
damn frys is soo far for me ..like 45 min
so no body knos a fix huh?
if u don't need anything off the card, just format it.
from within windows just do a format.
or..
in linux, put the card in
Code:
df
find the one that matches ur card (/dev/sdb or /dev/sdc normally)
Code:
shred -f -n 0 -z -v /dev/sdc
this will completely wipe the card.
now type in
Code:
sudo gparted /dev/sdc
and recreate your partitions (i recommend a fat32 partition )
=O a fix from the sensai himself. i will try it when im home thanks so much haykuro!
tried in linux but command lead to a no such directory or file. and partition editor wouldnt show any other option but my actual hd. it says "cannot mount" when i insert it so it knows its there .. : /

SD card lost with message "Removed SD card" after update to cyanogenmod

Did not get any help in cyanogenmod thread, so creating a separate thread here.
I am in trouble. After I updated my ROM to cyanogenmod 3.6.7.2 (with his recovery image 1.3.1 and latest radio) I get a message saying: "Removed SD Card" in the notification and I am getting force closes in apps which access sd card.
Why did it remove my sd card? I have the following partition structure"
c (formatted fat32) 2GB - this is what used for upgrading the radio and rom.
83 (formatted ext4) 6GB
c (formatted fat32) 7GB
82 (mkswapped) whatever left off from 16GB card.
Is this structure causing the issues? I used Linux 2.6.30 and e2fsprogs 1.41.7 to format ext4 and dosfstools 3.0.2 to format fat32 FSs.
I ran fix_permissions from recovery console because I was getting FCs in powermanager (which logs files on SD card).
Also, if I boot into the recovery console, I can mount /sdcard and it automatically mounts the first fat32 partition on /sdcard. I can 'fdisk -l' and see all my partitions are there. So, its not a hardware issue. Some sort of chicken&egg because of apps2sd.
I just mounted the partition2 (which is ext4) in recovery console and I can see there are "app app-private dalvik-cache lost+found" folders on it. So, it looks like normally initialized.
Does anybody know what's going on here? Appreciate your help!
It's the same response you've been getting in the other section.
Try backing up your data on your computer, and completely formatting your card to fat32.
From there, instead of making the partitions on the computer, use the Recovery Console (accessed from Cyano's Recovery) and re-create the partitions as you like.
Ok, I delete the 3rd and 4th partitions, and it seems to be working fine now. So, it seems like there is an assumption about the partition structure in the code somewhere.
devsk said:
Ok, I delete the 3rd and 4th partitions, and it seems to be working fine now. So, it seems like there is an assumption about the partition structure in the code somewhere.
Click to expand...
Click to collapse
So you are all good now?
What exactly did you do? Just remove the 3rd & 4th partition, without formatting?
akapoor said:
So you are all good now?
What exactly did you do? Just remove the 3rd & 4th partition, without formatting?
Click to expand...
Click to collapse
Yeah, I just removed the 3rd and 4th partitions from recovery console and the card is recognized and working fine. Now, I need to find out why is it hard coded like that.
It seems like something doesn't like more than 3 partitions on the SD card. I now have 3 partitions with 'c' (fat32), '83' (ext4) and 'c' (fat32) codes and it seems to work fine.
An ext partition of more than 1.5gb can cause problems
Most roms will not work with the way you had it set up (at least not well)
They follow a 3 partition scheme as such
FAT32 > EXT > SWAP
B-man007 said:
An ext partition of more than 1.5gb can cause problems
Most roms will not work with the way you had it set up (at least not well)
They follow a 3 partition scheme as such
FAT32 > EXT > SWAP
Click to expand...
Click to collapse
I've heard this repeated elsewhere but nobody ever actually says what the problem is with partitions greater than 1.5gb. I'm very curious to know, because I haven't noticed anything wrong.
Except that /sdcard won't automount if my sd card has 4 partitions defined on it. As soon as I mark the 4th one empty and reboot, it's fine again. But that has nothing to do with the size of the ext fs on partition 2. Something with vold is funky, because I can mount /sdcard manually from adb.

[Q] Clockwork/ROM Manager broke my sdCard

I'm not sure if there's a thread already for this, but since I partitioned my SD card with Rom Manager and ClockworkMod, it hasn't worked properly.
I installed WildPuzzle 8.0.8 and followed the instructions to partition it. Phone rebooted into ClockworkMod and formatted is as per usual, but now whenever I try to put the card in any of my laptops, I get a read-only error. I tried looking at it in Linux and Gparted tells me there's something wrong with the cylinders.
Is there a way to fix this? Or should I just grab a new card? The card itself is only a few months old so I don't think it's age.
Thanks for any help or tips you guys can throw at me.
try in linux under root to type fsck (shearch google i dont now english very well) and will work after i think
try to format sd in fat32 in paragon partition manager and add new partition for SDcard E or F or Z.
lesa0208 said:
try to format sd in fat32 in paragon partition manager and add new partition for SDcard E or F or Z.
Click to expand...
Click to collapse
tried everything I could find on linux and windows but no luck. I threw the card out and ordered a new one.

ICS Device Encryption and SDCARD Impact

Damnit.. My company required encryption of the data on my Nexus S when I was testing ICS Beta with Email / Exchange.
Went ahead and encrypted the device.
Then, I wanted to install ICS Combo Beta 11, so I formatted /system /data /boot and tried to install from /sdcard/*.zip.
No luck.
Clockworkmod recovery cannot mount /sdcard anymore.
Wanted to try and format it, but the clockworkmod tries to mount it first, before formatting
HELP!
I'm stuck with only recovery now and no way to get the update package installed
Is there a way to install from zip via the command line?
You should be able to use fastboot to load the rom on your device. I haven't tried it this way before but it should work:
Code:
fastboot update rom.zip [-w if you want to erase data too]
Give it a spin.
The SDCard not being able to be mounted has been covered a few times but I can't recall the proper fix by heart - search around and you'll definitely get some results that can help you with that.
Greetz
Sounds like it's busted.
Sent from my Nexus S using xda premium
Can you still enable USB Mass Storage in recovery? Try reformat the SD from your desktop?
Si_NZ said:
Can you still enable USB Mass Storage in recovery? Try reformat the SD from your desktop?
Click to expand...
Click to collapse
Thought about that, but what filesystem? FAT32?
Sure
Greetz
I had the same problem with one of the first ICS betas.
Formatting to FAT32 on my Mac was not enough, I had also to reformat under Android. Hope, you backed up your data
dr911 said:
I had the same problem with one of the first ICS betas.
Formatting to FAT32 on my Mac was not enough, I had also to reformat under Android. Hope, you backed up your data
Click to expand...
Click to collapse
Definately backed up..
This was a real scare.. I couldn't mount or format from clockworkmodrecovery. All I had was the adb shell and the builtin /sbin commands.
LUCKILY I found this article;
http://forum.cyanogenmod.com/topic/...mmcblk0++mkfs++ext2__fromsearch__1#entry56396
It didn't exactly match what I was experiencing, but the key was the parted program.
Using it, I was able to reformat my media (partition 3) and am now able to repush things to it.
Stupid sdcard encryption..
Reinstalling ICS Beta 11 now
Blood pressure slowly decreasing.. damn that was a nightmare
So some lessons learned;
DON'T try to partition your SDCARD from clockworkmod or Windows or Mac. The USB storage presented to your computer is a single partiton from you mmcblk0 sd storage. If you partition it, you've got a partition inside a partition which will only make sense to your windows/mac system. Inside of Android, the partition is essentially corrupted and it won't mount.
Formatting from Windows only makes it appear to be working.. in reality you've created a second partition and it's corrupted from the Android point of view.
parted is the only way to fix it. from parted do mkfs type fat32 partiton 3 (media) that will reformat the partition correctly and give you access from Android and external USB hosts.
That's weird...
People have been able to format the SD as ext4 on a desktop using Ubuntu for example. I don't understand how that is different to mkfs.ext4 vs mkfs.vfat. I mean why am I confined to formatting on the phone itself? I'm really confused now.
On a side note. What you experienced is totally expected if you think about it carefully. It's like you have just lost the key to open your SD content by wiping the phone, of course it can no longer be mounted. But I'm not sure why it cannot be simply formatted in CWM.
nauckwj said:
Formatting from Windows only makes it appear to be working.. in reality you've created a second partition and it's corrupted from the Android point of view.
Click to expand...
Click to collapse
That means, I should check my SD Card, which I formatted under OSX with Disk Utility?
Maybe I'll do it next time I flash a new ROM, because for now it works fine.
nauckwj said:
Blood pressure slowly decreasing.. damn that was a nightmare
Click to expand...
Click to collapse
Yeah, I had a similar situation a few weeks after I got my beloved NS when I tried Whispercore. The hole NS got encrypted and formatting the system partition in CWM didn't work, but what I read it was luckily due to a problem with the CWM version. Flashing a newer Version of CWM solved the problem. First I was dying!
So, when I encrypted with ICS and got this problem I calmed down much faster
Si_NZ said:
That's weird...
People have been able to format the SD as ext4 on a desktop using Ubuntu for example. I don't understand how that is different to mkfs.ext4 vs mkfs.vfat. I mean why am I confined to formatting on the phone itself? I'm really confused now.
On a side note. What you experienced is totally expected if you think about it carefully. It's like you have just lost the key to open your SD content by wiping the phone, of course it can no longer be mounted. But I'm not sure why it cannot be simply formatted in CWM.
Click to expand...
Click to collapse
My problem was I used the Windows fdisk partitioning utility to repartition my /sdcard partition. That was part of the problem. I did also read how some people were repartitioning the /sdcard partition, which is kind of weird. I can understand why someone might want to reformat it as an ext4 filesystem, but why would you want to partition a partition?
The /sdcard partition is actually the third partition on your mmcblk0 device. If you partition it, most utilities will fail to recognize it as a valid media device anymore, because they expect to be able to read the filesystem data structures when they mount it. These won't exist if a partition table is sitting at the beginning of the blocks.
I couldn't reformat from within CWM because it first tries to mount the partition. if it fails to mount, CWM won't reformat it. Only way to reformat it was with parted, unless you have a working system installation.
Last night I was also able to reformat it from within ICS. Had to do a full factory-wipe from within ICS, then it indicated the sdcard was no longer valid and asked me if I wanted to reformat it. Once I said yes, all was back to normal.
Fun fun

Categories

Resources