Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

How to format Internal SDCard to EXT4?

OP Phk

14th June 2011, 07:23 PM   |  #1  
Phk's Avatar
OP Senior Member
Flag Lisbon
Thanks Meter: 30
 
513 posts
Join Date:Joined: Jan 2009
Donate to Me
More
Hi there,

I've tried to follow other "tutorials" (for another Android phones) to format my internal SD Card to ext4, but with no success.

My method was:
- Connect phone to Linux PC
- Enable USB Storage on Phone (the drive appears in Linux)
- dmesg | tail (to see new device and partition name, for example, /dev/sdb1)
- mkfs.ext4 /dev/sdb1
- Unmount partition in Linux
- Stop USB Storage on Phone
- Unplug Cable

And the result is.......... The phone formats the Internal SD again to vfat!!!

Why does this happen? Any ideas?
How can i surpass this? I have Latest stock rom (rooted).

Getting lost here... :\

Cheers,
Phk
14th June 2011, 07:50 PM   |  #2  
1. Download Minitool Partition Wizard
2. Connect phone with USB mass storage
3. Open Minitool Partition en right click on the SD Card and choose format.
4. Choose file system EXT4 and 32KB cluster size
5. When you did all that, you click the "Apply" button in the top left corner.
6. Wait for it to finish and voila!

Hope this helps!
The Following 9 Users Say Thank You to nerotix For This Useful Post: [ View ]
14th June 2011, 10:44 PM   |  #3  
Senior Member
Thanks Meter: 258
 
982 posts
Join Date:Joined: Jan 2010
More
sorry for this question, but why do you want to do that? is it so that you can use the whole 16gb for apps and store media on your external SD only?
14th June 2011, 11:21 PM   |  #4  
Junior Member
Thanks Meter: 5
 
13 posts
Join Date:Joined: Jun 2011
More
Quote:
Originally Posted by punshkin

sorry for this question, but why do you want to do that? is it so that you can use the whole 16gb for apps and store media on your external SD only?

Obviously to use HD-Video on the phone.

Files often exceed 4 Gigabyte, and for that filesystems like ntfs, exfat or ext4 are needed.

Going to give it a try soon, thanks nerotix!
15th June 2011, 12:00 AM   |  #5  
cheekystew's Avatar
Senior Member
barrow in furness
Thanks Meter: 14
 
224 posts
Join Date:Joined: Jul 2010
More
Quote:
Originally Posted by nerotix

1. Download Minitool Partition Wizard
2. Connect phone with USB mass storage
3. Open Minitool Partition en right click on the SD Card and choose format.
4. Choose file system EXT4 and 32KB cluster size
5. When you did all that, you click the "Apply" button in the top left corner.
6. Wait for it to finish and voila!

Is there a way of doing this through windows? Also would it be worth doing it to my 16gb external SD. Thanx in advance


Hope this helps!



Sent from my GT-I9100 using XDA Premium App
15th June 2011, 02:25 AM   |  #6  
Member
Thanks Meter: 9
 
67 posts
Join Date:Joined: May 2011
You will need to patch some files for that to work. It's not bothered me enough that I want to fix it. If you restart your phone, it will reformat your internal SD-card to vfat, even if it's already ext4-formatted.
15th June 2011, 10:27 AM   |  #7  
Senior Member
Thanks Meter: 27
 
319 posts
Join Date:Joined: Oct 2010
I'm also interested in this.
Really, it will change back to the original file system?
Which files would we have to patch to prevent this?
15th June 2011, 10:31 AM   |  #8  
Quote:
Originally Posted by dyallo

I'm also interested in this.
Really, it will change back to the original file system?
Which files would we have to patch to prevent this?

It depends, I believe alot of ROMs are ext4 supported, for those that are ext4 supported you dont have to patch anything I believe.
15th June 2011, 11:10 AM   |  #9  
Phk's Avatar
OP Senior Member
Flag Lisbon
Thanks Meter: 30
 
513 posts
Join Date:Joined: Jan 2009
Donate to Me
More
Guys please post only after testing. This is important to avoid deadlocks.....

Facts:
#1 - Current SGS2 Stock roms have rootfs and datafs formatted in EXT4 so they do support it
#2 - they force sd format to vfat so that is probably what needs patching.

Question is :
A - WHICH system app do we need to patch
B - Does the SD mount correctly as ext4 ?

Cheers and thanks
Phk


Sent from my GT-I9100 using XDA App.... at 220km/h on a jet train :P
The Following User Says Thank You to Phk For This Useful Post: [ View ]
15th June 2011, 12:42 PM   |  #10  
Junior Member
Thanks Meter: 5
 
13 posts
Join Date:Joined: Jun 2011
More
Quote:
Originally Posted by Phk

Guys please post only after testing. This is important to avoid deadlocks.....

Facts:
#1 - Current SGS2 Stock roms have rootfs and datafs formatted in EXT4 so they do support it
#2 - they force sd format to vfat so that is probably what needs patching.

Question is :
A - WHICH system app do we need to patch

That is the million dollar question indeed.

Quote:
Originally Posted by Phk

B - Does the SD mount correctly as ext4 ?

No, it does not.
Tried both a microSD inside and another SD external via USB-OTG.
The OS 'catches' the 'faulty' ext4 cards and prevents mounting, which should work perfectly allright seeing Fact #1.

PS: The minitool mentioned above does not allow cluster sizes of 32 KB, only 1, 2 and 4 (checked this with an 8 GB mSDHC and 16 GB SDHC).
Last edited by MyrddinLXXIIX; 15th June 2011 at 12:45 PM.

Post Reply Subscribe to Thread

Tags
ext4, format, sdcard, vfat
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes