[Q]Adapting Turbo DATA to HTC Desire 500 - 4gb+ Data partition on sd-ext? - HTC Desire 500

Developer delta-roh made a script for the HTC Sensation that enables it to mount /sd-ext as "internal memory", on a sufficiently fast sdcard this would mean you could make the data partition as big as your sd-ext partition.
This is the thread: TURBO DATA - 8GB DATA PARTITION
The script is only for the Sensation, but the dev said in the thread it could theorically be adapted for other phones:
This is ONLY for the HTC Sensation/XE; it can work also for flashable images of other devices, but then you have to open the batch mni.bat file in the directory @bins and to change the strings for userdata_org1/2, userdata_new1/2 - however, you should only do this if you know exactly what you are doing - and look out the string pairs org1/new1 and org2/new2 have to have the same length! NO SUPPORT!
Click to expand...
Click to collapse
The script involves converting a ROM zip, and requires a ROM with a boot.img file. Adapting it would involve tinkering a bit with partition names, as the Desire's are probably different... But it could be feasible, and it could solve the internal memory problem many Desire 500 users have.
I have a Sensation with a class 10 sdcard, and the mod works pretty well for me, it solved the internal memory problem.
I do not have a Desire 500 handy right now (it's my girlfriend's phone), but maybe somebody could try their hand at this? They're both HTC phones and have similar partitions. Maybe it's not too hard?
Any devs want to try?

Working, thank you very much (tested on single sim)

Puzzlemanx said:
Working, thank you very much (tested on single sim)
Click to expand...
Click to collapse
What? Really? You didn't even need to adapt it? Tell us everything, please, which ROM did you use? Which SDCard? This could be great news!

I simply did what is said in the article... (stock rom)

Related

[Q] Convert SDCard to MainMem so External_SD becomes SDCard?

Hi there,
Is there a way to make the add the internal SD card to the main memmory? So that there would not be an internal SD card anymore?
I do not mean swapping the moutpoints around so my External_SD becomes my primary and my internal my second....
I want to get rid of the internal one alltogether (adding it to main memory).
I figure that I'll have to format the storage in a certain way... would that do it?
Can someone tell me step by step what to do?
I do have CW-mod installed.
I did search the forum, but couldnt find anything conclusive. Just hints that it should be possible...
If there already is a thread where all this is explained, please point me to it, because I couldn't find it.
Thanks,
Pfeffa-rah
I don't think this is possible , never heard of someone who did it
I have no idea how to do that. My question is... why would you want to do that?
Having an internal_sd partition adds the benefit of having big app data (such as those in Gameloft games) sit in a very fast partition and still be called "sddata".
Also, it's mountable via PC so everything in there can still be backed up. So it's best of both worlds really.
This was discussed some time ago in this thread: http://forum.xda-developers.com/showthread.php?t=1013575
There were ideas on how to remount the cards at boot. I myself come to the conclusion that since more phones start to behave in this way, app developers will have to start dealing with it. It just sucks they are mostly slow on the uptake. My main problem was the Spotify cache location being hard coded so I resorted to hack the Spotify apk.
PS. salisbury_steak: What is it with people like you that every time someone has a question on how to do something, your immediate response is "But why would you want to do that?!".
sorech said:
PS. salisbury_steak: What is it with people like you that every time someone has a question on how to do something, your immediate response is "But why would you want to do that?!".
Click to expand...
Click to collapse
That was actually an honest question.
I wanted to understand why he wanted to do it. (i.e. What would be the advantages of it.) There was no supposed sarcasm in there.
how about the ability to install 5x more applications?
Having that stupid 5gb partition as sd card and the real sd card as a sub folder is retarded...
My 32GB class 10 cars is a lot faster than the internal one.
The internal 5gb memory is MUCH TOO SMALL!!! Most apps don't allow you to store data on the external card. If you like me and many others install some games that download aditional data + a nav app that downloads maps for europe + some streaming music app like wimp that can cache music for offline play then you are ****ed with LG's setup.
The setup CM7 uses solves the main problem but effectively wastes the 5gb by mounting it at emmc where like 0,0001% of apps are able to access it.
So adding those otherwise wasted 5gb to the main memory would be great. But i have not seen any solution to that yet :-(
Thank you Gensplejs for explaining that to them. I had no idea how to reply to that since it seemed so obvious to me.
This thread was ment to be a question about how to do it and not to discuss the usefullness of it. That is where I lost the way in other threads...
So, thanks for your replys all (realy).
But now, back On-Topic:
How would I do it?
Sent from my LG-P990 using XDA Premium App
Please don't blame me if you tried it and you screwed up your phone.. It's your choice...
Well, I don't know if this would work, but this is how I would do it (accepting the fact that I'd loose almost 2GB of /data's free space):
1. Format your internal sd card to the same file system as your /data partition is (ext3 or ext4)
2. Copy every file from /data 1:1 to your sdcard (cp -R /data/* /sdcard)
3. I don't know when and where the partitions are mounted (maybe init.rc??)...anyways change the target there and let /data point to the internal sd card partition (so it is ensured that it is mounted automatically to the new location)
4. Reboot and keep your fingers crossed
I think i figured how to do it in theory. First we need some free space at our microsd to cp /data. Then we should repartition with fdisk /dev/block/mmcblk0p8 and p9 into one partition and change vold.fstab to mount only externalsd at /sdcard as we do when we swap partitions. In theory it should work but i cant test it right now or make a script since ve gone vacations and i dont have a pc to restore in case of error
I agree.. certain apps wont store to sdcard.. its better to use the whole 8gb as phone storage, and use external sdcard as default sdcard.
Sent from my LG-P990 using XDA App
What ive found till now is that sd swapping is easy. You can do it by tweaking only vold.fstab. But repatriationing is a pain in the ass. Looks like lg has "faulty" partitions or something and to do it you must mesh up with with almost half partitions.
I had to rebuilt boot lgdrm recovery data and sdcard to make em half work. So it probably isnt worth the trouble. Also I think init.rc is built on the boot. So just remounting internal sd to /data wont work either.
sectors is not space
it says 7996, so thats 8GB
i saw it in hurry. the brain sometimes belives whats he want to belive
sorry
New to XDA
Hello everybody,
I'm new to android and i'm trying to find out how to solve the problem posted in this thread.
I see you've got the awnser but i don't know how to do this.
I've been searching google and XDA for ever but i just can't find the awnser.
Could you make a step by step howto or point out to a post how to do this.
I mean converting your external sd to ext4 and change the mounting points.
I'm a complete nood, i didn't get adb to work on my pc, ext4 recovery is not for the p990 2x.
I've read something abbout changing fstap for swapping te mounting points for sdcard and emmc, witch is also ok for me, but formating to ext4... wel i frankly don't know how to do this.
I'm quite stuk on this.
The only partitioning experience i've got is Gparted in Ubuntu or repartitioning in Windows 7.
Thans in andvance!
Greetz,
JMG
http://android.modaco.com/topic/347...-partitions/page__gopid__1821791#entry1821791
check this
you can expand data partition , but there is a limitation of 1.75gb
Thanks davjan
Thanks davjan,
As far i can see it's indeed not worth it.
I wil have to go on and try to find out how to change the filesystem to ext4 and swap the internal and external sd.
That way i get more usable space instead of a big datastorage witch cannot contain program data.
But thanks for the quick reply.
Jean Michel Gaar said:
Thanks davjan,
As far i can see it's indeed not worth it.
I wil have to go on and try to find out how to change the filesystem to ext4 and swap the internal and external sd.
That way i get more usable space instead of a big datastorage witch cannot contain program data.
But thanks for the quick reply.
Click to expand...
Click to collapse
what rom are you using? is your phone rooted?
swapping internal with internal sd is very easy
and most of the roms here on xda are ext4 , if you instal one of them they autoconvert to ext4
Jean Michel Gaar said:
Thanks davjan,
As far i can see it's indeed not worth it.
I wil have to go on and try to find out how to change the filesystem to ext4 and swap the internal and external sd.
That way i get more usable space instead of a big datastorage witch cannot contain program data.
But thanks for the quick reply.
Click to expand...
Click to collapse
I you read the link provided you'll see that it makes what you want: grow internal filesystem = lower SDcard usable space. The only thing is that it doesn't seem possible is to use the whole space: system limitation. 75Markus tried high /system and /data values and phone didn't work.
See in his Mediafire Folder, 'Nvflash + guide for changing Partitions:
http://www.mediafire.com/75markus
Ext4 is now common with custom ROMs (in fact all of them).
You should search in sd-ext partition system, which was designed to artificially expand filesystem on older phones using an 'ext' partition. I didn't heard anybody using this on O2X.
If you use CyanogenMod based ROMs, your external card will be mounted ad /sdcard by default.
Switching internal and external SD
Thanks guy's,
I'll check it out.
I've been using cyanogenmod 7.1 stable with vorkkernel 20110208.
But that gave me batterydrains while using maps and nextvid ate the same time (while i'm driving).
Now i'm trying MIUI 1.11.11 with latest swift extreme.
But MIUI is very buggy so i'm thinking of going back to CM.
The only thing is that my phone won't boot with the latest vorkkernel.

Is there a way to dualboot?

Is there a way to dualboot roms?
Sent from my GT540 using Tapatalk
I really know nothing about dualbooting but i don't think the optimus swift has the guts for it
No.
someone correct me if i
am wrong, but our phones can't dualboot.
It could be possible by creating new partitions. For example, have two system partitions and two data partitions. We can flash one boot.img to the boot partition for the ROM to automatically boot, and flash another to the recovery partition. So when you hold home, it will boot into the second boot.img instead.(recovery images are exactly the same as boot images but with a modified ramdisk that runs the recovery program)
Where in the second boot.img, we can modify the init.rc file to mount a different partition as /system (a data2system rom works sort of like this, init.rc is modified so the data partition is mounted as /system, and system is mounted to /data, this is how you get more space as data is stored on /system, but Android thinks its acessing the data partition, where it is really accessing system) We can use this principle to dual boot.
Now, how will this work. Somehow split the system and data partitions into two bits (2 system partitions and 2 data) If we have the 1st ROM on the original system partition, and use its original boot.img, and then have the 2nd rom on the different system partition, and modify the ramdisk to use the different partitions as /system and /data, we could have a working dual boot.
However, there are some problems.
1. Our device has a NAND that is 512MB in size. It is split into:
Boot
Recovery
System
Userdata
Cache
and some other miscellaneous partitions. System is 250MB in size, and data is 134MB (under stock partition sizes) These split would barely fit any rom on it and hardly any data either. Maybe if the device had 1GB ROM, it may be different.
2. It may require some bootloader tweaking to create these new partitions, and for the device to recognise them.
Also, why would you want to dual boot your phone anyway? You have a computer for that
App
There is this app named BootManager
I've tried it out but this can't backup the boot partition. It's currently not supported. Maybe someone could try it out.
Keep in mind that it needs to be purchased for 'LEGAL' use.
jhonnyx1000 said:
There is this app named BootManager
I've tried it out but this can't backup the boot partition. It's currently not supported. Maybe someone could try it out.
Keep in mind that it needs to be purchased for 'LEGAL' use.
Click to expand...
Click to collapse
I tried that! Gives an error when backing up boot image!
Sent from my GT540 using Tapatalk
effortless. said:
Also, why would you want to dual boot your phone anyway? You have a computer for that
Click to expand...
Click to collapse
Actually I don't
Sent from my GT540 using Tapatalk
It is possible to dualboot. A russian guy already made it for us. It was meant to dualboot 2.1 and 2.2 but that rom has never made it to beta stadium.
The idea is that a second rom is stored on the sd card. I've tried to get it working but i didnt succed. But it should work.
It was on 4pda.ru. when i am on my computer, i will post a link.
Joost
Sent from my GT540 using Tapatalk
Couldn't we use the same principal as running Ubuntu chroot? As I thought chroot and loop devices where originally for HTC to test builds? Correct me if I'm wrong here
But I always thought if you had say a 32gb SD you could have 2 or 3 roms plus a couple Linux distros running on the device through chroot not same time obviously device would handle 2 max?
Also I was looking at a article to run native Linux on the eee pad transformer it looked like all they did was swap the boot.img or some kind of script so it ran off the SD card straight away. So my question would be could you add a feature to recovery that would allow you to change boot.img or script for each rom/distro then reboot straight into it making the device multi boot?
Sent from my GT540RR using XDA App
This is the topic about the dualboot, with download links to the 'dualboot' boot, and some explanation about the partitions on the sdcard.
http://4pda.ru/forum/index.php?showtopic=200838
Joost
liamwilli said:
Is there a way to dualboot roms?
Sent from my GT540 using Tapatalk
Click to expand...
Click to collapse
This should be possible. But, would require customizing boot.img and boot loader.
ErnuB said:
I really know nothing about dualbooting but i don't think the optimus swift has the guts for it
Click to expand...
Click to collapse
effortless. said:
It could be possible by creating new partitions. For example, have two system partitions and two data partitions. We can flash one boot.img to the boot partition for the ROM to automatically boot, and flash another to the recovery partition. So when you hold home, it will boot into the second boot.img instead.(recovery images are exactly the same as boot images but with a modified ramdisk that runs the recovery program)
Where in the second boot.img, we can modify the init.rc file to mount a different partition as /system (a data2system rom works sort of like this, init.rc is modified so the data partition is mounted as /system, and system is mounted to /data, this is how you get more space as data is stored on /system, but Android thinks its acessing the data partition, where it is really accessing system) We can use this principle to dual boot.
Now, how will this work. Somehow split the system and data partitions into two bits (2 system partitions and 2 data) If we have the 1st ROM on the original system partition, and use its original boot.img, and then have the 2nd rom on the different system partition, and modify the ramdisk to use the different partitions as /system and /data, we could have a working dual boot.
However, there are some problems.
1. Our device has a NAND that is 512MB in size. It is split into:
Boot
Recovery
System
Userdata
Cache
and some other miscellaneous partitions. System is 250MB in size, and data is 134MB (under stock partition sizes) These split would barely fit any rom on it and hardly any data either. Maybe if the device had 1GB ROM, it may be different.
2. It may require some bootloader tweaking to create these new partitions, and for the device to recognise them.
Also, why would you want to dual boot your phone anyway? You have a computer for that
Click to expand...
Click to collapse
Your idea is right and would work but we can't afford to loose the recovery. It's important when modding. Unlike fastboot or KDZ modes, using recovery leaves one partition untouched. ie, when using recovery, the recovery partition is never modified. It doesn't touch boot loader either. It's almost impossible to brick a phone using recovery. And, if something goes wrong with other partitions, you can always boot into recovery and have stuff restored or fixed with an update.
jhonnyx1000 said:
There is this app named BootManager
I've tried it out but this can't backup the boot partition. It's currently not supported. Maybe someone could try it out.
Keep in mind that it needs to be purchased for 'LEGAL' use.
Click to expand...
Click to collapse
It's an HTC only app. It's an xda project. You can get it for free. Hit on to http://forum.xda-developers.com/showthread.php?t=1184173
joostvhoek said:
It is possible to dualboot. A russian guy already made it for us. It was meant to dualboot 2.1 and 2.2 but that rom has never made it to beta stadium.
The idea is that a second rom is stored on the sd card. I've tried to get it working but i didnt succed. But it should work.
It was on 4pda.ru. when i am on my computer, i will post a link.
Joost
Sent from my GT540 using Tapatalk
Click to expand...
Click to collapse
Thanks. Would love to try it out.
Danzano said:
Couldn't we use the same principal as running Ubuntu chroot? As I thought chroot and loop devices where originally for HTC to test builds? Correct me if I'm wrong here
But I always thought if you had say a 32gb SD you could have 2 or 3 roms plus a couple Linux distros running on the device through chroot not same time obviously device would handle 2 max?
Also I was looking at a article to run native Linux on the eee pad transformer it looked like all they did was swap the boot.img or some kind of script so it ran off the SD card straight away. So my question would be could you add a feature to recovery that would allow you to change boot.img or script for each rom/distro then reboot straight into it making the device multi boot?
Sent from my GT540RR using XDA App
Click to expand...
Click to collapse
chroot is not a real dual boot solution. It's based on the idea of virtualization and so it has performance issues on a low end phone like GT540. When using chroot, parts of the Android OS as well as the other OS is run at the same time. This would be idea only in faster devices with more RAM.
And, yes, if you can modify the boot.img or recovery.img to boot into other partitions, it would be awesome. The beauty of linux is that you can directly mount images as a disk unlike in Windows where you need a separate software. Due to this, mounting a different partition would be easy but modifying the boot.img or bootloader is the risky part. If you do it wrong, your phone may get permanently bricked.
joostvhoek said:
This is the topic about the dualboot, with download links to the 'dualboot' boot, and some explanation about the partitions on the sdcard.
http://4pda.ru/forum/index.php?showtopic=200838
Joost
Click to expand...
Click to collapse
Thanks
joostvhoek said:
This is the topic about the dualboot, with download links to the 'dualboot' boot, and some explanation about the partitions on the sdcard.
http://4pda.ru/forum/index.php?showtopic=200838
Joost
Click to expand...
Click to collapse
I don't understand or talk Russian. Would anybody be kind enough to find out what modifications did he do to the boot.img and/or bootloader? If we do the same modifications, we might be able to dualboot.
But, there's one problem, the boot.img is not same for all versions. Maybe that is why you can't dual boot.
It wouldn't work on the gt540. We have a dual boot for the defy which has only 90mb of ram left Max when running dual system. Usually I'm running 190mb ram on stock and 240mb on miui. Major slow down on dual boot. So no point
Sent from my MB525 using xda premium
keewanchoapsss said:
It wouldn't work on the gt540. We have a dual boot for the defy which has only 90mb of ram left Max when running dual system. Usually I'm running 190mb ram on stock and 240mb on miui. Major slow down on dual boot. So no point
Sent from my MB525 using xda premium
Click to expand...
Click to collapse
You are talking about chroot. In real dual boot, only one OS is loaded.
nibras_reeza said:
I don't understand or talk Russian. Would anybody be kind enough to find out what modifications did he do to the boot.img and/or bootloader? If we do the same modifications, we might be able to dualboot.
But, there's one problem, the boot.img is not same for all versions. Maybe that is why you can't dual boot.
Click to expand...
Click to collapse
Oh I'll be looking into this one tomorrow, I'd like to be able to have a dual boot... this would enable me to store testing roms onto sdcard and boot into them "safely" without forever having to go through backup & restore each time...
If I can crack it... I'll post it!!
Edit: I don't read Russian either... but I can reverse engineer things like this! -- Just had a brief look at it... I should be able to port his modifications over to another image, but as you said... it'll only work if both OS's are compatible with the one boot.img ... and this could take some trial and error.
Second Addition: Not to mention... it could cause issues for some people that use ext partition on sdcard for apps.... hmmz, will have to keep that in mind. (People like me ya'see lol)
olite said:
Oh I'll be looking into this one tomorrow, I'd like to be able to have a dual boot... this would enable me to store testing roms onto sdcard and boot into them "safely" without forever having to go through backup & restore each time...
If I can crack it... I'll post it!!
Edit: I don't read Russian either... but I can reverse engineer things like this! -- Just had a brief look at it... I should be able to port his modifications over to another image, but as you said... it'll only work if both OS's are compatible with the one boot.img ... and this could take some trial and error.
Second Addition: Not to mention... it could cause issues for some people that use ext partition on sdcard for apps.... hmmz, will have to keep that in mind. (People like me ya'see lol)
Click to expand...
Click to collapse
People who use ext for moving apps shouldn't face problems. Android is not Windows. =P It can handle unlimited number of partitions. Looking at the guide, I could understand that the method uses multiple ext partitions. People using sd-ext for apps would only need to increase the mtdblockn(where n is a number) by 1 or 2 if using swap as well.
Yup. Both OSs will work only if the boot.imgs are compatible. That means we might not be able to run 1.6 and 2.3. However, this wouldn't be applicable if you can loop the boot.imgs as well.
ie a setup likes.
BOOT has a GRUB like boot loader which is compatible with Android is SYSTEM.
SYSTEM partition has one OS.
Then, there will be different BOOT and SYSTEM is each of the sd-ext partition or they will be stored as imgs in SD.
When device boots, it will enter BOOT. Then, this will present a menu which will allow you to select OS. If you choose, default, it will load SYSTEM from phone. If you choose another, it will loop to a BOOT from the SD-ext which will loads its relevant SYSTEM from SD/SDEXT.
That's just my idea though. Basically, if you can get an idea of the modifications that need to be made to BOOT.img to loop mount another partition as BOOT or SYSTEM, then the problem is 80% solved.
nibras_reeza said:
People who use ext for moving apps shouldn't face problems. Android is not Windows. =P It can handle unlimited number of partitions. Looking at the guide, I could understand that the method uses multiple ext partitions. People using sd-ext for apps would only need to increase the mtdblockn(where n is a number) by 1 or 2 if using swap as well.
Click to expand...
Click to collapse
lol, yer I worded that wrong... I meant it *could* be a problem if they just followed his guide steps (since it doesn't account for existing use of ext on sdcard), but you'r right this isn't really a problem... it just requires an additional partition. Also, I'd probably change the partition layout instead so that applications such as Link2SD would still be able to "automatically" (it only checks partition #1) locate the ext partition intended for apps.
Something like this...
Partition #0: FAT32
Partition #1: EXT2/3 <-- sd-ext2
Partition #2: EXT2/3 <-- data
Partition #3: EXT2/3 <-- system
Partition #4: SWAP
This would allow most internal OS's to continue to function as per normal without any script modifications.
(Most swap mount scripts are just blind scripts, they simply try mounting each partition from #1 to #9 as swap... so swap location shouldn't be an issue)
#!/system/bin/sh
#
# find and enable swap
#
echo 30 > /proc/sys/vm/swappiness
# find swap partition
for PART in `seq 0 9`;
do
swapon /dev/block/mmcblk0p$PART
if [ $? = 0 ]; then
break
fi
done
Click to expand...
Click to collapse
nibras_reeza said:
That's just my idea though. Basically, if you can get an idea of the modifications that need to be made to BOOT.img to loop mount another partition as BOOT or SYSTEM, then the problem is 80% solved.
Click to expand...
Click to collapse
And a damn good one at that... sadly I think this might just be a lil bit out of my reach... for now! While I should be able to get it to work for 2.1-2.3 (Since they essentially use the same boot), I honestly don't know where to begin with boot looping (I understand the concept yes, just not sure how to implement it... wonder if I can bake a grub version for this...)
This idea is really exciting. I wish i could help but as it stands, based on my extreme lack of know-how, i'd be as much help as a sack of potatoes XD
Sent from my GT540 using XDA App
olite said:
lol, yer I worded that wrong... I meant it *could* be a problem if they just followed his guide steps (since it doesn't account for existing use of ext on sdcard), but you'r right this isn't really a problem... it just requires an additional partition. Also, I'd probably change the partition layout instead so that applications such as Link2SD would still be able to "automatically" (it only checks partition #1) locate the ext partition intended for apps.
Something like this...
Partition #0: FAT32
Partition #1: EXT2/3 <-- sd-ext2
Partition #2: EXT2/3 <-- data
Partition #3: EXT2/3 <-- system
Partition #4: SWAP
This would allow most internal OS's to continue to function as per normal without any script modifications.
(Most swap mount scripts are just blind scripts, they simply try mounting each partition from #1 to #9 as swap... so swap location shouldn't be an issue)
And a damn good one at that... sadly I think this might just be a lil bit out of my reach... for now! While I should be able to get it to work for 2.1-2.3 (Since they essentially use the same boot), I honestly don't know where to begin with boot looping (I understand the concept yes, just not sure how to implement it... wonder if I can bake a grub version for this...)
Click to expand...
Click to collapse
Porting grub eh? Hmm. I believe there should be an ARM version for grub but we might have trouble with the drivers and kernel. It might be a better idea to copy the menu layout from CWM recovery. The menu need not be intelligent.
As for me, I also don't know how to loop the boot images.
daggerxXxsin said:
This idea is really exciting. I wish i could help but as it stands, based on my extreme lack of know-how, i'd be as much help as a sack of potatoes XD
Sent from my GT540 using XDA App
Click to expand...
Click to collapse
You could always risk your phone for others by using the pre-alpha. xD
Porting grub eh? Hmm. I believe there should be an ARM version for grub but we might have trouble with the drivers and kernel.
Click to expand...
Click to collapse
We wouldn't need a kernel for GRUB, as GRUB loads the kernel. We would have to modify the bootloader (or MBR) to use GRUB.

Droid 3 and Swap

Hi everyone... have a question... It's possible to enable swap support on our droids? and if it's how?. Because I'm tired of everytime a switch from one app to another it kills one of them. Thanks!
bump, after a long search it seems to be imposible because current kernel don't have have swap support and with a locked bootloader we can't change the stock kernel, i hope some day motorola unlock our droids bootloader or someone can do it . If i'm wrong please let me know. Thanks!
I activated a swap file on my Droid 3 using mkswap and swapon as root from the command line. The kernel recognized the swap space, but as soon as the phone ran out of memory and tried to swap something, it rebooted.
I'd be interested in hearing if anyone else has had a different result.
rblanca said:
Hi everyone... have a question... It's possible to enable swap support on our droids? and if it's how?. Because I'm tired of everytime a switch from one app to another it kills one of them. Thanks!
Click to expand...
Click to collapse
nicktastique said:
I activated a swap file on my Droid 3 using mkswap and swapon as root from the command line. The kernel recognized the swap space, but as soon as the phone ran out of memory and tried to swap something, it rebooted.
I'd be interested in hearing if anyone else has had a different result.
Click to expand...
Click to collapse
It suprised me that kernel recognize you the swap space...do you create swap file in your internal memory or a sd memory?
Edit: I tried this morning but i have the same results as you... as soons it starts to use virtual momery it rebooted.
edit: Well i play with swappines but same results as soon our device started to use swap it rebooted..perhaps someone with more knowlegde can do something about it...it would be great if someone can do it.
Like all file systems, support for swap must be coded in the kernel (it's not), or added by kernel modules . . . Which would have to be specifically compiled against OMAP4 source code, I think, to work. I'm not a programmer, so I can't help directly. See if whoever provided the community the tun.ko kernel module for D3 can whip us up a swap module. Still, our kernels are locked, so the swap.ko would have to be added to a /preinstall aka 2nd-init kernel. Maybe Hashcode can help?
BTW: this thread should be in development, not General, I think
Sent from my DROID3 using xda premium
I use swap all the time. For instance, currently my phone has 111M RAM free and is using 162M of swap.
I've created a swap partition on an SD card and use that, so no swap file.
白い熊 said:
I use swap all the time. For instance, currently my phone has 111M RAM free and is using 162M of swap.
I've created a swap partition on an SD card and use that, so no swap file.
Click to expand...
Click to collapse
do you have your droid 3 with stock rom or other?. Thanks
I used swap on the stock ROM, currently running the Brazilian Vivo ROM, on 860.
白い熊 said:
I used swap on the stock ROM, currently running the Brazilian Vivo ROM, on 860.
Click to expand...
Click to collapse
Thanks dude, but same story as soon as it start to use swap partition it rebooted... it seems there is something missing on xt862 kernel's
Seems there must be some diff between 860 and 862...
白い熊 said:
Seems there must be some diff between 860 and 862...
Click to expand...
Click to collapse
Yes, it seems...one more favor...can you tell me your full Kernel version and your Android version? Thanks
2.6.35.7-g9f70789
[email protected] #1
and
2.3.5
白い熊 said:
I used swap on the stock ROM, currently running the Brazilian Vivo ROM, on 860.
Click to expand...
Click to collapse
Yes, please explain what you did to obtain Swap. The last Android device I had with functioning swap was the G1/HTC Dream, and we had swap because custom kernels had support for it an modules created the fs every time android booted. Whether a swap partition was created and mounted was up to the rooted user. I have used the makeswap and swapon commands with busybox from the command line and could not get the swap partition to show up in mount. Which address block did you use to create the partition? I tried /dev/mmcblk1p025 and 26 (sdcard and emmc?) and neither worked.
BTW: Many intelligent minds say swap in Android is useless since the Java/DalvikVM is so aggressive about reclaiming memory (just watch logcat to see that happening non-stop). You would have to swap to a device that is as fast as your secondary storage (meaning the 512mb of DDR2 installed in the XT862) in order to "beat" Dalvik's garbage collection and "augment" the natural AndroidOS memory management. One of the gifts of running bytecode in Java is that one does not usually address RAM directly (unless you jump out of Java with some C/C++ code), the OS is always handling your classes-to-registers allocation for you, the developer. In other words, it's Android's job to manage your memory, and if you ask the linux kernel and file system to cache registers to the comparatively "slow" sdcard (flashmem is slower than DRAM), you'll essentially be blocking Android's ability to handling your instructions, data, and files because it will then have to go pick up that data from a slow swap partition. When we were trying to push the G1's limits (which was delivered with a paltry 64mb of userdata space), swap made sense because the time it took to request stuff from swap was much slower than recreating threads out of compcache (compressed and old handles). 512mb is still relatively big for a device, and Android, like Linux, will always buffer most of your memory to make sure you don't run out of space for your apps. I am not a programmer so I may have messed up some of the finer points--but this is the gist of Android-vs-Swap as some see it.
rynosaur said:
Yes, please explain what you did to obtain Swap. The last Android device I had with functioning swap was the G1/HTC Dream, and we had swap because custom kernels had support for it an modules created the fs every time android booted. Whether a swap partition was created and mounted was up to the rooted user. I have used the makeswap and swapon commands with busybox from the command line and could not get the swap partition to show up in mount. Which address block did you use to create the partition? I tried /dev/mmcblk1p025 and 26 (sdcard and emmc?) and neither worked.
Click to expand...
Click to collapse
Swap will have to be setup on the external sdcard, which is /dev/block/mmcblk0p
mmcblk0p1 - * would be the partitions
Exactly, setup a swap partition on an ext SD card, then swap on it. Never had a prob.
I don't really care about Android memory usage and management, I need swap because I run GNU/Linux in a chroot, and for that the measly 150M that the Droid 3 has free by default is useless...
I really like DROID 3 and would get it but 512 of RAM and locked bootloader are killing me. But I can't imagine a better device than this one if those two factors didn't count.
Please tell me that something can be done with ICS, low RAM and custom kernels?
ICS runs good and the only reason I tweak my memory settings is just because Words with Friends is a battery hog and so is FB sometimes. I never seem to run out of RAM.
If you like the keyboard, why not get a Droid 4?
Sent from my DROID3 using xda premium
Droid 4 doesn't support GSM networks and I am from Europe where most of the carriers are GSM and so is mine. Droid 3 xt862 is a global phone (both CDMA and GSM) and Milestone 3 xt860 - GSM only. Besides Droid/Milestone 3 looks much better than D4 as for me.

[Q] free space disapeared

Hi,
On the first screens, i've no free space on the phone storage and i've about 3 or 4 apps that need just less than 1gb... What does mean the 4.31gb "other" ?
What can i do to fix that ?
As you can see, part of my application disapeared because of the way in the storage changed...
For example, when i take a picture it's located in storage/emulated/0/picture/screenshot and before it was simply picture/screenshot.
I tried to do a factory reset but nothing change after that...
Thanks in advance
alain21218 said:
Hi,
On the first screens, i've no free space on the phone storage and i've about 3 or 4 apps that need just less than 1gb... What does mean the 4.31gb "other" ?
What can i do to fix that ?
As you can see, part of my application disapeared because of the way in the storage changed...
For example, when i take a picture it's located in storage/emulated/0/picture/screenshot and before it was simply picture/screenshot.
I tried to do a factory reset but nothing change after that...
Thanks in advance
Click to expand...
Click to collapse
It seems like you have just under 1GB of free space on phone storage.
I just went on HTC.com and here is the conversation about what Other is:
10:31:30 PM Customer Corey
Initial Question/Comment: When I go into Settings-Storage-Phone Storage-Other it says I am using 3.53GB. I would like to know what this Other stuff is.
10:32:10 PM System System
Federico P. has joined this session!
10:32:10 PM System System
Connected with Federico P.
10:32:15 PM Agent Federico P.
Hi Corey, how are you? I will assist you today.
10:32:24 PM Customer Corey
I am doing good. How are you?
10:33:15 PM Agent Federico P.
Under OTHER is stored all the system files, updates, cache, and information that the phone needs to work, it cannot be deleted unfortunately.
10:33:35 PM Customer Corey
Ok. Thank you very much that is all I needed to know.
It seems like there is nothing you can do to fix that.
Your applications disappeared because you moved them to the sdcard, but something else also happened or you just need to restart your phone so they will reappear. If you remove your sdcard after moving them to the sdcard, they can appear greyed out like that. There can also be a problem with your sdcard and that is why your apps appear like that and your pictures save on your phone.
Try to change your Primary storage by going into Settings-Storage-Primary storage and set it to Automatic switching. You may have to restart your phone.
I really think there is a problem with your sdcard, ranging from a minor problem all the way up to it is not working anymore.
blaqueknight said:
It seems like you have just under 1GB of free space on phone storage.
I just went on HTC.com and here is the conversation about what Other is:
10:31:30 PM Customer Corey
Initial Question/Comment: When I go into Settings-Storage-Phone Storage-Other it says I am using 3.53GB. I would like to know what this Other stuff is.
10:32:10 PM System System
Federico P. has joined this session!
10:32:10 PM System System
Connected with Federico P.
10:32:15 PM Agent Federico P.
Hi Corey, how are you? I will assist you today.
10:32:24 PM Customer Corey
I am doing good. How are you?
10:33:15 PM Agent Federico P.
Under OTHER is stored all the system files, updates, cache, and information that the phone needs to work, it cannot be deleted unfortunately.
10:33:35 PM Customer Corey
Ok. Thank you very much that is all I needed to know.
It seems like there is nothing you can do to fix that.
Your applications disappeared because you moved them to the sdcard, but something else also happened or you just need to restart your phone so they will reappear. If you remove your sdcard after moving them to the sdcard, they can appear greyed out like that. There can also be a problem with your sdcard and that is why your apps appear like that and your pictures save on your phone.
Try to change your Primary storage by going into Settings-Storage-Primary storage and set it to Automatic switching. You may have to restart your phone.
I really think there is a problem with your sdcard, ranging from a minor problem all the way up to it is not working anymore.
Click to expand...
Click to collapse
First, thanks for your answer !
I know there were a part of "other" but this part was not more than about 2 gb before. I don't think the problem is my sd card cause the application i showed you on the screenshot are the only one i did not move ... For example, i had Hearthstone moved and it steel on my sd card.
The picrture was just an example, all my memory moved to emulated/0
And the same for settings/storage/primary is the same than ever
When i plugged my phone with usb to my computer, the internal storage were about 7.60 gb,... And look what i can see now
I can't download what i want with that...
All of that happen when i followed a tutorial to upgrade RAM with ROEHSOFT. I was needing to partition my EXTERNAL storage, what i did. I make a swap part about 3gb and the rest for the storage in fat32. After the partition, i had my 2 part but my internal storage change like what you see on these pictures. I think partition is now in my internal storage & that why the default internal storage way changed... But i have no idea to fix it... Can't use backup, can't part internal storage again, can't factory reset cause it has no effect after reboot...
alain21218 said:
First, thanks for your answer !
I know there were a part of "other" but this part was not more than about 2 gb before. I don't think the problem is my sd card cause the application i showed you on the screenshot are the only one i did not move ... For example, i had Hearthstone moved and it steel on my sd card.
The picrture was just an example, all my memory moved to emulated/0
And the same for settings/storage/primary is the same than ever
When i plugged my phone with usb to my computer, the internal storage were about 7.60 gb,... And look what i can see now
I can't download what i want with that...
All of that happen when i followed a tutorial to upgrade RAM with ROEHSOFT. I was needing to partition my EXTERNAL storage, what i did. I make a swap part about 3gb and the rest for the storage in fat32. After the partition, i had my 2 part but my internal storage change like what you see on these pictures. I think partition is now in my internal storage & that why the default internal storage way changed... But i have no idea to fix it... Can't use backup, can't part internal storage again, can't factory reset cause it has no effect after reboot...
Click to expand...
Click to collapse
I think you should delete the apps that are showing that they were on your sdcard then try to reinstall them. They should be in Settings-Apps.
I just looked up the ROEHSOFT RAM Expander (SWAP) app. I have never heard of this app before, but it had this as a note:
Note: only FAT32 Drives can be used for Swap. When you are using a Partition then use fat32 format or swap otherwise it will not be visible in the Drivelist!
It may not be working right because you need to use a FAT32 partition for the SWAP/RAM. If needed you can use Aparted to format the sdcard then use ROEHSOFT again to create SWAP. I found this tutorial. Is this how you did it or something different?
blaqueknight said:
I think you should delete the apps that are showing that they were on your sdcard then try to reinstall them. They should be in Settings-Apps.
I just looked up the ROEHSOFT RAM Expander (SWAP) app. I have never heard of this app before, but it had this as a note:
Note: only FAT32 Drives can be used for Swap. When you are using a Partition then use fat32 format or swap otherwise it will not be visible in the Drivelist!
It may not be working right because you need to use a FAT32 partition for the SWAP/RAM. If needed you can use Aparted to format the sdcard then use ROEHSOFT again to create SWAP. I found this tutorial. Is this how you did it or something different?
Click to expand...
Click to collapse
That's what i did but it cause the different default path in my internal storage.
Finally i flashed cwm and wipe all + factory reset. Now i have what i had before. I still have 4 gb use by android so i think i had this before... ? I did not find any rom for the 64 bits euro, are the cricket/boost/etc working on it ? Or maybe there some roms i did not found like cm11 or cm12 ?
alain21218 said:
That's what i did but it cause the different default path in my internal storage.
Finally i flashed cwm and wipe all + factory reset. Now i have what i had before. I still have 4 gb use by android so i think i had this before... ? I did not find any rom for the 64 bits euro, are the cricket/boost/etc working on it ? Or maybe there some roms i did not found like cm11 or cm12 ?
Click to expand...
Click to collapse
Where did you get CWM from? Did you use this recovery? As far as I know, there is no ROM for 64-bit, you cannot use the Cricket/Boost/etc. Those are just for 32-bit. There is a kernel.
blaqueknight said:
Where did you get CWM from? Did you use this recovery? As far as I know, there is no ROM for 64-bit, you cannot use the Cricket/Boost/etc. Those are just for 32-bit. There is a kernel.
Click to expand...
Click to collapse
ClockWorkMod is the only one i know how to use so i flashed this one
I saw somewhere that the stock rom was also in 32 bits so i'm gonna see no difference if i install cm11 32 bits, right ?
alain21218 said:
ClockWorkMod is the only one i know how to use so i flashed this one
I saw somewhere that the stock rom was also in 32 bits so i'm gonna see no difference if i install cm11 32 bits, right ?
Click to expand...
Click to collapse
Oh, ok, I didn't know that CWM was available for the 64-bit version. Thanks for that info.
As far as I know our ROMs are KitKat based, which only supports 32-bit devices. It will be good when Lollipop hits our devices as it supports 64-bit devices, but I'm not so sure if the ROMs that were built for 32-bit devices will work for a 64-bit device. You would have to ask the respective developers of those ROMs. My guess is no.
blaqueknight said:
Oh, ok, I didn't know that CWM was available for the 64-bit version. Thanks for that info.
As far as I know our ROMs are KitKat based, which only supports 32-bit devices. It will be good when Lollipop hits our devices as it supports 64-bit devices, but I'm not so sure if the ROMs that were built for 32-bit devices will work for a 64-bit device. You would have to ask the respective developers of those ROMs. My guess is no.
Click to expand...
Click to collapse
So, i will probably waiting for 5.0 ^^
Thanks for your help !

Desire 510 on FreedomPop ... Out of Storage ... Help ... Kernel? Custom ROM?

FreedomPop now sells the HTC Desire 510. I bought it for my daughter thinking that 4GB would be enough storage for her, but when I ran my first round of app updates, the phone's storage filled up! I checked it out and there is so much bloat on the phone, that it can't be usable for a little girl who might want to install an app or game or two.
I have rooted it and tried Link2SD, but it won't auto mount an ext3 or ext4 partition on boot and therefore, the apps moved to the SD card can't be found when the phone boots.
I'm assuming the problem is with the kernel.
Ordinarily I would just put a custom ROM on a phone and be done with it, but FreedomPop uses some unique network settings that make it difficult to just replace a ROM.
My question is whether anyone has this phone on FreedomPop and what you are doing to make it into a usable phone?
Are you using a custom kernel?
If you are using a custom ROM, how did you configure the FreedomPop settings?
jeffmikels said:
FreedomPop now sells the HTC Desire 510. I bought it for my daughter thinking that 4GB would be enough storage for her, but when I ran my first round of app updates, the phone's storage filled up! I checked it out and there is so much bloat on the phone, that it can't be usable for a little girl who might want to install an app or game or two.
I have rooted it and tried Link2SD, but it won't auto mount an ext3 or ext4 partition on boot and therefore, the apps moved to the SD card can't be found when the phone boots.
I'm assuming the problem is with the kernel.
Ordinarily I would just put a custom ROM on a phone and be done with it, but FreedomPop uses some unique network settings that make it difficult to just replace a ROM.
My question is whether anyone has this phone on FreedomPop and what you are doing to make it into a usable phone?
Are you using a custom kernel?
If you are using a custom ROM, how did you configure the FreedomPop settings?
Click to expand...
Click to collapse
I'm trying to do the same thing myself. I've tried a couple of kernels. I can get the Link2SD to work but then the front camera won't work.
There are several recommendations to use Rhinestone. So I tried the latest version of that but it breaks the WIFI for me and that won't due for freedompop.
I'll keep trying but nothing works the way I would like so far.
Custom Rom
any updates?
Odin Wynd said:
any updates?
Click to expand...
Click to collapse
No. Apparently, no one has figured this out.
RaptorSense 7
From testing, RaptorSense 7 seems to be the most stable ROM
Link2SD is mostly functional. The only issue, is with the 2nd partition mount script, and thus, the linking features. This is an s-on related issue.
Move to SD works GREAT. but, there is much potential here.
The only other issue, is you must change your wireless settings to global as the preferred network, by holding down the mobile data setting until it's advanced settings pop up, and selecting global as preferred network. This is what I have read from the only other person I have found to post about testing this rom on this device. My HTC Desire 510 is not activated. So I could not test the connectivity and data first hand beyond wifi.
Everything else seems to work.
We need to figure out s-off for this device, or we are kinda stuck with just the simple features of Link2SD, and still stuck with some bloatwear, some of which are discontinued HTC Research products. At least on the Raptor Sense 7 rom..
Solution ~ It Worked for Me
First, I am very new to rooting, so I really have no idea what I'm talking about, but I had this problem yesterday, and I no longer have it.
With that in mind, I was having the same issue, and tried a ton of different random things that didn't work. I basically came to the conclusion that the issue had something to do with the kernel. Anyways, I still don't really know what a kernel is, but I read somewhere that in order to mess with settings like these, you had to flash a sprint kernel with the write protection removed.
I did this by following the instructions from the following forum:
http://forum.xda-developers.com/des...print-virgin-mobile-stock-desire-510-t2958969
At any rate, I'm pretty sure this is what did it for me (although I may have done some other things that I didn't understand / can't remember) and I hope it works for you too!
Best of luck
Edit:
By "it worked for me", I mean that Link2SD is now able to mount the ext2 partition that I created on my microSD at boot.
I'm in the same boat - does anyone have any ideas on how to make this freedompop 510 a little more useful? I don't have room to do anything. Thank you!
Is there a way to get more space in the data partition without having to use Link2SD? The big problem with this phone is the overwhelming amount of bloatware.
smuggskier99 said:
I did this by following the instructions from the following forum:
http://forum.xda-developers.com/des...print-virgin-mobile-stock-desire-510-t2958969
Click to expand...
Click to collapse
Well, I added that kernel to my phone and I noticed the phone got super hot and the wifi stopped working. After rebooting, it got stuck in an unsolvable bootloop, bricking it without being able to fix it.
Raptor Sense 1.2
I have the Sprint variant of the HTC Desire 510 and everything is working plus the phone is for the first time usable and stable. Link2SD is able to mount ext2 partitions on this phone with no problem. No success with ext3 or ext4 partitions. I used the steps found here on xda to partition the microSD Card. Have tried many ROMs with varying results. Some things would work and others would not. Have settled on Raptor Sense 1.2 until something better comes out.
That's odd. I've tried 1.2 but I can't seem to get link2sd to work, but it works fine in version 1.0
wkLeon said:
Is there a way to get more space in the data partition without having to use Link2SD? The big problem with this phone is the overwhelming amount of bloatware.
Click to expand...
Click to collapse
I've rooted the phone only to find that the data partition is too small.
Some stuff to get rid of, but it's not on the data partition so what good does it do you?
list of bloatware
http://forum.xda-developers.com/desire-510/general/bloatware-removal-list-compilation-t2960011
You can tell market apps to download on you sdcard.
http://addictiveblogs.com/how-to-move-all-android-apps-to-sd-card-without-rooting-device/
adb shell pm get-install-location
After Android Tools Update command
adb shell pm setInstallLocation 2
It does appear that you have to have enough space on your data partition before market will download app. It will then end up on your sdcard.
But the data partition still fills up. Don't know who is doing the filling.
I've been playing around with the linux redirect command to try to move some stuff to the sdcard.
see
ln -s <where to go in the future> <old place your are replacing>
work in progress for me.
& I haven't figured out how to do a backup of my system yet. Titanium backup want to backup to the data partition. Guess they want you to buy the pro version. Should just say it's a demo version.
rccharles said:
I've rooted the phone only to find that the data partition is too small.
Click to expand...
Click to collapse
phone: freedompop htc desire 510.
Actually, found out my /storage/emulated/legacy partition is giving me out of storage too. lnk2sd showed:
/data
total 1.11gb used 0.99gb free 119mg
/storage/emulated/legacy
total 1.01gb used 0.99gb free 17.88mg
/storage/ext_sd
total 3.63gbused 74.19mb free 3.56gb
The location /storage/emulated/legacy
is what I see in setting > storage [ the first instance ]
17.89mg
seems this is the problem. Seems this is contains app profile information. This storage space increases when you go into the app and clear settings or ditch the app.
Robert

Categories

Resources