yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] Alphacrux:
I don't know if any of you have read the how-to for putting debian on your g1, but it uses a completely different mechanism for putting an ext2 fs on the sd card. Based off of Saurik's method, you create an image of an ext2 fs and then mount it on an empty directory using a loopback device. If you already have Debian on the G1 and then partition part of the sd card as ext2 then you effectively have 2 ext2 partitions that are inaccessible to one another, it would make more sense to consolidate them. I've actually been able to modify /system/init.rc to mount an ext2 image on bootup. From here you can install the app and app-private directories to the image. If you use this method then there is no need to reformat your sd card. I currently have debian and all my apps inside of an image of an ext2 fs that sits on the fat32 fs of my sd card. Tell me if anyone is interested in learning how to do this and I'd be more than willing to write up a how-to. I realize most of you have already reformatted and probably don't want to go through that process again.
[G1 Android Development] Smokuevo:
would be good to know though :P
[G1 Android Development] dwang:
I'm all for a write up. I think the biggest obstacle for most people is re-partitioning the sdcard. If that step can be removed then more people will be able to do this.

What happens when you want to mount your sdcard on the pc though?
[G1 Android Development] juangil:
I currently have ext2 with apps in it, 1.2GB, so debian will only use that partition? another question, what are the advantages of having debian?

EDIT; I would start reading about it

thank you anyone...
[G1 Android Development] Alphacrux:
Now that you mention it, once Ive put the apps on the sd card i can't mount the sd card on the computer anymore, which makes sense because the sd card remounts but the ext2 filesystem will not as it is not coded into android to do so.

Perhaps you all should hold off for now until the bugs are worked out. It might be possible but you'd need to modify system files which would require a custom boot.img or system.img (im not sure which one holds system files?) implemented using a update.zip file. Maybe you could do it in mountd.conf although I'd have no idea how you'd do it :( I think I'll keep working on it.
[G1 Android Development] daddycat31:
I did this using teminal emulator. on the final reboot, it got stuck at the android screen, so i did a wipe....do i need to do the entire process all over again? or is there a way to check and see if it is still set up to go to the sd card?
[G1 Android Development] mariod1269:
nevermind...it works great.
[G1 Android Development] Beast84:
So I recently had to do a wipe & I wanna know which commands I have to do to get this back up & running? I already moved the 2 files to my phone. I read you don't have to do the whole process again but I didn't see anything about which commands have to be redone... I'm guessing just the "ln -s" commands? But I'm not totally sure... Anyone wanna chime in & help me out?
[G1 Android Development] LucidREM:
it would be a matter of putting the "ln -s" back into play without copying the files to the SD .. since they're already there

#rm -r /data/app

#ln -s /system/sd/app /data/app

#rm -r /data/data

#ln -s /system/sd/data /data/data

so minus the "busybox cp -a" commands it's the same thing

UPDATE: that's actually something i'm putting into my script on the next release
[G1 Android Development] rjwisniewski:
Finally got up the nerve to do this. Worked great. Thanks for the clear instructions.
[G1 Android Development] Beast84:
So my sd decided to take a crazy turn of events! I had to wipe my phone & when I finally got it up & running & went to apply this again to get my apps back but it wasn't working. My phone kept going to the looping android. I swear I wiped at least 10 times. I noticed that the ext2 on my sd wasn't showing up so I tried to re partition it using both paragon & ubuntu but no luck. Now my phone says my sd is unreadable but my computer reads it just fine. I have tried reformatting but same thing. I have my extra class 4 8gb card but I miss my class 6... Anyone know how I can recover my sd? I couldn't even get the ext2 back from my old card. It says I only have like 5.6gb on my 8gb card
[G1 Android Development] Autarkis:
... which is somewhat strange. Did you just re-apply the mountd.conf, init.rc and symlinking or did you do more?

Hm, could be something with init.rc... though I don't know.

Well, I'm not sure, but it's possible that if you've got a broken init.rc, that this isn't replaced by wiping. In which case you could go back to the default setting by reflashing (which doesn't hurt you since you've wiped already). Alternatively you could use adb shell from HardSPL to fix the init.rc, but if it's something else I don't know. Reflashing should do the trick 100% barring a hardware failure.

Ha! I had that once too! The problem seemed to be that Android keeps the ext2-Partition mounted while unmounting the vfat-Partition on /sdcard . Try viewing the SD card from a card reader that's not holding half the hardware (= the ext2 partition) hostage. :D

If I'm right the problem is that you can't reformat what's mounted. You also can't repartition parts of the card that Android doesn't show you (because it needs to keep them mounted).

That's perfectly logical, the data seems to be vanished, when in reality it's just being held open by Android.

You can try the following things:

* reset to the original init.rc to stop the looping android logo

* reset to the original mountd.conf and reboot to free your MBR and ext2 partition from Android's grip

* put the card in a "dumb" card reader and repartition there

* reflash Android (init.rc and mountd.conf will be replaced, your ext2 partition will probably survive)

Tell us how this goes!
[G1 Android Development] Beast84:
So after reading this, I went to try what you said & new problem!!! My card reader isn't working (just my luck) lol so I'm gonna go buy a new one now & I'll get back to you as soon as I can
[G1 Android Development] Autarkis:
Let's just hope it's not the SD card that isn't working.
[G1 Android Development] Beast84:
You are a genious!!! I got the new card reader, popped in my card, repartitioned & reformatted with paragon & I'm back in business! Thanks for the help man
[G1 Android Development] Autarkis:
I'm glad it worked for you. :)
[G1 Android Development] hidtundra:
What do I name the 1st(Fat32) partition and the second(EXT2) partition. I am having difficulties with this thanks.
[G1 Android Development] Autarkis:
They don't need names. I guess you can name them whatever you want. I leave it blank. It's important that FAT32 is the first and ext2 is the second one, that's how they're being told apart.
[G1 Android Development] LucidREM:
they need no naming .. however .. this said .. i chose to name mine: sdd1/sdd2 respectively .. if you mount in linux it just states the drive size .. so should you actually do a 50/50 split on the card you would never know which was which .. so the naming thing is optional but something i chose (i am slightly anal)
[G1 Android Development] kadster007:
Confused....but still Happy

:confused::)

I first would like to thank each and every person at xda-developers and also the end users for allowing individuals such as myself the opportunity to screw back Goggle and of course T-Mobile.

Thank you....thank you...thank you.....I am definately getting my money's worth.

Now.....I followed all the instructions formatted fat32 ext2 pulled and pushed mountd.conf and init.rc and busyboxed the files and they show the correct information), (system/sd - created and working)

My question now is that

1) how much internal memory does the G1 have and supposed to have after?

2) when i view the files (via adb), it shows that my apk's are installed on /data/app but also shows the apk's are located again in /system/sd/app.

Where it should be after all this configuration. I also used ASTRO to determine the location of the apk's...and it says /data/app?

Am I missing something?
[G1 Android Development] Mentally Flawed:
No space left on Device.

Is my phone bricked?

I've gotten to the point of adb push ..... mountd.conf in the tutorial and in the shell it says Error Writting: No space left on Device

What should I do guys?
[G1 Android Development] Mentally Flawed:
New Errors

I performed a system wipe with the recovery utility and took care of the No space on the device situation but now face another tragedy, Both my pc or g1 reads my sdcard! Debugging and Usb drivers are installed.

Whats going on here
[G1 Android Development] Mentally Flawed:
Update

Both my g1 nor pc reads my sd card* I took my phone down to a local t-mobile branch hoping that it was my sd card that was acting up instead of my phone. Nope! it was my phone. I need serious help remounting my sd card
[G1 Android Development] kingdruid:
Sorry if this has been asked. I looked through the post, but didn't see this.

I recently ran through this and its working great, but I have 1 problem. Power Manager gets force closed and TooDo. Both are designed to run in the background. I tried removing them and reinstalling them after I switched to the sdcard storage and I get the same thing. When the G1 boots up I get 2 force close windows for the apps and if I try to open power manager I get the same thing. Toodo opens without crashing.
[G1 Android Development] infinatenothing:
OK so I did this process before and it worked great but I had to do a factory reset the other day which undid it. I ran through the process again and the apps are working fine off my sd card but now my phone doesn't recognize it has an sdcard in it even though its running apps off it. if I mount it on my pc it sees the files on my card fine. did I do something wrong does anyone have any ideas how to fix this? I have a 8 gig class 6 card if that makes a difference. any help would be greatly appreciated.
[G1 Android Development] kingblind:
Can someone in Seattle, WA help

Is there anyone is Seattle, WA that would be willing to do this for me? I am afraid that I am going to brick my phone. I'll pay ya.. Please help..

Thanks for your time.
[G1 Android Development] darico18:
help

everytime i try to put this in adb shell mkdir /system/sd

it says mkdir failed for /system/sd, file exists

help what should i do?
[G1 Android Development] darico18:
installing apps to sd

this happens when entering in the cmd shell and also the terminal emu.
[G1 Android Development] xdavidn88:
Why don't you guys use LucidREM's JFMOD APPS to SD. It's automated for you. No need to enter all these codes.
[G1 Android Development] LucidREM:
sounds like /system/sd already exists
[G1 Android Development] recasper:
Quick question, after I did this. I have a number of applications with bugs to their side when I view the Settings>Applications list. Also in my SD card & Phone Storage I get the following...

SD card:

Total space

Unavailable

Available space

Unavailable

Unmount/eject SD card (greyed out)

Internal phone storage

Available space

38MB

Did I fudge something up here?
[G1 Android Development] LucidREM:
your SD card is not registered on the phone .. either the card mounted thru USB on your computer or you need to reboot and/or eject and reinsert
[G1 Android Development] recasper:
Excellent, I didn't even think about the phone still being mounted. Your the man Lucid.

BTW: After doing this, shouldn't my phone memory be above the 38MB showing in the Storage section? I have seen a few talking about upwards of 50+ MB showing.
[G1 Android Development] xdavidn88:
If you did all the steps, it should be higher than started. Possibly it could be Browser taking up a lot of MB. I once had browser up to like 23MB...
[G1 Android Development] recasper:
Oh wow, thats a heck of a lot of cache memory. Neah mine is cleared and still showing 38MB.

I just did a test and it went from 38MB to 29MB after installing a slew of applications. Bout 35-40 or so. So it looks like its doing "better" but it doesnt seem like its acting as most on here have experienced.

I believe I may have done this incorrectly. I had a 2GB card previously that I did this with.

-Changed out the mountd and init files with the new ones. etc...

-Busyboxed it (actually found my "mm...0p2" file, after much troubleshooting the partitions ;-))

-Rebooted

When I did this the first time around and rebooted it kept circling at the boot up screen (showed the Android boot up image, and after a moment the android logo would freeze and start flashing again. Over and over) It did this for about 15 minutes before I finally pulled the battery and tried again.

Alas I had the issue with a non-booting phone. I went into the Recovery and did an alt-w and it booted fine. Also when I got back in and installed apps the memory ticked away but not as fast so I assumed it had worked.

I recently got an 8GB card (class 6 does make a difference, lol) and repeated the final step again after partitioning. [busyboxing it, etc...]

And now it does what I was saying above 38MB starting and 29MB after about 35-40 apps. Does this seem like its working, or maybe I just need to start again from scratch?

Apologies if this issue has been fielded once before, I have did some extensive searching on the forums and after reading some very good how-tos and troubleshootings it seems a bit unusually and nothing really directly matched what is happening here.
[G1 Android Development] xdavidn88:
I don't think you have it quite right. I am not a 'expert' so I don't know what's wrong but I can tell you that 38MB to 29MB probably means you don't have APPS installed to SD. It's just too big of a drop.

I have 127 Apps installed and my internal space is 48MB. (Started around 60MB, I think)
[G1 Android Development] andonnguyen:
Casper, did you move /data/data as well? It seems to be the biggest culprit of taking away internal space.

BTW, i have over 30 games installed, all over 2MB each, with 55MB left.
[G1 Android Development] recasper:
xdavid: Oh wow, yeah thats a big difference. I may have stumbled as I walked through the tutorial.

ando: hmm, I do not believe I did this. Could be why it started me at 38MB as well. Will the apps reload if I go ahead and move the /data/data file, or should I unintall them first? Or should I just take the extra time and just give it a fresh go at the procedure? Preferably the former, but you cats are the experts and I am all ears (or eyes rather, lol).
[G1 Android Development] andonnguyen:
It looks like you already moved /data/app and /data/app-private, so moving /data/data would not require you to re-install any apps. Although, if an app requires unpacking first (i.e. Neocore, Wifi-Tether, Tether Bluetooth), those apps would crash upon opening. Here is the script to move /data/data:

If you are using Harry_m's wifi-tether from the market (thread found here: http://xdaforums.com/showthread.php?t=486767), you can use this script in adb to move it back onto your phone after moving /data/data to your EXT2 partition.
[G1 Android Development] recasper:
ando: Interesting, you called out the one unpacked app that I DO have. Good call. Thanks a bunch for the quick post of the script.

Just wanted to say you cats here at xda are.... how should I put it, excellent! ;-)

I will give this a go shortly and give an update on how it turns out. Thanks again.
[G1 Android Development] xdavidn88:
recasper, you could have saved yourself all this coding and use LucidREM's APPS on SD, you know? lol

It's basically the same thing but the scripts are automated so that you only need to enter 2 lines of commands and you are done.
[G1 Android Development] andonnguyen:
He already has most of it done manually, so it would probably be a hassle for him to do it that way. lol.
[G1 Android Development] recasper:
Hmm, I havent tried Lucids application before. I never saw that around when I first began doing this last week. I will definitely keep that in mind for the next time around.

I think for the most part I am glad I have done it this way, so I can become better acquainted with the way it all works... A big part of me likes to get in there and get my hands dirty.
[G1 Android Development] andonnguyen:
Yeah I like doing it myself because I can trace my actions if any problems occur.
[G1 Android Development] LucidREM:
the good part is .. if you flash the next update.zip with my modified version you won't lose your links to your apps .. all scripts aside
[G1 Android Development] recasper:
ando: Exactly right, I enjoy the easy button from time to time, but if something goes wrong I prefer to know the ends and outs of how I got there to troubleshoot what may have went wrong.

Lucid: That is a definite plus. I am yet to delve into the flashing updates besides my initial one to root the phone. So my experience is only on its first lap. I take it your version is a auto modifyer for all of this. Thats excellent by the way, I have only read a little bit about it since xdave and ando made mention of it, but it looks like it will be something I will focus on using as I start messing with updates and themes and such. I just need to get a grasp on all the talk of flashing updates.zip files for themes and fonts etc...

Forgive me again guys I am still fairly new to this, with decent Linux terminal experience. Its just a matter of bringing my mind around it to know exactly what I want to ask and how to ask it. lol

Edit: just wanted to state in regards to this comment above. I'm a designer by trade, so the logical side of the programming tends to be a bit confusing sometimes lol.

Lucid you may be seeing some Q/A posts in your thread soon for that modifyer, lol.
[G1 Android Development] joshtheitguy:
I performed the "Unstable" Step 13 moving /data/data to the SDcard and my phone has been working flawlessly.

I tried this once before with a Class 4 kingston card and had issues with slowness/lockups but now with the Adata Class 6 card I have no issues what so ever.
[G1 Android Development] xdavidn88:
Would this also apply to your method of APPS ON SD? Or does it only apply to dwang's?
[G1 Android Development] recasper:
Well folks, just completed the /data/data move. And up to 48MB now... the rest I am sure are cache files, which will be my next move. Thank you all so much for the explanations and help. I love this forum, haha.

Maybe when I get a handle on things I will be doing my fair share of helping hand work. And who knows as per my signature, once I delve deep enough into this, Hello World wont be my only proud development moment. hahah
[G1 Android Development] nysfinest318:
can someone tell me where i can find the paragon partition manager 9 needed to reinstall my files from pc to sdcard after the rc33 update?
[G1 Android Development] mikedmeyer:
http://www.google.com/search?q=paragon+partition+manager+9
[G1 Android Development] f4phantomii:
Did anyone ever figure this one out?

I've been running the LucidREM version of JFmod for a couple of weeks now, and experimented with moving *some* apps over to my class 4 card.

It wasn't working well, so I sucked it up and bought a class 6. I moved apps and data over to the ext2 partition with no problem. Everything was running fine.

Then I did a factory wipe. All the apps and data were saved on the ext2 partition, so I didn't lose them, I just had to remake the symlinks.

When I did, I got the UID error message above. Am I hosed? Is there a way to fix this?
[G1 Android Development] cilverjolt:
sd card

i did the hack but my only problem is that the phone is not picking up the fat32 part said insert sd when i go to picture and if i insert another sd card same thing. think you guys can help?
[G1 Android Development] jjjackson56:
so im not sure do i unzip this download and put the two files apart on my card or should not unzip and put the whole zip file on my card also where should i put whichever one fat32 partition or the ext2 partition
[G1 Android Development] LucidREM:
unzip the two files mountd.conf and init.rc that have been modified and put them on the SDcard .. that way when you run the command to copy them from /sdcard to /system it will work
[G1 Android Development] LucidREM:
all methods of apps to SD are identical .. only difference is how you get there .. the end result is the same .. there are three modifications needed

1. mountd.conf

2. init.rc

3. /system/sd

my mod'd update.zip from JF does these modifications for you .. so no matter which method you chose to put apps on SD you can use my update.zip to retain the apps to SD process
[G1 Android Development] jjjackson56:
Sweet thanks Lucid this is what I thought but just wanted to verify. I really need to start trusting the basic knowledge I already have (what little it is)
[G1 Android Development] :
im using a class 2 card with data/data and it works fine
[G1 Android Development] jessie1:
Hey guys so I did this and I have 61 mb of space free.. Now lets say I install a app from the market, do I have to do the same prodecure again?

what if I install an app from sdcard ( apk using app manager) , so I have to do this procedure again too?

Thanks for everyones help.
[G1 Android Development] LucidREM:
apps are no longer installed on the phone

i don't think you people are quite getting the grasp of this thing here .. obviously no one is reading thru the posts or utilizing the search functions .. this has been asked and answered .. and might i add quite self explained when you look at the process

apps for the G1 get installed to folders residing within /data/app .. this process moves the app folder and all of its contents to /system/sd/app .. you then create a link from /data to /system/sd .. this makes everything on the G1 look to /system/sd/app when it searches /data/app .. there is no longer a /data/app .. should you remove the SD card from the phone it will cease to function .. no apps get stored on the phone

hopefully this is well enough explained as to cease the questions but i doubt that will be the result
[G1 Android Development] jessie1:
Hey man thank you for your response. I usually read threads but you can imagine reading 75 threads for a simple question. I read the first couple of pages and figured I will post and hoping someone can answer.

Thanks a lot
[G1 Android Development] jairomeo:
I used saurik's guide and instead of doing an image just installed Debian on the ext2 partition and mounted everything. So I can mount my SD and not worry about the whole image thing.
[G1 Android Development] jhoughjr:
would like some assistance please...

Should I see something like mmcblkp0 when i do the dd -h? for the ext2 part? I tried to start over, but my computer only se the FAT part it seems. I'm afraid i castrated my 4gb card :) any input would be great. (I'm not a linux guru or anything) :)
[G1 Android Development] jairomeo:
if you do busybox df -h you should see /dev/mmcblk0p2 your pc wont see the ext2 partion
[G1 Android Development] PlatinumMOTO:
I've done everything up to part 6 and everytime I get this
[G1 Android Development] PlatinumMOTO:
ok finally figured it out but once I do this am I going to have to do it everytime I install a new app and before I had 70mb free now I have 68 with only 4 apps installed did I not do it right?
[G1 Android Development] PlatinumMOTO:
after doing all this I did backup all my previous apps from my sd card to my pc how do I install them back on the g1 using the sd card link I just created?
[G1 Android Development] PlatinumMOTO:
I unmounted my sd card to see if I could run the apps without my sd and I can run some what did I do wrong?