Changing the file system of /data - Galaxy S I9000 Android Development

hello everybody
I didn't find the answer to my question (I used the search tool) so forgive me if it has allready been answered:
is it possible, in order to improve performance, to format /data which is actually using the samsung rfs into ext4 so that the hack of formating the external sd card and moving /data on it will be unnecessary?
thank you by advance.

As of now we have no way at all to modify what file system is on the internal storage devices. Besides I do not believe that the we evildoer in this case is a poor fs.
Sent from my GT-I9000 using XDA App

gontran said:
hello everybody
I didn't find the answer to my question (I used the search tool) so forgive me if it has allready been answered:
is it possible, in order to improve performance, to format /data which is actually using the samsung rfs into ext4 so that the hack of formating the external sd card and moving /data on it will be unnecessary?
thank you by advance.
Click to expand...
Click to collapse
'
I've just been reading this about RFS, you might find it interesting:
http://forum.samdroid.net/f16/what-we-know-about-samsung-rfs-30/

Darkstriker said:
As of now we have no way at all to modify what file system is on the internal storage devices. Besides I do not believe that the we evildoer in this case is a poor fs.
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
Is there no way to umount /data and then format it into ext4?
Rfs seems to have pretty poor performances compared to ext4 but I'm not an expert so maybe is it useless.

Did you not read what you quoted from me there?
We do NOT have a way to modify the filesystem on the internal storage. We can unmount it but we CANNOT format it!

Darkstriker said:
Did you not read what you quoted from me there?
We do NOT have a way to modify the filesystem on the internal storage. We can unmount it but we CANNOT format it!
Click to expand...
Click to collapse
A little less attitude please!
He asked a perfectly valid question, all that is required are the file system tools format, partition and check the partition and an understanding of the init.rc files that mount the partition on boot.

Related

Partition emmc and map /data/data?

Is there a way to partition the internal memory that is now mounted a emmc then format one partition to ext2 or ext3? It would be nice the then modify the phone to mount /data/data to this new partition rather then its current location because it seems as of late I am always running out of space of /data/data.
Thanks,
CG
I'm interested in this too. I think the simpler thing would be to shrink /mnt/emmc and use the leftover space to expand /data.
I'm also wondering if it's possible to format /data to ext4, and if so if there are any advantages.
Maybe someone else has some ideas?
anyone have any thoughts?
cmgrant said:
anyone have any thoughts?
Click to expand...
Click to collapse
Check this work-in-progress project out::
http://forum.xda-developers.com/showthread.php?t=853001
(It is NES, for exactly this sort of problem) :: PS: Be sure to participate in the beta and provide some feedback if you try this out. It is close, and being modified for GB at this point because GB changed their packager paradigm.

[Q] Pros and Cons of sd-ext?

Hi!
Just would like to know the pros and cons of formatting into ext4 on my SD.
As far as I can find :
Pros : Supports files larger than 4GB as Fat32 cannot
That's about it I think...
Cons : Windows cannot natively detect such a partition
Why I ask this is I just saw a this post
blahbl4hblah said:
Having sd-ext partition on your sdcard will always be benefical, the phone will run so much better believe me
Click to expand...
Click to collapse
I'm ready to go ext4 if there's any performance gain, who wouldn't? But what gain is there, and what would I lose in return?
ArmedandDangerous said:
Hi!
Just would like to know the pros and cons of formatting into ext4 on my SD.
As far as I can find :
Pros : Supports files larger than 4GB as Fat32 cannot
That's about it I think...
Cons : Windows cannot natively detect such a partition
Why I ask this is I just saw a this post
I'm ready to go ext4 if there's any performance gain, who wouldn't? But what gain is there, and what would I lose in return?
Click to expand...
Click to collapse
You're mixing things up here a bit I think. Sd-ext referrs to having a partition on your sdcard to allow support for Apps2SD (basically being able to move apps to your SD card and run them from there in order to free up space); you'd basically repartition the card so that there's an ext3/4 partition for apps and a FAT32 partition for data.
As for the ext4 filesystem, it does allow for larger file sizes and is also a bit faster but you're correct in the fact that you won't be able to natively mount it on a Windows system.
Sent from my T-Mobile G2 using XDA App
OriginalGabriel said:
You're mixing things up here a bit I think. Sd-ext referrs to having a partition on your sdcard to allow support for Apps2SD (basically being able to move apps to your SD card and run them from there in order to free up space); you'd basically repartition the card so that there's an ext3/4 partition for apps and a FAT32 partition for data.
As for the ext4 filesystem, it does allow for larger file sizes and is also a bit faster but you're correct in the fact that you won't be able to natively mount it on a Windows system.
Sent from my T-Mobile G2 using XDA App
Click to expand...
Click to collapse
But don't we already have Apps2SD in GB, + all the apps that do it for you. How is this different, apart from some apps that can't natively be moved? And why is it faster? Internal memory should always load faster, should it not?
ArmedandDangerous said:
But don't we already have Apps2SD in GB, + all the apps that do it for you. How is this different, apart from some apps that can't natively be moved? And why is it faster? Internal memory should always load faster, should it not?
Click to expand...
Click to collapse
GB has the ability to do Apps2SD but it requires the partitioning as, I believe, a symlink is set up so that partition on the sdcard acts as a part of the devices internal storage.
As for speed, just moving apps to your sdcard won't speed up your phone; what that poster you quoted was talking about (most likely, I'd have to see the original thread) was converting your devices partitions (/system, /data, /cache, etc.) from ext3 to ext4. ext4 is a bit faster however some ROMs do not fully support it.
Sent from my T-Mobile G2 using XDA App
Ok, let's clear this up. GB has Apps2FAT32 (a2sd) natively. A2EXT is completely different but none of that is the point of the OP's question.
When it comes to our phones - there is almost no notable performance gain when using EXT4 over any other EXT format. Our phones don't utilize FAT32 internally - just on the sdcard. EXT4 is designed for use with massive file systems. A couple Gigs really doesn't access it's full potential.
While the question is interesting, I'm not really sure what you're planning on doing. Don't format your sdcard entirely in EXT format, and don't attempt to format your phones partitions as FAT32. The result would be... just don't do it.
Just read this on the portal
http://www.xda-developers.com/andro...hd2-data-successfully-moved-to-ext-partition/
This has two main advantages: larger sized data partition and more speed as EXT is inherently faster for I/O purposes.
Click to expand...
Click to collapse
How do I go about formatting a section of my SD into ext4, with existing SD data intact.
And how do I move apps that area already in my phone's internal memory to the ext4 partition? I know there's an option in ROM Manager and CWM, but just don't want to mess anything up
ArmedandDangerous said:
Just read this on the portal
http://www.xda-developers.com/andro...hd2-data-successfully-moved-to-ext-partition/
How do I go about formatting a section of my SD into ext4, with existing SD data intact.
And how do I move apps that area already in my phone's internal memory to the ext4 partition? I know there's an option in ROM Manager and CWM, but just don't want to mess anything up
Click to expand...
Click to collapse
As far as I know, only two ROMs actually support the real A2SD: PyroMod and MexDroid. It's recommended you format the EXT partition to EXT4 before you actually flash either of those ROMs, and you have to rename MexDroid in order to get A2SD working.
blackknightavalon said:
As far as I know, only two ROMs actually support the real A2SD: PyroMod and MexDroid. It's recommended you format the EXT partition to EXT4 before you actually flash either of those ROMs, and you have to rename MexDroid in order to get A2SD working.
Click to expand...
Click to collapse
Thankfully I am already using meXdroid~ Guess I'll just wait for the new version in the next few days to do the formatting. Can I backup all my apps with Titanium Backup, flash ROM (wipe data/cache and dalvik cache), restore with Titanium.
Or would I have to reinstall every app again so that it goes into the ext4 partition?
blackknightavalon said:
As far as I know, only two ROMs actually support the real A2SD: PyroMod and MexDroid. It's recommended you format the EXT partition to EXT4 before you actually flash either of those ROMs, and you have to rename MexDroid in order to get A2SD working.
Click to expand...
Click to collapse
There's a script to accomplish this on pretty much any ROM. It *should* work on current ROMs too. It's called 'darktremor a2sd'. Still find it amazing people forget about that one when this question comes up because it's one oldest methods of obtaining a2sd.
I'm still not understanding the OP's question. Are you wanting to do this for an IO performance gain or for space? I can understand doing it for space if you have a ton of apps but if you're doing it for performance it's a waste of your time. You're internal partitions should already be in EXT4 format (use 4EXT Recovery if they're not).
KCRic said:
There's a script to accomplish this on pretty much any ROM. It *should* work on current ROMs too. It's called 'darktremor a2sd'. Still find it amazing people forget about that one when this question comes up because it's one oldest methods of obtaining a2sd.
I'm still not understanding the OP's question. Are you wanting to do this for an IO performance gain or for space? I can understand doing it for space if you have a ton of apps but if you're doing it for performance it's a waste of your time. You're internal partitions should already be in EXT4 format (use 4EXT Recovery if they're not).
Click to expand...
Click to collapse
I'm doing it for the performance. Have been using 4EXT for a few days and loving it. Already converted internal memory to ext4 from ext3. If further partitioning my SD card for performance is really not noticeable, then I guess I've got nothing to worry about

[Q] ext4 What is it?!

I have been using a custom ROM for a while now and I have been seeing in the thread that many people are using ext4.
I have asked many times in the thread and recieved no reply.
So my question to you is what is "ext4" and what bennifit will it be to me as a Desire owner.
Thanks
wh000sher
1. Google is your friend
EXT4 is a file format used by Linux (Android = Linux). When threads talk about EXT4, they are referring to creating an EXT4 partition on your SD-Card e.g. have 14GB FAT32 and 1GB EXT4 (from 16GB SD-Card.. 1GB is always non-existent)
What having an EXT4 partition enables you to do, is to have Apps/Data2EXT scripts which move apps to the EXT partition, giving you a lot more internal space.
bortak said:
1. Google is your friend
EXT4 is a file format used by Linux (Android = Linux). When threads talk about EXT4, they are referring to creating an EXT4 partition on your SD-Card e.g. have 14GB FAT32 and 1GB EXT4 (from 16GB SD-Card.. 1GB is always non-existent)
What having an EXT4 partition enables you to do, is to have Apps/Data2EXT scripts which move apps to the EXT partition, giving you a lot more internal space.
Click to expand...
Click to collapse
I smell a follow up question lurking...
via xda app
stankyou said:
I smell a follow up question lurking...
via xda app
Click to expand...
Click to collapse
How do I make EXT4 -__-
Which Ext4 is the best for me?
777ace said:
Which Ext4 is the best for me?
Click to expand...
Click to collapse
For a second there, I thought you were serious. Almost had me bro, almost had me.
bortak said:
For a second there, I thought you were serious. Almost had me bro, almost had me.
Click to expand...
Click to collapse
Hahaha
Sent from my HTC Desire using xda premium
bortak said:
1. Google is your friend
EXT4 is a file format used by Linux (Android = Linux). When threads talk about EXT4, they are referring to creating an EXT4 partition on your SD-Card e.g. have 14GB FAT32 and 1GB EXT4 (from 16GB SD-Card.. 1GB is always non-existent)
What having an EXT4 partition enables you to do, is to have Apps/Data2EXT scripts which move apps to the EXT partition, giving you a lot more internal space.
Click to expand...
Click to collapse
Ah okay and can't I Do that already with the built in app moving??
I know how to make the ext4 but didn't know why I would want to?
Wh000sher said:
Ah okay and can't I Do that already with the built in app moving??
I know how to make the ext4 but didn't know why I would want to?
Click to expand...
Click to collapse
Moving some of the app data to the sd-card is different to having an EXT partition and A2SD.
If you activate A2SD, the system will install and store your apps on the EXT partition, and your internal memory will not be filled up, and will remain at xxxMB. Furthermore, with an EXT partition you can use D2EXT, which makes your phone use the EXT partition as the data partition, so if you have 1GB EXT4, your phone will see 1GB memory.
If you use the inbuilt "move to sdcard" function, it only moves some of the sd-card to the android-secure folder on your sd-card, however your internal memory is still used up.
In addition, moving apps to sd-ext partition doesn't break app widgets like the stock app2sd method that Gingerbread use.
stankyou said:
In addition, moving apps to sd-ext partition doesn't break app widgets like the stock app2sd method that Gingerbread use.
Click to expand...
Click to collapse
Reason: With A2SD / DATA2SD / etc. Android still "thinks and tells" the Apps are still installed in the internal memory (at least this tells me my logic).
MatDrOiD said:
Reason: With A2SD / DATA2SD / etc. Android still "thinks and tells" the Apps are still installed in the internal memory (at least this tells me my logic).
Click to expand...
Click to collapse
That's how I see it as well. And makes apps available to use when you have it on usb transfer mode.
via xda app
MatDrOiD said:
Reason: With A2SD / DATA2SD / etc. Android still "thinks and tells" the Apps are still installed in the internal memory (at least this tells me my logic).
Click to expand...
Click to collapse
MatDrOid, since you are also on MW. How do I make use of my ext4 partition I created?
I am guessing there is a way to just move to the ext4 via a app?
Wh000sher said:
MatDrOid, since you are also on MW. How do I make use of my ext4 partition I created?
I am guessing there is a way to just move to the ext4 via a app?
Click to expand...
Click to collapse
if it's MW based on oxygen, instructions on how to enable ext4 partition are in the first post, no need to use an app.
No it's the cm version using s2e and I think it's working lol
Sent from my HTC Desire using xda premium
ext4 creation
neither easeus or minitool has an option to create ext4. how do i create the ext4? and i'm going to be dual booting wp7, so should it look like this:
ext4
fat32
wp7 partition
or like this:
fat32
ext4
wp7 partition
??? plz help
noobinius said:
neither easeus or minitool has an option to create ext4. how do i create the ext4? and i'm going to be dual booting wp7, so should it look like this:
ext4
fat32
wp7 partition
or like this:
fat32
ext4
wp7 partition
??? plz help
Click to expand...
Click to collapse
backup your sd card 1st
then use only 4ext recovery (requires s-off to change recovery) or gparted to create your partition (step 5 here)
sorry if i bump old post
Can i access my internal memory once i use Ext4?
nestleomega said:
sorry if i bump old post
Can i access my internal memory once i use Ext4?
Click to expand...
Click to collapse
With a root file explorer.

External SD CWM backup?

Hi guys,
I have my clockwork mod folder on my external SanDisk 16gb sdhc...does anyone know how to be able to restore this way? Does the backup have to be on internal storage? I don't see a "mount ext sd" option in mounts...
While I'm asking this..
When you move apps to external do they no longer show up in your app drawer...? I'm using go launcher but it seems they disappear when I move them to external sd card.
Sent from my SAMSUNG-SGH-I927R using xda premium
I would like to know about using the external sd card for cwm instead of internal as well....
by default from what I read CWM uses the internal SD card but I believe I heard some people mentioning on the forums that you can modify something in the kernel or a config file somewhere to change this. Unfortunately I do not know how sorry.
dudejb said:
by default from what I read CWM uses the internal SD card but I believe I heard some people mentioning on the forums that you can modify something in the kernel or a config file somewhere to change this. Unfortunately I do not know how sorry.
Click to expand...
Click to collapse
Ive looked through every kernel thread and just about every rom thread and dont see anything about being able to switch it over to using your external sd card for backups....it sux but guess its not possible yet
There is a few posts in the CWM thread that talk about swapping the internal SD for the External SD.
romanr said:
Can you please mount external sdcard instead of internal one.
/etc/fstab:
Code:
#/dev/block/mmcblk0p4 /sdcard vfat rw
/dev/block/mmcblk1p1 /sdcard vfat rw
Click to expand...
Click to collapse
then he says he did it like this below:
romanr said:
Thanks, but not needed. I swapped my internal/external storage and this recovery now perfectly fits for me - my .android_secure is backed up by backup tool now - that's only why I asked.
How about adding
Code:
/dev/block/mmcblk1p1 /sdcard/external_sd vfat rw
/dev/block/mmcblk1p2 /sd-ext ext4 rw
to the fstab ?
Click to expand...
Click to collapse
This may do what you want?
dudejb said:
There is a few posts in the CWM thread that talk about swapping the internal SD for the External SD.
then he says he did it like this below:
This may do what you want?
Click to expand...
Click to collapse
Ill have to give it a try, kinda scared too cuz im a noob at that kinda stuff but i appreciate the help!
ok so im using root explorer, opened up the fstab file to edit and am stuck there, not really sure where to add those commands at...i think it would just be easier to leave it on internal storage lol
Yes it would be easier to leave it as it is. Lol. I have modified the fstab in Linux but not on my phone. If it is the same type of file you need to make sure you are opening it as root and there should already be a line with your current file system being mapped and simply replace it with the new line.

link2SD second partition not mounting

So i have link2SD and i have my Micro SD split equally but one partition won't mount, ext2 gets read and allows data copy via link2SD but I can't access it and the other partition won't mount at all so I can't use it for storage. I used part of this tutorial to help
https://m.wikihow.tech/Use-Link2SD
elderwolf123 said:
So i have link2SD and i have my Micro SD split equally but one partition won't mount, ext2 gets read and allows data copy via link2SD but I can't access it and the other partition won't mount at all so I can't use it for storage. I used part of this tutorial to help
https://m.wikihow.tech/Use-Link2SD
Click to expand...
Click to collapse
Try a different format.
Sent from my Samsung SM-A520W using XDA Labs
iloveoreos said:
Try a different format.
Click to expand...
Click to collapse
No luck, I have been able to mount the ext2 but the Fat32/exfat partition won't mount
elderwolf123 said:
No luck, I have been able to mount the ext2 but the Fat32/exfat partition won't mount
Click to expand...
Click to collapse
Try exFat.
Sorry you said you tried that. Would if you would reformat the whole card and recreate the partition. And by the way, the android system uses ext4(the app partition). Don't know if it makes a difference though.
Sent from my Samsung SM-A520W using XDA Labs
elderwolf123 said:
No luck, I have been able to mount the ext2 but the Fat32/exfat partition won't mount
Click to expand...
Click to collapse
You tried create partition with minitool partition wizard? Try ext4 or ext2 and associate in link2sd

Categories

Resources