But you can use Ext4 ... what formats are supported?
braintheboss said:
But you can use Ext4 ... what formats are supported?
Click to expand...
Click to collapse
Questions go to the Q&A ..
I gave it a try of formatting the external microsd to ext3/4 but it appears that vold on the stock rom (and roms based on it) does not support ext4
If you neext ext3/4 support on the microSD you will need to use a CM9 based rom
Hi,
im using CM10. How did you do that and are there any restrictions???
How do we format our cards to ext4?
Sent from my GT-I9300 using Tapatalk 2
It seems that auto mount its not implemented for ext file system on android. At least I discovered that on my tablet when I tried to copy files on an ext3 hard drive. It's a shame as ext is the default filesystem for android...
I had to mount it manually. There are guides on the net. It's the classical mount Linux command. To automate it you should add a script in init.d folder. There must be examples on the net too.
Striatum_bdr said:
It seems that auto mount its not implemented for ext file system on android. At least I discovered that on my tablet when I tried to copy files on an ext3 hard drive. It's a shame as ext is the default filesystem for android...
I had to mount it manually. There are guides on the net. It's the classical mount Linux command. To automate it you should add a script in init.d folder. There must be examples on the net too.
Click to expand...
Click to collapse
Could you attach it here? thanks
Sent from my GT-I9300 using Tapatalk 2
Thirty seconds search on Google.
Related
My sdcard(class 4 8gb sandisk) is causing problems with fat32 fs...i use debian all the time and wud like to have a much advanced fs like ext4 for saving my music,videos,pictures etc instead of fat32...how can i achieve taht...Does android use a fstab or something for mounting on boot ???
I'm quite sure android uses fstab for mounting, you just need to set the proper mounting option on your FS to force it to check fstab options. I have one question(since I don't use a linux machine), can you access your ext(2nd) partition(if you have one) when you connect your phone to the PC using debian?
Yep,Android uses fstab to mount all.
anybody interested in setting it up i dont have the requisite knowhow
I have not toyed with fstab myself... but I did find this page which seems to have want your looking for.
http://androidandme.com/2009/08/news/how-to-manually-partition-your-sd-card-for-android-apps2sd/
It isn't exactly what your explaining, BUT seems to go through the commands needed for what you are wanting to try.
Just remember to back up! Good luck!
Sent from my LG-P500 using XDA App
Instructions:
-Suggested at least fat32 partition to be 1gig and the rest to your ext partition. Also, try to use root explorer for everything else. Must have init.d support.
1. On your SD card, make a folder to serve as a door/portal to access your ext partition files.(When testing this, I just used the default "/sdcard/media" folder)
2. Make a blank text file and name it as "11usext"
3. Using root explorer, edit the file and add this line inside it:
Code:
#!/system/bin/sh
busybox mount -t auto /dev/block/mmcblk0p2 /mnt/sdcard/media
change media to the folder that you just made on step 1. Exit and save.
4. Using root explorer move this file to /system/etc/init.d
5. Again using root explorer, change the permission to "rwxrwxrwx"
6. Reboot and play. This would allow you to access your ext partition through the /media or the folder that you have created.
If this does not work, then you should give more details on what setup you are running.
ungaze said:
Instructions:
-Suggested at least fat32 partition to be 1gig and the rest to your ext partition. Also, try to use root explorer for everything else. Must have init.d support.
1. On your SD card, make a folder to serve as a door/portal to access your ext partition files.(When testing this, I just used the default "/sdcard/media" folder)
2. Make a blank text file and name it as "11usext"
3. Using root explorer, edit the file and add this line inside it:
Code:
#!/system/bin/sh
busybox mount -t auto /dev/block/mmcblk0p2 /mnt/sdcard/media
change media to the folder that you just made on step 1. Exit and save.
4. Using root explorer move this file to /system/etc/init.d
5. Again using root explorer, change the permission to "rwxrwxrwx"
6. Reboot and play. This would allow you to access your ext partition through the /media or the folder that you have created.
If this does not work, then you should give more details on what setup you are running.
Click to expand...
Click to collapse
That's a quite dirty implementation. All he want's is an ext4 partition mounted as /sdcard. I want to do the same, but right now I'm messing with the internal fs. I'll look into it.
That's a quite dirty implementation.
Click to expand...
Click to collapse
Dirty it might be(I even tried a dirtier one), but that's all he's got at the moment. If you have a better solution(even just a rough plan), please do share. Maybe we can exchange knowledge on stuff like these.
Using 2 Ext4 partitions on SD instead of one Ext+fat32
Click to expand...
Click to collapse
Would mean that no Fat32 partition exist, and I've never heard of anything like that.
I have one question(since I don't use a linux machine), can you access your ext(2nd) partition(if you have one) when you connect your phone to the PC using debian?
Click to expand...
Click to collapse
And since no one answered this, I have no idea how you could transfer files to your phone without using card readers.
ungaze said:
Dirty it might be(I even tried a dirtier one), but that's all he's got at the moment. If you have a better solution(even just a rough plan), please do share. Maybe we can exchange knowledge on stuff like these.
Click to expand...
Click to collapse
Probably it involves messing with the init.rc (and I think that involves messing with boot and recovery images, but, I'm not sure) or init.d scripts or fstab. Anyway, I'm not sure, but it should be possible.
ungaze said:
Would mean that no Fat32 partition exist, and I've never heard of anything like that.
Click to expand...
Click to collapse
Yes. The /sdcard partition would exist, just not fat32 formatted.
ungaze said:
And since no one answered this, I have no idea how you could transfer files to your phone without using card readers.
Click to expand...
Click to collapse
Linux systems can read and write to ext4 partitions without problems. In fact, it's a linux filesystem. I had problems once when I had a sd_ext partition (for Apps2SD), because both partitions would get mounted when using mass storage mode, while Android only unmounts the /sdcard (fat32) partition, leading to file corruption (because of the same partition being mounted on both systems at once).
We could create the partitions using gparted or cfdisk on a pc. I'm not sure, but maybe simply mounting it with different params (like the filesystem type and other options) at /sdcard would do the trick. Everything else that follows would be easy.
I've been doing some testing and research.
On recovery side:
I've done a little modification in Mik's ClockWork recovery to make it accept ext4 and vfat as valid file systems for the first partition on sdcard. It involves just a little change on /etc/recovery.fstab file, but then you need to rebuild the recovery image.
This is working fine.
On the OS side:
It's not an easy mod. It involves patching the vold (volume manager) and recompiling. There are some proposed patches to Cyanogenmod, but I don't know if it's been accepted and if it made it to Miks CM7 port.
I'll do some tests and post results.
ilarrain said:
I've been doing some testing and research.
On recovery side:
I've done a little modification in Mik's ClockWork recovery to make it accept ext4 and vfat as valid file systems for the first partition on sdcard. It involves just a little change on /etc/recovery.fstab file, but then you need to rebuild the recovery image.
This is working fine.
On the OS side:
It's not an easy mod. It involves patching the vold (volume manager) and recompiling. There are some proposed patches to Cyanogenmod, but I don't know if it's been accepted and if it made it to Miks CM7 port.
I'll do some tests and post results.
Click to expand...
Click to collapse
This got my interest
Mik's CM7 (beta 6.2) recognizes and mounts the ext4 partition just fine.
BUT:
As vfat is a non posix fs, there wasn't any need for the OS to manage permissions, so it's a mess.
Applications on the SD card (I'm not using Apps2SD or Data2SD) don't load, internal applications can't be moved to SD, and many apps can't store data on the SD, even I've set read+write permissions on all files and directories (chmod -R 777 /sdcard/). I have no idea why. I'm stuck.
First - I'll explain why I want this - my SD Card is a mess. So I decided to reorganize the entire folder structure using symlinks. Unfortunately no version of FAT doesn't support symlinks - so I decided to change the file system to either NTFS or ext4. I have basic Linux knowledge so I'm not able to change anything in the kernel, but because Gingerbread supports ext4, I have found a way to mount an ext4 sdcard. I basically change the default file system in vold.fstab (I replace "auto" with "ext4"). All seems to be working fine, but when I restart the phone I am unable to mount the sdcard again - I don't even get prompted by Android, it just doesn't detect my card. But whenever I dual-mount my card (using Root Toolbox) Windows detects my card (and reads it using Ext2Fsd). I know it probably has something to do with init scripts, but I haven't found anything about file systems in the any of the scripts in the init.d folder. I have found that the modified official Gingerbread kernel supports ext4 sd cards, but I want to know how to use the card with other kernels.
original vold.fstab:
Code:
dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.1/mmc_host/mmc0
modified version:
Code:
dev_mount sdcard /mnt/sdcard ext4 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.1/mmc_host/mmc0
I am using CyanogenMod 7.1 (Mik's version, beta 6.6.1), Franciscofranko's latest 2.6.35.14 kernel (16 august version) and Franko's tweaks if that is of any difference.
Well, sorry... but... eh.
State what you are after wrt "organizing" and someone can suggest a saner way to do it.
NTFS in R/W is only doable in a reasonable way with a FUSE-based driver, not the in-kernel one; ext4 or whatever other ext on the other way is a stupid idea when your computer uses Windows.
dr.notor said:
ext4 or whatever other ext on the other way is a stupid idea when your computer uses Windows.
Click to expand...
Click to collapse
I know that, but I'm using the card on the phone, not on my computer. And by the way, I have a full-featured Ubuntu Server (on VMware Workstation) for everything that Windows isn't able to do.
It isn't much of a cataclysm that I can't mount ext4, but I'm trying to understand why doesn't my method work.
Ianis G. Vasilev said:
It isn't much of a cataclysm that I can't mount ext4, but I'm trying to understand why doesn't my method work.
Click to expand...
Click to collapse
The stuff using vold.fstab assumes that the partition is FAT and not a random other filesystem.
The old vold supports vfat/ext2/ext3 filesystem, but the new vold only supports vfat filesystem. This is because Android frameworks does not support sdcard mounted on other filesystems. Even we can forcely mount an ext2/ext3 filesystem as the sdcard, it doesn't work well in some situations. So we decide to stop supporting them unless AOSP changes.
Click to expand...
Click to collapse
http://www.android-x86.org/documents/sdcardhowto
N.B. "Old" there means pre-Froyo
In case you insist that partitioning the SD card to ext? is the right way of "organizing", you need to mount that stuff via some initscript and be prepared for random stuff to break.
Thanks for the reply
How to install android on SD card ?
Please tell any method
hero355 said:
How to install android on SD card ?
Please tell any method
Click to expand...
Click to collapse
Basically you have to create partitions on the SD for /system, /data/ and /cache (with ext2/3 filesystem) and copy the necessary files there from the Galaxy S firmware then you can use that, but with the kernel in the tutorial section it won't work. You need different init.rc to mount these partitions instead of the loopback images
anghelyi said:
Basically you have to create partitions on the SD for /system, /data/ and /cache (with ext2/3 filesystem) and copy the necessary files there from the Galaxy S firmware then you can use that, but with the kernel in the tutorial section it won't work. You need different init.rc to mount these partitions instead of the loopback images
Click to expand...
Click to collapse
Can you give me link for download all files
How do i use ext2 partition on native ap2sd? i used to have link2sd but i heard native is better so i made an ext2 partition anyone know how to set it? minicm7 2.2.1
EXT2 is not supported with this ROM, must create EXT3 or EXT4.
I was tested EXT2 + link2SD but that didnt work. Tested FAT32 + link2sd = same fail.
If you create EXT3/EXT4 it could be auto-mounted, but some bugs could appear...
I recomended to not use EXT, just that SWAP you created. If you use native "move to card", they will be stored on mmc too, but will be visible in some "xxx-secure" folder (not stored in ext part.) - I spent almost whole day to recover all files after testing SWAP and EXT3 (both auto-mounted via minicm) - dont do the same mistake
penthaler said:
EXT2 is not supported with this ROM, must create EXT3 or EXT4.
I was tested EXT2 + link2SD but that didnt work. Tested FAT32 + link2sd = same fail.
If you create EXT3/EXT4 it could be auto-mounted, but some bugs could appear...
I recomended to not use EXT, just that SWAP you created. If you use native "move to card", they will be stored on mmc too, but will be visible in some "xxx-secure" folder (not stored in ext part.) - I spent almost whole day to recover all files after testing SWAP and EXT3 (both auto-mounted via minicm) - dont do the same mistake
Click to expand...
Click to collapse
srry but i didnt realy understand i have a 3gb normal and 300 swap and 300 ext2 what should i change ext2 to?and dunt worry i have backups
LukBoy99 said:
srry but i didnt realy understand i have a 3gb normal and 300 swap and 300 ext2 what should i change ext2 to?and dunt worry i have backups
Click to expand...
Click to collapse
you should change ext2 to ext3 or ext4, but i think he is saying: get rid of the ext-partition and just keep fat for app2sd/link2sd, and keep swap.
You must format the ext2 to ext3 or EXT4. There is a command for this built into minicm and I think it's something like a2sd format in terminal. Or you can use something like gparted from linux
X10man
Sent from my Fender Stratocaster to your face via XDA Premium
x10man said:
You must format the ext2 to ext3 or EXT4. There is a command for this built into minicm and I think it's something like a2sd format in terminal. Or you can use something like gparted from linux
X10man
Sent from my Fender Stratocaster to your face via XDA Premium
Click to expand...
Click to collapse
made ext3 how do i activate it?
EXT3 is automatically mounted by ROM, so you dont have to enable it.
You can just choose if you want to use NONE / A2SD / DC2SD mode in cyanogenmod settings.
1. Partition the SD with CWM (easiest method) and you can be sure that the second partition disk type is of ext4 (latest CWM).
2. Rename other scripts in init.d, so that it gets executed only after the mount script has run (prioritize mount script).
3. Ext4 has many advantages over its earlier versions. So update the mount script's disk mount type to be ext4 (mount -t ext4).
4. If you are using low performance SD please update the script to mount the disk without mount options such as noatime.
5. Never add ext4 tweak if you are using mount scripts, it causes data corruption.
6. If you don't want the script to move certain folders in data partition then add the folder name to the moving data to SD ext.
Using a mount script is very easy, these points make it better.
BTW, I suggest you to try INT2EXT for EXT4 (with the above updations) the next time you reset your device.
Sent from my GT-I5500 using xda premium
Ok finally i observed that u disabled noatime, norealtime and zipalign code from the original int2ext4+ script..but i still dont understand what does that code do
Code:
-o nosuid,nodev,noatime,nodiratime,barrier=0,nobh,data=writeback,noauto_da_alloc
BTW thanks nanba for all the help dude..
swat4samp said:
Ok finally i observed that u disabled noatime, norealtime and zipalign code from the original int2ext4+ script..but i still dont understand what does that code do
Code:
-o nosuid,nodev,noatime,nodiratime,barrier=0,nobh,data=writeback,noauto_da_alloc
BTW thanks nanba for all the help dude..
Click to expand...
Click to collapse
Those are the options available while mounting a disk. You can Google for each one, read the Linux pages.
Sent from my GT-I5500 using xda premium
SuganAnbalagan said:
Those are the options available while mounting a disk. You can Google for each one, read the Linux pages.
Sent from my GT-I5500 using xda premium
Click to expand...
Click to collapse
I prefer reverse mount than symlinks and for speed I leave dalvik cache on data partition. You can try that too.
Sent from my GT-I5500 using xda premium
That's a lot of linux related technical stuff..well its too hard to understand..anyways "Ignorance is Bliss"