Why can't we boot the entire OS off an SD card? - G1 Android Development

Question:
If we've got the hard SPL bootloader, we can put the apps on sdcard thru symlinks, we've got debian on the sdcard, why can't we just boot the whole thing off the sdcard? We could keep a fall-back os on the flashrom, just in case.
Is this possible?

I don't know if that's possible.....but if it was it might cause the phone to run slow....
Edit: because the phone would have to get all the information from the sd card...and that takes longer...
Besides I don't really see the point in that....seeing as we can save apps to sd cards....so you don't really need the phones internal memory

because flash memory is a bazillion times faster and works 99.9% of the time where sdcards can be faulty, but im sure with a few scripts/code changes its possible

I tried symlinking the whole /system directory to the sd card. Let's just say it doesn't work. haha.

we can actually
Actually we can, it was a tut here not too alone ago about it but i am like 75% sure there is

Fear_Zoa said:
I don't know if that's possible.....but if it was it might cause the phone to run slow....
Edit: because the phone would have to get all the information from the sd card...and that takes longer...
Besides I don't really see the point in that....seeing as we can save apps to sd cards....so you don't really need the phones internal memory
Click to expand...
Click to collapse
i don't think that's the problem - as you can see, a debian system or android can be run from sdcard on the openmoko freerunner (yes, i takes 2 secondes longer of boottime)
i think (i'm not a android engineer) it's because the bootloader doesn't allow it!
cheerio, hades00

Related

Someone make this app

To Dev:
Make an app where it asks if you'd like to save apps/memory/cache/etc to your SD card. =\
We already have that in two forms...
LucidREM's version of JF
Just open up terminal emu and type:
su
copy.sh app
copy.sh data (if u want to move data/data to sd)
And we have Astro. You can back up your apps to the sd card...
Simple as that...
There isn't a script thhat moves Cache to SD, but it's still extremely easy.
It's funny to see someone barking orders at developers when they can't even be bothered to search or read.
If you can't do the research what makes you think someone is going to jump just because you demand it?
no
(filler filler)
APrinceAmongMen said:
There isn't a script thhat moves Cache to SD, but it's still extremely easy.
Click to expand...
Click to collapse
Actually there is.
It's post on this forum somewhere, it's called transfer.sh
I saw THOSE posts but that's not exactly what I meant.
i'm guessing he wants an app that does the "run apps from sd card" hack
The Terminal commands
http://forum.xda-developers.com/showthread.php?t=494187
And the Transfer.sh Script
http://forum.xda-developers.com/showthread.php?t=471653
71CH said:
no
(filler filler)
Click to expand...
Click to collapse
Lol'd.
/agree
I think the OP wants a GUI to do it prettily, how about someone throw it together and put it up on the market, a fair price (hahahaha) would be $10. This might motivate the lazy folk who are terrified of the terminal to figure these rather simple processes out.
Honestly, with the scripts already written, all you have to do is enter a couple quick and easy commands into the terminal and bam! No problem.
It's one thing to ask for help doing something, it is quite another to ask someone to do all the work for you. Just my opinion.
the way i read the post seems like he wants to install apps BOTH on his sdcard and phone and have an app that can let him/her choose/select whether to install on sdcard or phone itself, not a awful question
but in my mind whats wrong with haviing ALL the apps on the sdcard, theres virtually no lag and you get more space on you phone
while on the sdcard app topic i got another question, only need a yes or no so i wont make a new thread:
- i have a 8gb card with 1gb ext2 and the rest fat32
- im am looking to buy a 16gb card and have a 2gb ext2
- can i copy paste all the files on the from ext2 to the other?
- do i need a memcard reader? because i dont see the ext partition when i mount my phone?
haitiankid4lyf said:
the way i read the post seems like he wants to install apps BOTH on his sdcard and phone and have an app that can let him/her choose/select whether to install on sdcard or phone itself, not a awful question
but in my mind whats wrong with haviing ALL the apps on the sdcard, theres virtually no lag and you get more space on you phone
while on the sdcard app topic i got another question, only need a yes or no so i wont make a new thread:
- i have a 8gb card with 1gb ext2 and the rest fat32
- im am looking to buy a 16gb card and have a 2gb ext2
- can i copy paste all the files on the from ext2 to the other?
- do i need a memcard reader? because i dont see the ext partition when i mount my phone?
Click to expand...
Click to collapse
Copying from one SD card to another should work. If not, just undo the apps-to-SD process by moving the files back to the phone (there should be instructions in this thread near the bottom) and re-do it with the other SD card.
I'm fairly certain you won't have to do the latter, though.
Depends- Are you on Windows?
If so, use a Live CD of Ubuntu to boot into (installing is optional), it will effectively allow you to view the ext2 partition (as Windows doesn't read ext2 partitions)
Good luck
haitiankid4lyf said:
while on the sdcard app topic i got another question, only need a yes or no so i wont make a new thread:
- i have a 8gb card with 1gb ext2 and the rest fat32
- im am looking to buy a 16gb card and have a 2gb ext2
- can i copy paste all the files on the from ext2 to the other?
- do i need a memcard reader? because i dont see the ext partition when i mount my phone?
Click to expand...
Click to collapse
you will need two things .. a card reader .. linux .. you can attempt to undo the apps to SD as stated but if you lack the space on the phone now you've run into a problem .. most people move apps to the SD because they lack space on the phone so trying to put them back will bring trouble
since many people have already touched on this i'll just direct you to the other thread:
http://forum.xda-developers.com/showthread.php?t=497275

Easier way to get apps on sdcard

Like always make sure you have a apps to sd rom. I would recomned haykuros 5.0.2 G r3 build with apps to sd.
I am not going to cover how to do this here as there is already alot of tutorials explaining this already.
First you should use a card reader and your favorite partioning program to shrink the fat32 partion and make a ext2 partition I would recomend atleast 100 mb. I used acronis disk director suite to make partition. Paragon or any other disk management program would work.
Once completed go download this www.tauruspc.net/scripts.zip
Extract the two scripts to your sdcard and then put back in phone.
Forgot to mention. These scripts move the data and dalvik-cache just FYI
Per other threads says sometime people have problems. But I have ran these on 5 devices with 3 different roms with no issues.
If this is the first time you are putting on apps to sdcard or that build
Download terminal from market and use these two commands
su
sh /sdcard/appstosd.sh
Once that is done reboot phone to recovery console by home and power button to turn on and then apt x
you should get a prompt then and use these two commands
mount sdcard
sh /sdcard/appstosd2.sh
If all goes well phone should restart and when if backup and running enjoy having all apps on sd and a permanent 73 mb free on the phone.
After performing these steps my G1 hangs on the "T-Mobile G1" boot screen.
What software are you running. And you need have apps to sd first with a formated memory card with an ext2 part. Because if you don't have formated card will not work. When you ran script did you get any errors?
script name
hello
the script down load as appstosd1.sh and appstosd2.sh and your post says the 1st one is appstosd.sh
I just rebooted the phone on the 2nd part, i hope this works :/
ive tried like 5 or 6 different ways and thus far none are working
[email protected]
If it works great but my advice guys if it ain't broke don't fix it, its already easy enough with all the tutorials out there.
Why not just use this app:
http://forum.xda-developers.com/showthread.php?t=504451
Install the APK and run the app. How much easier can you get? (Yes you still have to format your card but thats easy.
speoples20 said:
Why not just use this app:
http://forum.xda-developers.com/showthread.php?t=504451
Install the APK and run the app. How much easier can you get? (Yes you still have to format your card but thats easy.
Click to expand...
Click to collapse
That APK app didnt work for me. this is just another option for those who other ways arent working i think.
M9x3mos said:
What software are you running. And you need have apps to sd first with a formated memory card with an ext2 part. Because if you don't have formated card will not work. When you ran script did you get any errors?
Click to expand...
Click to collapse
I am running 5.0.2G-A2SD, I have the sd-card formatted properly.. oh well, the I just followed the other tutorials out there and it worked flawlessly.
EDIT: Okay so I tried this again for the sake of testing, and I can confirm that it works. I guess I did something wrong the first time around.
quick question, do you have to leave the scripts on the sd card or can you take them off when your thru?
bleulady82 said:
quick question, do you have to leave the scripts on the sd card or can you take them off when your thru?
Click to expand...
Click to collapse
You can take them off.. they are just scripts to install the apps to sd. I can also confirm 73MB internal memory.. thank you for these wonderful scripts OP
EDIT: Hmm.. my browser does not seem to work anymore.
i'm getting an error "the process com.google.process.gapps has stopped unexpectedly."
also, tried a reboot and it hung on android screen for ever. did a wipe and had to re-do the scripts for appstosd, still receieving the error above.
Yeah I'm getting force close for anything I click on in the notification bar.
Ok can someone walk me through partitioning my sd card? I have Paragon Partition Manager 9 Pro, and when I delete the partition on my sd, it wont let me create a new one, and it always goes back to saying the whole card is partitioned as an FAT32 when it jus said unallocated
Thanks man. Worked great. Hopefullly I don't run into any future problems.
AsaSpades said:
Ok can someone walk me through partitioning my sd card? I have Paragon Partition Manager 9 Pro, and when I delete the partition on my sd, it wont let me create a new one, and it always goes back to saying the whole card is partitioned as an FAT32 when it jus said unallocated
Click to expand...
Click to collapse
I don't have the link offhand but if you go over to androidcommunity I think you can do a search for a tutorial on how to use Paragon. Good luck.
i think you forgot to mention that a class 6 card is needed to move data/data over to the sd card
im using a class 4 card and when i moved data/data over to my sd card my phone would lock up without me doing anytihng. within 2 seconds of seeing the lock screen it would lag and then force close constantly.
i tried to move it numerous times. no luck
if u have a class 2 card dont even try moving apps to sd
and if u have a class 4 moving everything except data/data and dalvik-cache will be fine. ive moved my dalvik-cache over to my sd card and not that many problems. the ocasional force close but w/e
summary :-D
class 6 = only for moving everything over
class 4 = everything except data/data and dalvik cache
class 2 = buy a class 4 or class 6 card

Moving apps to ext. SD card

Hello all
this is my first android phone.
i managed to move some apps to sd card, but only to the internal.
How can i get them to the external sd card ? the ext. card is a mount point inside the internal one, thats what i found out.
Cheers
Lorien
At this stage it cant be done.
Oh, so is it a specific problem with the LG FW or is it the current Android OS ?
Lorien
Lorien25 said:
Oh, so is it a specific problem with the LG FW or is it the current Android OS ?
Lorien
Click to expand...
Click to collapse
It's a limitation of the Android File System in general, not of froyo, gingerbread or ice cream sandwich. This is how the OS works.
What you can do is to go the the phone settings then programs then app manager and there click one by one the apps and choose to move to the SD card. You will notice that you will still have a portion of the app running from the phone memory. This is something that you have to live with for the time being but at least the half of the app should have been moved to the SD so at the end of the day you will gain some space.
Yes thats what i already did, worked great, but i do still have a almost empty ext. sd card. All the apps i moved are still on the internal sd card.
How about using apps2ext ? This is a modified version of the original (pre froyo) apps2sd that uses a "hidden" ext2, 3 or 4 partition on the SD card. I can only find it as part of custom roms. I'm sure it needs root to work too?
Anyone know if that would work?
Pete
mad_sunday said:
How about using apps2ext ? This is a modified version of the original (pre froyo) apps2sd that uses a "hidden" ext2, 3 or 4 partition on the SD card. I can only find it as part of custom roms. I'm sure it needs root to work too?
Anyone know if that would work?
Pete
Click to expand...
Click to collapse
I think we might have success with that actually. I will give it a try and I will let you know.
Any progress in this matter ? My internal SD Card is already full ! Have to start removing apps to install others.
I think those Android OS limitations are pretty wierd, so the ext. card slot is just for photos,videos on an android phone then ?
I did try to use darktremor on this phone but it won't work on stock firmware. I think that we need to wait for CM7 before we are able to install the whole app on the external SD.
m33ts4k0z said:
I did try to use darktremor on this phone but it won't work on stock firmware. I think that we need to wait for CM7 before we are able to install the whole app on the external SD.
Click to expand...
Click to collapse
The main problem is not the apps themselves. So Darktremor's A2SD would not help. The problem is, the extra files for large games are automatically downloaded to internal sd memory. Which is limited to 7GB. New games require more than 500 MB's each, so 7 Megs would be enough for many of us, but not enough for some of us.
It is certainly enough for me right now, but you cant see what future brings.
Hi guys,
I'm having this problem now.
Basically, my internal memory is being used by don't know what and I have left around 400mb.
The problem is that I cannot download more 3D games, they require around 500mb each!
I have tried to delete photos, videos and apps that I don't use but even like that it's not enough.
So now, I have a empty SD Card of 16GB and a phone/system that doesn't let me use that free space for "nothing".
BTW I did transfer the internal apps to the SD card, but very little changed.
Does anyone managed to find a solution for it? how can they sell android phones claiming that you can expand the memory of it if you are not able to use that memory for apps?
I already feel sorry for those that have the Evo 3D which apparently comes with 1GB internal memory.
And how can I move the 3D games to the SD card?
i think we have to wait until firmware update .. right now still behide 2.2.2 not even on 2.3 yet .. so i think we could move all app to ext card until 2.3 or higher.. i have try all the app out there .. not even one of them working .. you can move to internal memory but not ext sd card ..
you can also resolve this problem by switching internal and external memory. this works fine for the phone but messes up mass storage mode in windows! so you will find problems mounting your sd-card in windows - so you have to use alternatives for file transfer (ssh, ftp, adb) - means this is pretty much for advanced users only

partitioning internal sd

hey everyone. so if i partition the internal sd card what exactly am i doing? from what i understand, the g2x has 8gb onboard, 1.5 of that is for apps, and 5 goes to user data. the rest i assume is for android?
so if i create a 2gb partition on the internal sd, what am i changing and what does it do to the rest of the space? do i need to create the other partitions in windows later and format them?
168 views and no replies? anyone??
Ok, let me try to explain this one...
In three words, Don't Do It!!!
Your internal sd card is pretty much just that, it's a storage card built onto the phone itself. Now it is already partitioned, and allot!
Not only does this one physical card hold your "internal sd card" contents but it also holds your ROM, cache, all your apps, and even your recovery!
Even though it looks like these are separate drives they are all one physical card, your internal sd card.
Now if you try to add to this mix of partitions on this internal card you run the VERY HIGH risk of messing up the lines and sizes of these partitions. Many things in Android assume that some of these are a certain size or at a certain place, and if you mess with it all hell brakes lose!
Now people sometimes partition the external sd card because they want 2 different file types, like half fat32 (like a normal sd card) and half ext4/3 for apps it use in Linux.
Hope this helps!!!
Sent from my LG-P999 using Tapatalk
ok, well then i guess my question is more along the lines of why do we have that option in CWM Recovery and if i create a 2gb partition what happens? does it change the default 1.5gb partition so you have more room for apps?
dodgefan67 said:
ok, well then i guess my question is more along the lines of why do we have that option in CWM Recovery and if i create a 2gb partition what happens? does it change the default 1.5gb partition so you have more room for apps?
Click to expand...
Click to collapse
I'm honestly not sure, I've only ever messed with these partitions manually when unbricking my phone. So if you do it, you have a fairly good chance of bricking the phone, but i don't know how Android will react.
Sent from my LG-P999 using Tapatalk
thanks, i was just curious, since CWM gives us the option, but ive never done it and until i can find a good reason to i probably won't even mess with it
but it just seems kind of bad having 5gb on the internal card going to waste, i have backups to my external sd, all my data is there too, so i probably won't even touch that 5gb...
Just be glad it's not the other way around
Ill take too much space over not enough any day!
Sent from my LG-P999 using Tapatalk
well true, but still would like to know exactly what happens if you choose to run that in CWM Recovery
seek and ye shall find
found a guide for CWM and from what i see that option puts a partition on your external sd card so it can be used to install apps on IF the rom supports that. it says it does wipe everything else off the card though so you need to make a backup. you can also put a swap partition on it as well
looks like it does not touch the internal sd card phone memory which is what i thought it did
http://www.addictivetips.com/mobile...-and-how-to-use-it-on-android-complete-guide/

[Q] I accidentally skipped S-OFF and I've lost 3GB of space.

Hey, guys.
Forgive me if there's already a thread for this, or if I've posted in the wrong spot, but I seem to be in a tricky predicament.
I flashed Venom ROM on my HTC One SV, and accidentally forgot to do the S-OFF thing on my phone.
Now, my phone only recognizes 1GB internal storage instead of 4GB. This is annoying because I can't even update my apps because it says there's not enough storage space.
What do?
Is there a way to get that 3GB back without doing an S-OFF and wiping everything, or at least a method to make everything automatically install to the SD card?
Cheers,
Anthony
EDIT: I've attached a few screenshots.
If i get your pictures right, this is the normal state of your phone and has nothing to do with S-off.
The phone needs some space for the Android OS and the rest of internal storage is partitioned this way by HTC.
old.splatterhand said:
If i get your pictures right, this is the normal state of your phone and has nothing to do with S-off.
The phone needs some space for the Android OS and the rest of internal storage is partitioned this way by HTC.
Click to expand...
Click to collapse
The OS shouldn't take up 3GB of space. The device comes up with all of that free space in Windows, but it's not showing all of it on the phone.
anthony_anthony_anthony said:
The OS shouldn't take up 3GB of space.
Click to expand...
Click to collapse
It does, if you believe or not.
old.splatterhand said:
It does, if you believe or not.
Click to expand...
Click to collapse
Well, that's a pain in the arse. Is there a way I can make my apps install to SD by default without screwing around in a terminal? Is there an app I can download? My phone is rooted w/ Venom ROM installed.
anthony_anthony_anthony said:
Well, that's a pain in the arse. Is there a way I can make my apps install to SD by default without screwing around in a terminal? Is there an app I can download? My phone is rooted w/ Venom ROM installed.
Click to expand...
Click to collapse
There is an app called app2sd. Could try that.
I would suggest formating a portion of your external sdcard as ext4. Use that portion for your apps. Even better, and I don't wish to make a guide on it, but you can also use the swap format as additional ram, also known as virtual memory. Should an app or daily activities on your device begin to run low on ram then it can pull from the virtual memory on your external sdcard thus giving an increase in speed. I did this to my sdcard. 8 gig card but 1 gig is used as swap for virtual memory to help keep my device running smooth when developing on my phone. Some of my stuff can get to be cpu hogs ha!
Of course, you would need to do some research if you are unaware on how to do this.
It's really easy so I guess if you are interested in the swap I can give a brief and easy explanation but it's preferred that only experienced users do this.
Pics to show that I am using swap for virtual memory from my external sdcard.

Categories

Resources