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.

I know that on a rooted phone, it's reasonably normal to create a small ext4 partition for App2SD to use, but I'm not asking about that case: I have a non-rooted HTC Desire running Froyo, and I'd like to format the whole of my SD card as ext4 instead of FAT. I'm aware that this will mean that Windows PCs won't be able to use the card, but all my PCs run Linux so they should be fine. Will the phone be able to access and use the card in this case?

share|improve this question
    
I don't think you can. especially since froyo uses FAT for its apps2sd implementation. –  Ryan Conrad Jan 7 '11 at 21:22
    
I think you'd have to change the mounting options for the SD card, which would require root. –  Matthew Read Jan 7 '11 at 21:32
add comment

3 Answers

up vote 2 down vote accepted

ext4 should be supported if you have an upgrade to 2.3 or 3.0 Android (I see that your post is from just before the 2.3 & 3.0 releases...).

...and when btrFS is added to Android, it has a nice mount-option ",ssd" with wear-levelling etc that ext4 doesn't have... and more speed than ext4 now, esp if you use ",compress=lzo" OR ",space_cache" in fstab (but don't use compression WITH the space_cache option, only use 1 or the other or else it slows to a crawl in some benchmarks) -- and that speed comes despite btrFS checksumming of all data (not only of the journals, as ext4 does). :-)

share|improve this answer
add comment

It appears that the answer is "no" :(. I was asking because I have a new card to go in the phone, so I thought I'd just try it -- it didn't work. When I ask the phone to mount its card, it goes straight to saying "SD card safe to remove."

Oh well.

share|improve this answer
add comment

I actually had my sdcard on ext4 and got it mounted permanent at boot time (I have root on my phone).

The biggest problem was that the apps don’t expect permission checking on /sdcard, but extX enforces this (no mount option around this). So if one app stores e.g. some audio there and calls another subcomponent to play it, it fails.

The same is true for photos (camera shots them, some previewer might want to access them).

You can manually fix this, but you have to run after every new file created... There would be an nice real solution to this, but it requires system modification: let the apps run with umask(002) instead of 022. Android is UPG (User Private Groups), so there is no big harm in doing so. – Now the apps could choose if they want to expose files to others by setting the group to “sdcard“, or not. This would also add to an enforced separation where the apps want it.

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.