[Q] Firerat's Custom MTD Partitions Question - Hero CDMA Q&A, Help & Troubleshooting

Sorry if this question has been asked multiple times, I did try my best to find an answer on google and xda but no luck, so here I am
I have it set up and everything. Before i did it, i had 150 mb of total space, now I have 298 mb of total space but i read that people got up to 350+ of mb space, is there a way i can get mine up that high?

Mobiono said:
Sorry if this question has been asked multiple times, I did try my best to find an answer on google and xda but no luck, so here I am
I have it set up and everything. Before i did it, i had 150 mb of total space, now I have 298 mb of total space but i read that people got up to 350+ of mb space, is there a way i can get mine up that high?
Click to expand...
Click to collapse
If you make your /system and /cache as small as you safely can, then your /data is what it is. The only way to get more space is decrease the /system size
Sent from my HERO200 using XDA App

ajrty33 said:
If you make your /system and /cache as small as you safely can, then your /data is what it is. The only way to get more space is decrease the /system size
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
Thank you how would i know what would be the smallest, safest amount that /system could be?

E
Mobiono said:
Thank you how would i know what would be the smallest, safest amount that /system could be?
Click to expand...
Click to collapse
It really depends on which Rom you are running. For jaybob's 2.3.7 (TeamHeroc 30Nov) that I am using
I have my mtdpartmap at 105 2. I think this gives me data of 352 total. I have pulled some apk's out though and you will have some market issues unless you use s0be's market fix because the cache is set below 18. This is a gingerbread thing that didn't happen on froyo from what I can remember. You also need to use firerat's 1.5.8 (or above I guess for the 18mb cache to work without the market fix). You can check the size of the partitions by going into the terminal emulator and doing: df -h, of that doesn't work try busybox df -h. That way you can see what you need. If you go over the allotted system partition amount you will run into all kinds of issues. Leave some room if you like to change boot animations or anything else involving the system.
Sent from my HERO200 using XDA App

Drunkpilot said:
E
It really depends on which Rom you are running. For jaybob's 2.3.7 (TeamHeroc 30Nov) that I am using
I have my mtdpartmap at 105 2. I think this gives me data of 352 total. I have pulled some apk's out though and you will have some market issues unless you use s0be's market fix because the cache is set below 18. This is a gingerbread thing that didn't happen on froyo from what I can remember. You also need to use firerat's 1.5.8 (or above I guess for the 18mb cache to work without the market fix). You can check the size of the partitions by going into the terminal emulator and doing: df -h, of that doesn't work try busybox df -h. That way you can see what you need. If you go over the allotted system partition amount you will run into all kinds of issues. Leave some room if you like to change boot animations or anything else involving the system.
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
Thank you very much for your assistance. My mtdpartmap is 160 2 , so i guess im good for now lol. I'll just switch Roms and evaluate the difference in internal mem. for myself. Right now im on Drew's something..(first Rom in my sig) so i'm probably maxed out already. Once again, thanks ( already used the thanks button lol)

Call me terminal newbie-noob
I'm looking for two things:
1) firerats v.1.5.8
2) easy to follow instructions for installation.
I also want to use firerats (have for a long, long, long time, but, I've been intimidated by the OP disclaimer and super-long thread), but I cannot find v.1.5.8.
I've gone through the links, and I'm just not seeing it.
(Folks, you gotta understand: I'm a fumbler and overcautious, and it's painful to ask for help.)
I love having my little hero rooted. I love the continuing work by AOSP, Dastin and Matt Crystal and innumberable others, it's great! I just don't have enough room for the apps I use. I wouldn't travel down this path if I didn't think I had to, so please lend an old fool your brain.
The best how-to I've come across (so far) is the ROMRepo:
http://romrepo.info/wiki/index.php?title=Firerat's_Custom_MTD_Partitions_(HeroC)
It takes me to v.1.5.6.
I just don't want to screw up.
Thanks in advance.
-p

Am I asking for too much? I don't mean to cause harm. If one would be so kind as to provide a link to v.1.5.8, I'd be grateful.
I know I'm a risky prospect for lending help to, but I won't hold it against anyone if things don't work out right.
Thanks for your consideration.
-p

As far as instructions on how to use the mod just read the op then spend a little time reading the thread. Then make a nandroid and give it a go. Also you should have a copy of your current recovery on hand and adb installed on your pc.
#Root-Hack_Mod*Always\

permazorch said:
I'm looking for two things:
1) firerats v.1.5.8
2) easy to follow instructions for installation.
I also want to use firerats (have for a long, long, long time, but, I've been intimidated by the OP disclaimer and super-long thread), but I cannot find v.1.5.8.
I've gone through the links, and I'm just not seeing it.
(Folks, you gotta understand: I'm a fumbler and overcautious, and it's painful to ask for help.)
I love having my little hero rooted. I love the continuing work by AOSP, Dastin and Matt Crystal and innumberable others, it's great! I just don't have enough room for the apps I use. I wouldn't travel down this path if I didn't think I had to, so please lend an old fool your brain.
The best how-to I've come across (so far) is the ROMRepo:
http://romrepo.info/wiki/index.php?title=Firerat's_Custom_MTD_Partitions_(HeroC)
It takes me to v.1.5.6.
I just don't want to screw up.
Thanks in advance.
-p
Click to expand...
Click to collapse
In case you didn't find it, http://www.mediafire.com/?lifib6a9ptj5j#1pcwmbdd9kqpc
Also, the instructions are on the OP of this thread
Personally, I would do Data2Ext. You get Gigs of int. mem. (Around 1 gig if you set your ext. size to 2048mb. Of course, the bigger your sdcard, the bigger you can make your partition.)

Related

Where is my user.conf file hiding?

I can't find it in /system/sd nor /system/bin. I am trying to get my linux swap working but the user.conf app is a bit too advanced for me.
I am running Cyan 4.2.11 / darkstar .6.7. Fat 32, EXT3, Linux Swap =128MB.
Check out this thread
I am running CM 4.2.11 with 10mb CFS hack and, imho, it does not have a need for a swap but your mileage may vary.
borodin1 said:
Check out this thread
I am running CM 4.2.11 with 10mb CFS hack and, imho, it does not have a need for a swap but your mileage may vary.
Click to expand...
Click to collapse
Yeah, It's not necessarily running slow but I want to insure that everything is working properly. If I don't need the swap, should I delete that partition and just run fat32 and ext3? If so, can I just rm the partition in adb? Or will that screw up the ROM?
Don't delete that partition. You will need it when you switch to Android 2.1 most likely. It's only few MB right? Just let it be, it's not touched unless you specificaly tell the system to touch it.
If you do decide to get rid of it the this thread should help you out.
Good luck.
Don't delete that partition. You will need it when you switch to Android 2.1 most likely. It's only few MB right? Just let it be, it's not touched unless you specificaly tell the system to touch it.
If you do decide to get rid of it the this thread should help you out.
Good luck.
borodin1 said:
Don't delete that partition. You will need it when you switch to Android 2.1 most likely. It's only few MB right? Just let it be, it's not touched unless you specificaly tell the system to touch it.
If you do decide to get rid of it the this thread should help you out.
Good luck.
Click to expand...
Click to collapse
OK, I'll keep it. But, its not doing anything. Here is the result when I run 'free' in terminal:
total used free shared buffers
Mem: 107076 103120 3956 0 508
Swap: 0 0 0
Total: 107076 103120 3956
As I said, it will not do anything untill rom-maker puts a script in his rom (such as manup's eclair rom) in or you push your own script(by creating user.conf). Just let it be and don't worry about it. You'll use it when time comes.
Cool. Thanks, man.
If you still want to use your swap you have to make your own user.conf
Just follow this, part way down it tells you how to make one just for swap.
http://wiki.cyanogenmod.com/index.php/Compcache
Sleeepy2 said:
If you still want to use your swap you have to make your own user.conf
Just follow this, part way down it tells you how to make one just for swap.
http://wiki.cyanogenmod.com/index.php/Compcache
Click to expand...
Click to collapse
Thanks. I used that tutorial but I am still getting zeros when running 'free'. I know I am messing up somewhere.
staunty said:
Thanks. I used that tutorial but I am still getting zeros when running 'free'. I know I am messing up somewhere.
Click to expand...
Click to collapse
I used the app for making it and just left everything as is except for:
put a check on apps2sd
put a check on swap_file_en
and under that where it says "linux_file_size" I put the size of my swap partition
i hit push and it takes a few seconds then rebooted the phone.I now have 93 MB of swap.I probably did something wrong or left something out but it works.

z4mod for the Tab

Hi guys.
I know that the z4mod can successfully patch a Tab kernel, without any problems (I did it myself, flashed it, and ran it just fine for a few days).
But when I tried to run one of the zip files to switch the file system, everything went nuts and I had to reflash my Tab from scratch.
So I did a little investigating, and as far as I can tell, all that needs to be done to make the whole thing successful is to modify the script in the zip file to correct the mount point names (as they are different from the SGS).
So if anyone around here knows anything about this sort of business, please take a look at it and let me/us all know, cuz it would be GREAT to get z4mod working on the Tab.
Here's the web site if anyone's interested;
http://www.sgscompilebox.dreamhosters.com/
Hi, did you tell ryanZA what results you got? I'm sure he'll be interested to help.
However, thank you for trying, I was about to do the same.
Noob question. What's the benefit of running ext2/3 for the internal partitions versus rfs?
knightnz said:
Noob question. What's the benefit of running ext2/3 for the internal partitions versus rfs?
Click to expand...
Click to collapse
RFS is Samsung's partition format (FAT + journal) that is supposed to be better for flash devices. Apparently it is not so good, and very laggy. Therefore people are switching partitions to ext2/3 or moving and linking stuff to SD card with ext2/3 or jffs2 partition.
jeebspawnshop said:
So I did a little investigating, and as far as I can tell, all that needs to be done to make the whole thing successful is to modify the script in the zip file to correct the mount point names (as they are different from the SGS).
Click to expand...
Click to collapse
Could you explain how you came to that conclusion ?
I was not able to locate my mount points to compare with what you did observe, but i guess we should start with that, then ask ryanZA his thought about what you've found.
Fyi: http://forum.xda-developers.com/showthread.php?p=9629477#post9629477
doloop said:
Could you explain how you came to that conclusion ?
I was not able to locate my mount points to compare with what you did observe, but i guess we should start with that, then ask ryanZA his thought about what you've found.
Click to expand...
Click to collapse
It has been tested by many Galaxy S users. Go to their forum and you will know
evermick said:
It has been tested by many Galaxy S users. Go to their forum and you will know
Click to expand...
Click to collapse
I'm really newb on linux, but i've read a little since last post.
What if we:
1 - dump mount list from a working SGT (terminal or adb shell -> mount ?)
2 - apply Z4mod then SGT won't boot (i assume it creates /etc/.fstab)
3 - edit /etc/fstab to match the dump in step 1
But, how do we read/write /etc/fstab once the sgt is locked ? using some kind of update.zip, or is there some shell service we could connect to, even if some mounts aren't in the right place ?
Unfortunately, everything I could contribute to this idea was in my first post. I know absolutely nothing about Android development, sadly...
But after reading what Deodexed said about volumes not mounting properly during recovery (he's the guy trying to get CWM to work for our Tabs) it seems that maybe that's the reason that z4mod may not work... If the volumes aren't mounted correctly, it can't convert the filesystems.
Maybe what doloop said might work? I hope so. An SGT running on ext2 would rock the socks off anything else out there. God I want it

[Q] Odex vs. Deodex - what's better?

Hello,
I was wondering, what are the advantages of deodexing, aside from theming?
I've done some tests with my everyday stock ROM and found an odex ROM was faster. I understand that odex files are basically classes.dex, but specifically made for my platform, Android version and is not compressed, thus accelerating the start times.
I went as far as pushing the system apps updates in /system directly (by hand, I can tell you it gets old fast). But I still had low memory in /data. Then I remembered, automatic odex files are stored in dalvik-cache, and thus, when Maps, which has a very big odex file or so, first starts, even if it's on /system, you end up still needing space in /data to start.
So I searched how I could hand-do these odex files, and came across dexopt-wrapper. I loaded it up on my phone, and started odexing all these system apps that used to be odexed.
All in all, you lose room in /system (because odex+apk is slightly larger than the apk, but you're not supposed to have /system writable anyway), or you lose valuable space in /data, where you could put all your apps.
Basically:
I backed up my stuff with Titanium (after cleaning the cache). I was on Geo411m's ROM. I had around 25MB left on my phone.
I then reflashed FRG33 from the PASSIMG.zip
then updated with the FRG83D OTA (straight from Google, not through update.zip)
I updated all system apps through the Market
I used rageagainstthecage to shell root, to read the system and data partitions
I used dexopt-wrapper to create odex files for all the updated apks I had
I pushed everything in /system
Finally, I restarted. Before this, I booted Amon-RA's recovery to clear all the user data
I rooted (permanently this time), restored all my apps through Titanium Backup. I had 65 MB left. That's a 40 MB difference, just by odexing.
So now I wonder, knowing I don't plan on theming, is deodexing useful outside of this, and should I give up some space for something that eluded me?
Sorry for the lonnnnnng post
Thanks!
I'm not aware of any benefit of deodexeding, other than theming.
i've heard people say there is definitely a performance difference between the two, but i really dont know from personal experience. it probably doesnt matter for general usage...
I believe you're right, deodex takes up more of your internal space, which to me is a problem
Sent from my Nexus One using XDA App
When I first flash a new rom from recovery the odex rom will start faster,but I cant feel any difference between odex and deodex rom on speed when my defy is on.
Aside from the first load, deodexed system runs at the same speed as odexed, or with negligible differences (not 100% sure if system-odexed files that are created in Dalvik-cache are the same as .odex that are in the apks).
The disadvantage of deodexed system is extra size of Dalvik-cache. While it can be quite a difference for those using N1's tiny internal space w/o any sort of A2SD solution, it's negligible for those running A2SD or on phones with proper internal memory size.
The advantage of deodexed system is being able to modify the apps themselves, and the framework. In addition to theming, it allows for different kinds of modifications - like trackball wake, or RTL (Hebrew/Arabic) framework patching.
Quite an old thread you managed to dig...
kingdragonfly said:
When I first flash a new rom from recovery the odex rom will start faster,but I cant feel any difference between odex and deodex rom on speed when my defy is on.
Click to expand...
Click to collapse
Way to bump a 1.5 years old thread, lol.
Theshawty said:
Way to bump a 1.5 years old thread, lol.
Click to expand...
Click to collapse
maybe because you all people tell noobs to serch and don't ask. and when i find 4 years old thread is still very usefull
Sent from my Nexus 5 using Tapatalk
magik300 said:
maybe because you all people tell noobs to serch and don't ask. and when i find 4 years old thread is still very usefull
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
You felt it was worth a two year bump just to convey that? Oh, ok.
Sent from my HTC One using Tapatalk
I don't know about a 2 year bump, but a 1 year bump to agree that this is a nice simple thread that is exactly what it says on the tin.
Lol
Lol
Is there any good resource I can be pointed to learn about the difference between Odex/Deodex?
nice info from this thread, thanks!
Hi
I would like to start automatically my Htc n1 when i put in the charger.
There are some methods on the internet,for some other phones.
Can someone tell me wich and how the folder i must modify?
My phone doesn't start when it's plugged in and take the battery out and put it back(i dont know why).
Sorry to write to you here, but I see you are very good at what you do.
I thought you could help me.
Thanks

[Q] Question regarding 2708+ and hboot 1.33.0013d

Noob here, I was not allowed to post on the development forum so I had to put this here:
I recently managed to flash the ported CM6.1 with 2708+ kernel following this thread http://forum.xda-developers.com/showthread.php?p=9055790#post9055790 and this http://forum.cyanogenmod.com/topic/11548-cm61-2708port-for-new-radiospl/
Everything works atm and no FC's etc.
However, i really want to modify my MTDPartitions so i can make the CACHE really small and get more space for storing apps on the phone. I have read http://forum.xda-developers.com/showthread.php?t=893706 guide and have used firerat's mtdpartitioner before i moved to hboot-1.33.0013d.
my problem is, hboot-1.33.0013d has s-on and does that mean I cant repartition my G1 for extra space?
Is it possible to keep the 2708+ kernel with a different SPL so i get the extra ram(from the kernel) AND the extra space(from repartitioning)?? Can you point me in the right direction?
I know basic adb and fastboot commands if they are required.
Thanks for reading
FlyingShrapnel said:
Noob here, I was not allowed to post on the development forum so I had to put this here:
I recently managed to flash the ported CM6.1 with 2708+ kernel following this thread http://forum.xda-developers.com/showthread.php?p=9055790#post9055790 and this http://forum.cyanogenmod.com/topic/11548-cm61-2708port-for-new-radiospl/
Everything works atm and no FC's etc.
However, i really want to modify my MTDPartitions so i can make the CACHE really small and get more space for storing apps on the phone. I have read http://forum.xda-developers.com/showthread.php?t=893706 guide and have used firerat's mtdpartitioner before i moved to hboot-1.33.0013d.
my problem is, hboot-1.33.0013d has s-on and does that mean I cant repartition my G1 for extra space?
Is it possible to keep the 2708+ kernel with a different SPL so i get the extra ram(from the kernel) AND the extra space(from repartitioning)?? Can you point me in the right direction?
I know basic adb and fastboot commands if they are required.
Thanks for reading
Click to expand...
Click to collapse
There is no problem in using CustomMTD and 1.33.0013d in parallel. (As you can see in my signature, I am running the same configuration)
With CustomMTD you have to pass the partition layout to the kernel (that's the reason why you have to patch recovery- and boot- kernel separately), but it's completely independent of the hboot you have installed. Follow the instructions of Firerat's CustomMTD thread (the link you can find in my signature, too) and you are fine, s-on /s-off has no influence on it.
Thanks, just one more thing from me.
Is there a way of either using adb or terminal on the phone to view how much space is used on each partition. Like how Firerat has done here http://forum.xda-developers.com/showthread.php?t=717874
That would be very helpful because I am trying to slim down the SYSTEM partition while I am at it, to get maximum space out of the phone
EDIT: What size would you recommend that i allocate each partition and how much free space on the SYSTEM partition should I leave? does it matter?
FlyingShrapnel said:
Thanks, just one more thing from me.
Is there a way of either using adb or terminal on the phone to view how much space is used on each partition. Like how Firerat has done here http://forum.xda-developers.com/showthread.php?t=717874
That would be very helpful because I am trying to slim down the SYSTEM partition while I am at it, to get maximum space out of the phone
Click to expand...
Click to collapse
try
Code:
adb shell df -h
or go into terminal on your phone and use
Code:
df -h
so for each mounted partition you can see, how big it is, how much space is allocated and how much space is still free
FlyingShrapnel said:
EDIT: What size would you recommend that i allocate each partition and how much free space on the SYSTEM partition should I leave? does it matter?
Click to expand...
Click to collapse
Depends much on the ROM you would like to install. I am running 90/2, i.e. 90MB for /system, 2MB for /cache and about 117 MB for /data. CM 6.0/6.1 need less space on /system, others (especially sense-ROMs) probably more.
Just tried removing necessary native apps, failed cos it broke facebook... couldnt be bothered with it because it only saved like ~4MB
followed the instructions and using 90/2.
somehow, i broke gapps, none of the google stock apps are working, should i reflash gapps or is it more complicated than that? will i need to start all over again?
What apps / programs did you remove? How did you do it? Did you make a nandroid backup first?
Sent from my Gingerbread on Dream using XDA App
I did take a nandroid back up, i removed:
Email.apk
HtcCopyright.apk
LatinIME.apk
LiveWallpaperPicker.apk
PicoTts.apk
Protips.apk
UserDictionaryProvider.apk
VoiceDialer.apk
VpnServices.apk
I have already tried restoring through nandroid, then wiping data/cache through factory reset then restoring. No luck
reflashing all over again
EDIT: reflashed worked until I rebooted, then it is stuck on the G1 splash screen. I can still get into recovery... any ideas? I guess I will just stay off mtd for now *sigh*
Did you do the nandroid before or after patching the kernel? If you took it before, you have to repatch, otherwise the partition layout doesn't match.
Another hint: do a
fastboot erase system -w
First, then go to recovery and restore your backup. After restoring you probably need to reflash the FR_boot_xxx.zip, depends when you took the backup, i.e. whether the kernel was already adapted to cMTD or not.
Sent from my Gingerbread on Dream using XDA App
I did the nandroid before i did the mtd. I am trying the flashboot now
EDIT: tried it, used 2 different nandroid back ups. both times i ended up with gapps FC-ing all the time and no phone app.
EDIT2: nvm, I just reflashed from scratch, it all works fine now. I just wont touch mtd and stuff for now.
case closed. Thanks for the help

Virgin Mobile Help

I have one of the Virgin Mobile models that has the smaller memory. I have been looking through these forums looking for a way to clear up the memory. It looks like there is simply not enough progress on this phone currently. What I would really like is a basic ROM replacement that does not have any of the HTC crap in it to make it leaner and use less space. Am I right that I need to wait for future developments? I just want to make sure I am not missing something. Is there any way to free up more space right now with existing hacks? I see lots of different posts in here, and when I think I am on to something, I read that it does not work on the Virgin Mobile phones, so I am getting confused. I was hoping somebody who knows my phone really well could hold my hand and tell me exactly what I can do to get some more free space. I am familiar with a lot of the tools, and have rooted and installed recovery on my Kindle Fire, and on my Ouya. I have rooted an old LG phone, but that was cake compared to what I am reading for this phone! Thank you!
Probably the best you can do for now would be to flash a write protection removed kernel, remove as much uneccessary HTC and carrier bloat as possible, and then use an app from the Play Store called System App Manager to turn most of the apps you install into system apps, thereby using unused space on /system instead of your internal storage. My advice is to make a TWRP backup before converting any apps, because some apps will not act right after being moved to /system, so just do a process of elimination/trial & error until you figure out which apps can be moved without causing problems. When you figure out which apps act up, restore your backup and re-do the process without converting the unruly apps.
You also might want to flash Raptor Rom, as it's probably the smallest rom available, leaving tbe most empty space for those apps you move. Someday we'll get a rom/kernel that will allow the moving of apps & thier data to an sd partition, till then this is probly your best bet.
sent from a device
huggs said:
Probably the best you can do for now would be to flash a write protection removed kernel....You also might want to flash Raptor Rom, as it's probably the smallest rom available
Click to expand...
Click to collapse
Great! Can anybody point me in the right direction for some good/updated directions on performing each of these? Thank you!
jrburke99 said:
Great! Can anybody point me in the right direction for some good/updated directions on performing each of these? Thank you!
Click to expand...
Click to collapse
Firstly, if you haven't done so already: Follow this
Then go grab the download from whatever kernel you want to use thread or grab RaptorROM here. RaptorROM already includes a version of @Pattyboi's kernel, but you can always flash the newer kernel (which he put up last night?) on top.
Drop whatever files you plan on flashing onto the phone, or the sdcard. Reboot into TWRP (volume down and power button when phone's off then select Recovery), tap install, find the .zip or .img to flash, tap, then Swipe to Install/Flash

Categories

Resources