Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

After playing with partitioning using FDISK (from busybox) i finished and now i want to format it back to whatever is usable under Android.

Using same FDISK via Android console i deleted all partitions, made a clean DOS partition table, made a new partition and changed its type to b (Win95 FAT32).

I got no microSD adapter to read the card from my linux PC and format it there. What should i do to format it into a usable condition?

share|improve this question
1  
As you wrote: format it? Just creating a partition does not yet make it usable. I cannot look it up from here currently, but there should be a mkfs.vfat in /system/sbin for this. –  Izzy Apr 10 '13 at 15:04
    
@izzy I know a partition needs a format. Thanks for answer even through its in comment. –  LoCoZeNoz ZUE Apr 10 '13 at 17:14
    
If it solved your issue, I can make it an answer with some more details :) And sorry for the second sentence -- must have missed that in your questions last paragraph, my bad... –  Izzy Apr 10 '13 at 17:37
    
@Izzy I am getting mkfs.vfat: lseek: Value too large for defined data type everytime. –  LoCoZeNoz ZUE Apr 10 '13 at 17:42
1  
How big is the card, and what parameters did you use? That error usually indicates you're breaking some limit (comes e.g. when you try to extend a file beyond 2 GB on FAT and the like). Or, according to this XDA thread, you might need a different version of BusyBox (see post #12). –  Izzy Apr 10 '13 at 18:10
show 2 more comments

2 Answers

up vote 0 down vote accepted

Summing up from the comments:

With BusyBox, Android provides tools for formatting from the command line. In your case, this would be /system/sbin/mkfs.vfat. This is reported to sometimes throw an error like:

mkfs.vfat: lseek: Value too large for defined data type

According to this XDA thread, this is the fault of Busybox. Using a different version (as reported in post #12 of that thread) should solve the issue -- and did it in your case, luckily.

share|improve this answer
add comment

Android has built-in formatting capabilities that are usually available via Settings -> Storage -> Format SD card (or something similar depending on the device you use).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.