[Q] Change /data to ext4 - Android Q&A, Help & Troubleshooting

Hi everyone,
I am eager to try out ICS' disk encryption feature. One thing is it requires that /data is in ext4 format. This is on a SonyEricsson Active and the default FS type for /data is yaffs2.
I've tried a few different things but I'm not getting anywhere. I've also seen a few threads here with posts of zip files that should do it but none for the SE Active. I would like to try this from the Recovery mod CLI. I already have ICS 9.2 installed and running on it no problem.
Any suggestions?
Thanks! I hope this is the right forum to post this in.

Related

Just need a nudge in the right direction

Hey all, XDA/Android vet here, just need a nudge in the right direction when it comes to EXT4. I know that on other devices that i've had, ive had to partition our phones/sd cards to get em to EXT4 via CWM, but i havent seen any posts here on how to do it (maybe i am just searching the wrong way?) I know that there is a script that you run after you flash an ext4 rom, and i have been doing that, but i still get weird FC's on EXT4 roms. So if anyone could point me in the right direction on how to get EXT4, that'd be great!
Just install a rom that got EXT4 ?
or
Use the mod in here: http://forum.xda-developers.com/showthread.php?t=1282691 (the one with higher stability)

[Q] No lost+found directory on /system partition

I recently got a phone with Gingerbread (2.3.5) and like the fact that it now uses ext4. However, I am a bit confused. There is no lost+found directory on the /system partition.
It caused some problems with being able to write to the partition when using a couple different versions of Linux (Fedora 16 and Ubuntu 11.10). /var/log/messages showed numerous errors pertaining to the partition and suggested I run fsck. Ran fsck, and it reported that lost+found was missing, and asked if I would like it created.
Not understanding why it was missing in the first place, I have not created it yet. Instead, I was able to use an older version of Linux (Ubuntu 10.04) and was able to gain rw access.
Does anybody know why lost+found might be missing on my phone, and/or is it missing on other Gingerbread phones?
Please use the Q&A Forum for questions Thanks
Moving to Q&A

/cache almost not used on XMP! [RESOLVED, via a trick]

Hi
Since ever I noticed a weird thing on XMP: /cache partition is always almost empty.
Yes, I checked many times during a long time, it's like is never used.
Code:
$ df
/cache 101.5M 1.1M 100.4M 4096
I have only an empty lost+found dir and two files under recovery dir:
Code:
# ls
-rw-r--r-- root root 105 2012-12-15 02:07 last_install
-rw-r----- root root 3214 2012-12-22 10:36 last_log
For example, in a previous phone /cache was actively used by market for downloading packages before installing them.
Here on XMP I can't upgrade also small packages (40+ megs free on /data) 'cause they're downloaded in /data and fill it before being upgraded, and /cache remains always empty.
In addition, if for some reason playstore crashes while downloading a big app (30megs+), it leaves my /data (almost)full and I must remove by hand a large temporary file from /data/system.
Well, /data is used instead of /cache, 100mb wasted in this way.
Someone else finds experiences the same behaviour?
I was thinking about a linking trick to use that space (for dalvick or swap...), but I'd prefer it would be correctly used by system.
Infos: SK17i, stock .587, root, locked BL, link2sd.
Thanks, bye.
Same in Xperia Mini
Well, this isn't nice...
some ideas
Hello! I was doing several searches and come to some results:
Note: I will not try it on my phone (Xperia Mini Pro) because I'm still an apprentice to flash and modify it, and secondly I have no resources to change my phone if something goes wrong. Finally, sorry for the grammatical errors, I do not speak English natively.
The following are links taken from different forums / blogs (neither is my property).
The general idea is the same, use parted (or any similar app) to edit the partitions inside the phone.
One of the problems that arise and I have doubts about is, what is the file system of internal partitions? ext3?. is something that I have to keep reading.
This is the first blog I found where it gives a possible procedure to follow:
http://aarondiep.blogspot.com.ar/2011/11/resize-partition-on-android.html
Here's a post where one of the users that modify his partitions and, later, returned to stock status.
http://www.droidforums.net/forum/htc-droid-eris/78650-internal-storage-partitions-screwed-up.html
Here is a guide on how you use parted (includes screenshots) BUT IT DOES WITH THE SD CARD
http://mobilecon.info/how-to-partition-sdcard-using-parted-partition.html
Finally, a tool for YAFFS2 file system:
http://forum.xda-developers.com/showthread.php?t=1645412
I hope these links are useful. I really would like to use optimally all the hardware of the phone.
Exitos!! :laugh:
Hi!
Thanks for your interest!
Resizing partitions, I read time ago, is a really critical operation.
I expect to have /cache partition as it has been made, the problem is that apps do not use it!
Resizing that block device to, let's say, zero, would give space to other partitions, but we'd lack a cache.
I definitely believe one of master questions is: where the hell does playstore download packages before installing?
During a big upgrade (let's say angry birds Rio 30+ megs) with df I only see /data growing (and /cache always empty), but after a lot of searching for newest and biggest files (busybox ls -ltrh, busybox ls -Shl) I could not find where they are put.
Once found this download location (no, it's not /data/data/com.android.vending/cache/main), would be easy to bind /cache to this dir.
Apk files from Google Play is downloaded to: data/data/com.android.providers.downloads/cache/
Wysyłane z mojego SK17i za pomocą Tapatalk 2
Hi
Many thanks for this tip!
Well, it's true apk are downloaded there.
BUT I see a strange behaviour: when I recieve the "low memory" (space on /data partition) notification, the apk suddenly disappears! :what:
In logs I see a lot of "couldn't openat chache: no such file or directory" immediately before low space notification log line...
You can use cache as swap if your kernel support it..
Sent from my Walkie'Talkie
Hi
Well, i symlinked /data/data/com.android.providers.downloads/cache to /cache/cache, and the partition is now correctly used by play store.
Is really strange that this is not a system default, btw.
EDIT: the /cache/cache was regularly erased by system, I symlinked /data/data/com.android.providers.downloads/cache to /cache and all is ok now.
EDIT2: you must previously remove (rmdir) the existing /data/data/com.android.providers.downloads/cache!
Could you put the exact command?
luchoz said:
Could you put the exact command?
Click to expand...
Click to collapse
Code:
ln -s /data/data/com.android.providers.downloads/cache /cache
:good:
thank you!!
would use XD
New info!!
http://forum.xda-developers.com/showthread.php?t=1959691
Really interesting

[Q] ADB freezes when trying to use parted

Hello xda, have not found a solution using search on this site so forgive me if i didnt find it and it is there. Basically when i try to use parted on my data partition (stl13) located in /dev/block it freezes. I have a Samsung Replenish which is semi-bricked...i think i found the reason for this which is my /system /data /cache somehow went back to rfs when then custom rom i installed changes those 3 to ext4...was going to delete and remake the partitions, however adb freezes on stl13 which is my /data (stl12 is system, stl14 cache)...i have a CWM based recovery that i can boot into however it fails to format or mount /data, it just freezes. same thing when trying to reinstall the rom. any help or push in the right direction would be really appreciated, have been trying to figure out on my own/scour the internet for a solution but this isnt a very popular device. thanks!

[Q] EXT4 in Windows

Hello,
I want to edit an ext4 file with Windows XP and and I haven't found a solution despite extensive research.
Thank you in advance !
https://www.paragon-software.com/home/extfs-windows/
Thanks but I don't want to access to an ext4 partition but I want to edit a file, like this :
http://image.gilawhost.com/14/04/24/vgg34udp.png
Then I've no clue, sorry. As far as I knew it was only partitions that are ext4, not extensions.. Must be something unique to Archos stuff perhaps.
According to this answer (specifically the part "Since Archos uses a very different (and encrypted) filesystem partitions scheme"), I would say you're not able to open that file (at least not without cracking the encrypthion Archos uses. Which would be another subject.

Categories

Resources