yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] Preech2003:
AMAZING!!!!!!! PLEASE Make an BACK TO NORMAL ZIP.

Yo "Tempo10" I luv you man. This SD Card Problem was killing me. I thank you a million and one times. Check this out im gonna compile a folder of everything u need to "Run & Install Apps From Your SD Card FOR DUMMIES" and Uplopad it on the site & on RapidShare. So I was wondering if you can also make a Zip File with the "Back To Normal" settings that you posted (Below) so people can RENAME it to "Update.Zip" & flash the "Back To Normal" Settings back on there G1's so that it could store apps to regular INTERNAL memory again; just incase they need it back to orginal settings. I will be putting this as well as Windows SD Card partitoning programs and instructions in a Folder on RapidShare.

These were the Settings You Gave:

Back to normal:

1. rm -f /system/etc/mountd.conf

2. adb push /*the backup of mountd.conf* /system/etc/mountd.conf

3. rm -f /system/init.rc

4. adb push /*the backup of init.rc* /system/init.rc

5. busybox cp -a /sd/ /data/app

6. rm -r /sd/

Thank You Tempo!

PREECH
[G1 Android Development] dwang:
You need to create the sd directory under /system/sd and then copy it over there ie:

busybox cp -a /data/apps /system/sd/

If I have time, I'll create a new thread that outlines the correct steps to do this.. the original post is missing a few steps. Either that or tempo10 needs to update his original post.

IMO, the hardest part of this procedure is actually partitioning the sdcard for ext2 fs. For that you have to have linux or osx installed. I don't know of a way to that under windows.
[G1 Android Development] phreke:
Getting ext2 under Windows

Koush has done a great job explaining ways to get Linux working for Windows. VMWare is an excellent option to virtually create a Linux environment so you can format your SD card with ext2. His site is here. You have to search for it.

phreke
[G1 Android Development] ashshlay:
I haven't tried it yet but partition magic will probably work in windows.
[G1 Android Development] mark925:
I hope that someone will put together a complete list of steps.

As for formatting to ext2, Paragon Partition Manager for Windows will do it. It will even let you partition the card if you already have data on it. I used it and it worked flawlessly.
[G1 Android Development] Preech2003:
Part 1: Partition your sd cards on windows for dummies

PARTITION YOUR SD CARDS ON WINDOWS:

Original Post:

http://www.modaco.com/content/mpx220-mpx220-modaco-com/239450/partition-your-sd-minisd-card-here/

Programs:

*Partition Manager

*Hp Sd Card Format Tool

-WARNING! YOUR CARD WILL BE FORMATTED AFTER THESE STEPS! YOU NEED TO BACKUP YOUR IMPORTANT

FILES!

First, install the programs above, restart your computer.

01. Here, we should see that card is formatted Fat16 (in pic. it seems free, yours will be soon:)

Right click to the Primary in the red box and Delete.

02. Right click to the primary again and click on create. be sure you made the settings on the picture. new size =

"Storage Card" size so write what you want

03. Right click on the second primary(free one) and click create

04. Be sure to make the setting on picture. new size = "Storage Card2" size so write what you want

05. Press apply on the red box

when finished, you can use as below:)

NOTE: If any problem occurs, Format your card with "HP Tool" and Retry.

You can't see the second partition under windows, you must use Active Sync to send files into "StorageCard2"

Folder.

NOTE:

VERY IMPORTANT: Get an SD Card with a HIGH Transfer Rate (CLASS RATE). If the transfer

rate is slow your phone will move slow. So When u buy your MicroSD Card make sure

you look at the "CLASS" Rate. Class 2 is to slow for G1, Dont buy Class 2. Class 4 is good

and class 6 is fast. Class 6 is really what u want but Class 4 will do perfectly. Now remember

they dont make a 8GB MicroSD or a 16GB MicroSD with a Class 6 Transfer Rate Yet but its

comming soon. So in the mean while search On-line for a 4GB or 2GB micro with a Class 4/Class

6 Rating. This Tip is good wether your storing Apps in "INTERNAL" memory OR! on the SD CARD.

So always remember this note. Alot of people dont know this. This matters wether your putting

your SD Card into your Phone, Stereo System, Video Game System, DVD Player w/ SD Slot,

or your Car Stereo System with SD Card Slot. Either way Class 2 means that ***** will load slowly.

Here's A Hook Up, this is a link to a "A-DATA 8GB MicroSDHC Class 6 with 1 Adapter" for only

$23.99 & Free Shipping!!: http://www.supermediastore.com/adata-8gb-micro-sdhc-sd-class-6.html

Your Welcome. Enjoy That ****.

-PREECH
[G1 Android Development] Preech2003:
PART 2: Installing Modified SD Card Mount FOR DUMMIES

Installing Modified SD Card Mount (FOR DUMMIES BY PREECH) Jan. 5, 09

Orginal Post: http://xdaforums.com/showthread.php?t=462882

*THIS CAN **** UP PHONE IF U DONT DO IT RIGHT. DO THIS AT YOUR OWN RISK.

*YOUR G1 MUST HAVE "ROOT" ACCESS FOR THIS TO WORK.

NOTE:

Before making this major Change it will be a very good idea to Download some

Partition Software (Partition Manager etc.) and split your SD Card into 2 Parts For this to Work.

A MICRO-SD card with 2 partitions divided : (1) a "FAT-32" partition & (2) a "EXT2".

The "FAT-32" will be Mounted/Used as the "SD Card" and the "EXT2" will be mounted

as the SD Card for the "Application Data". Partition the 2 Part as Big and small as you

want. I suggest Partitioning the SD Card in 2 even parts so that it 50/50. Some people

might want to give more Space to the "Application Data" section so there is more room

for the Apps you install. Put the Partitioned SD Card back in the G1 & the Install the

following Zip File:

*******************UPDATE**********************

******MORE DETAILED DESCRIPTION COMMING SOON*****************

NOTE:

Installing these changes will automaticly make it so your G1 "NEVER" saves anything

to your "INTERNAL" memory. Everything is saved to your "External" (SD Card) Memory.

Beware that your sdcard will be used as part of system, removing the sdcard may freeze

the phone. If the phone Freezed cuz you removing the sdcard, plug the sdcard

again and take out the battery & put the battery back In.

NOTE:

VERY IMPORTANT: Get an SD Card with a HIGH Transfer Rate (CLASS RATE). If the transfer

rate is slow your phone will move slow. So When u buy your MicroSD Card make sure

you look at the "CLASS" Rate. Class 2 is to slow for G1, Dont buy Class 2. Class 4 is good

and class 6 is fast. Class 6 is really what u want but Class 4 will do perfectly. Now remember

they dont make a 16GB MicroSD with a Class 6 Transfer Rate Yet but its

comming soon. So in the mean while search On-line for a 4GB or 2GB micro with a Class 4/Class

6 Rating. This Tip is good wether your storing Apps in "INTERNAL" memory OR! on the SD CARD.

So always remember this note. Alot of people dont know this. This matters wether your putting

your SD Card into your Phone, Stereo System, Video Game System, DVD Player w/ SD Slot,

or your Car Stereo System with SD Card Slot. Either way Class 2 means that ***** will load slowly.

Here's A Hook Up, this is a link to a "A-DATA 8GB MicroSDHC Class 6 with 1 Adapter" for only

$23.99 & Free Shipping!!: http://www.supermediastore.com/adata-8gb-micro-sdhc-sd-class-6.html

Your Welcome. Enjoy That ****.

-PREECH

P.S:

If this simplfied everything for you and you found this extremely helpful. Please support me and buy

a T-Shirt from my Website at:

www.BlackFreedomUnity.com

BIG Thanks To:

Tempo10 & Encore... for making this Possiable. **** Google & **** T-Mobile :)

PART 3: Un-Installing Coming Soon......
[G1 Android Development] Preech2003:
TEMPO10 Please Can U Make An Unistall Zip For DUMMIES

Yo "Tempo10" I luv you man. This SD Card Problem was killing me. I thank you a million and one times. Check this out im gonna compile a folder of everything u need to "Run & Install Apps From Your SD Card FOR DUMMIES" and Uplopad it on the site & on RapidShare. So I was wondering if you can also make a Zip File with the "Back To Normal" settings that you posted (Below) so people can RENAME it to "Update.Zip" & flash the "Back To Normal" Settings back on there G1's so that it could store apps to regular INTERNAL memory again; just incase they need it back to orginal settings. I will be putting this as well as Windows SD Card partitoning programs and instructions in a Folder on RapidShare.

These were the Settings You Gave:

Back to normal:

1. rm -f /system/etc/mountd.conf

2. adb push /*the backup of mountd.conf* /system/etc/mountd.conf

3. rm -f /system/init.rc

4. adb push /*the backup of init.rc* /system/init.rc

5. busybox cp -a /sd/ /data/app

6. rm -r /sd/

Thank You Tempo!

PREECH

UPDATE: This folder i am creating will be done soon to all who still have hard time understanding this developer ****. Also all Software will be included in Zip. Please Be Patient.
[G1 Android Development] philje123:
Does this "update.zip for dummies" just move the installed apps to the sd card or the entire system?

What you write implies that the whole system is copied and run from the card?

Thanks
[G1 Android Development] dwang:
Preech,

You do know that the original instructions, if you follow them, don't work right?

In addition, the modified mountd and initrc file isn't an image file, its just 2 scripts that need to be replaced manually. You can't rename it to update.zip and reflash your g1 with it. If you try it you'll probably brick your g1.
[G1 Android Development] Preech2003:
Yeah your right. I miss typed.

Yes your right. I messed up on PART 2 but PART 1 was what i really wantd to post. Part 2 want finished. My fault. I will recorrct my error.

P.S. How DO U INSTALL THE "Modified Mountd & Init" files MANUALLY??????
[G1 Android Development] Preech2003:
Adb Shell

is there another to to install the "Modified Mountd & Init" besides ADB Shell.???
[G1 Android Development] mark925:
Just a correction on the bolded part -- they do make 8 gig class 6 microsd cards. I bought one for my G1 back in October.
[G1 Android Development] ashshlay:
You can try copying the modified files using Android (Linda) File System from your sdcard to the correct directory.

What dwang is saying is that the instructions that are copied here again by preech are not complete and don't work as listed. The need some fixes mentioned by dwang and a few lines to mkdir and so on. Anyone wanting to use this modification should know that it can mess up your phone but even if you get stuck like I did you can always push your backup files back to your device before you finish. That means don't forget the backup step.

My advice is to read the post at the beginning then go to dwang's posts for a followup on the fixes that he has mentioned.

Thanks dwang, temp10 and encore....
[G1 Android Development] tempo10:
Sorry to all that I am having a term exam recently and I don't have much time to grab the source...Once I get some spare time I will grab the source and rebuilding the ramdisk.img..and pack it with JF's rom

regards ^^
[G1 Android Development] Razor1973:
NewEgg.com has it for $17.99, but it's out of stock at the moment.

EDIT: Actually, I just tried ordering from that link you provided and got the following message after checkout: "The A-DATA 8GB MicroSDHC Class 6 with 1 Adapter - Retail Package (Free Ground Shipping) is not currently available. Please contact us for availability of this item." I was even able to press "Submit order", so I need to make sure I wasn't charged now.
[G1 Android Development] Preech2003:
A-Data YES

Yeah i ordered mines today too. dont worry. there back order never last more than 4 days. So when they get it. they send it right out.
[G1 Android Development] Razor1973:
No need. I just ordered it for $21.99 (free shipping) from meritline.com. My only concern was that the description says "Class 6" and the URL says "class4", but the part number listed is the one for Class 6, plus I don't even know if A-DATA makes a Class 4 8GB Micro SDHC card (most likely not).
[G1 Android Development] Duncan79:
I'm scared to try this. :s
[G1 Android Development] momo9999:
Once I make this change, will it cause all new apps to install on SD card or did the commands also copy all existing apps to sd card?

If i undo the changes, do I lose any of the apps I installed?

And finally has anyone who have done this compliment whether the phone seems slower? Since it's going straight to SD card, I assume it will be a laggier.
[G1 Android Development] tempo10:
this step in part one:

8. busybox cp -a /data/app /sd/

9. rm -r /data/app

10. ln -s /sd/app /data/app

11. reboot

(moving the application data to the ext2 partition of your sdcard)

Back to normal:

1. rm -f /system/etc/mountd.conf

2. adb push /*the backup of mountd.conf* /system/etc/mountd.conf

3. rm -f /system/init.rc

4. adb push /*the backup of init.rc* /system/init.rc

5. busybox cp -a /sd/ /data/app

6. rm -r /sd/

U must have a sdcard with a fat32 and a ext2 partition in order to make things possible ~
[G1 Android Development] vtecpower:
need a little help here please...

I want for my /system to be mounted as read/write automaticly upon startup of the phone using this command "mount -o,remount rw /dev/block/mtdblock3 /system"

How can i make this command to be executed as ROOT when my phone starts up.

THanks
[G1 Android Development] dwang:
Tempo,

Either you need to modify your original post or change your directions here. Your original post does not work as written!

You can't create and mount to rootfs without changing the ramdisk image.

Its going to confuse people on this thread.
[G1 Android Development] tempo10:
yep I knw..I git the core.git but now i am having a term exam and can't create a new image without a linux..I will get things fix on next week..hopefully there will be RC30 RC8 and API

regards~
[G1 Android Development] Duncan79:
I'm glad I waited before trying this then. Look forward to your update, tempo10. ;)
[G1 Android Development] kagero:
got a noob question

:confused:

can i use the linux commands from the phones terminal and adb commands from windows or has everything to be done in linux

thx a lot
[G1 Android Development] linuxrebel:
This may sound dumb but.....

The Linux part I grok. However what is ADB and where can I find it? Is this a windows application of some strange sort?
[G1 Android Development] techvd:
adb is a tool to "talk" to Android emulator or phone (via USB). It is part of the Android SDK package.
[G1 Android Development] beartard:
Just what the poster above said, but you don't need adb to do any of this. ADB just allows you to type more simplified commands on the computer rather than some longer, Linux commands on the phone.
[G1 Android Development] thainess:
1. adb pull /system/etc/mountd.conf /*somewhere you may want to back it up*

in where **somewhere you may want to back it up* do i just make up something? or do i like create a folder somwhere

im so lost and its only step 1 :\

if possible could someone send me a really noobed down version of how to do this, like i understand how to use ADB and stuff
[G1 Android Development] antempire4:
Yes, put it in a folder so you can push it back to your phone later if you need it.

So if your main drive is "C:\" make a folder there called mountd.conf original and another one called init.rc original so now your commands should look like this:

adb pull /system/etc/mountd.conf C:\mount.conf original

adb pull /system/init.rc C:\init.rc original

Here is a heads up for steps 7 and 8 i see people have a problem with.

make sure you download the modified mountd.conf and init.rc files:

http://xdaforums.com/attachment.php?attachmentid=144546&d=1231461952

Unzip it to "C:\" if that's your main drive.

Then your commands should look like this:

7. adb push C:\modified mountd & init\/mountd.conf /system/etc/mountd.conf

8. adb puch C:\modified mountd & init\/init.rc /system/init.rc
[G1 Android Development] BohicaBobby:
Agree about modification suggestion

I was able to wipe my phone, root it, update it, etc. Those instructions are very well written and easy to understand. I cannot begin to figure out how to install programs to my SD card though. If someone could either post some easier to follow instructions, or a link where some easier instructions are already posted, it would be GREATLY appreciated.

Bob C.
[G1 Android Development] themykel:
I think the part that people are getting hung up on is adb if they have no command line (CLI) experience. Lets see if I can simplify this.

Download the Android SDK and put it into an easy to access place on your computer (I have it at C:/AndroidSDK/{release version}).

Go to Start -> Run -> and type in "cmd" - this will open the CLI

Type cd c:

Type cd AndroidSDK/(hit tab - hitting tab will auto-complete the next directory)

type cd tools

NOW you can access the ADB CLI

For ease of use, when you download the mountd.conf and the init.rc you can just put them in the tools dir - this will make things easier on newbs. My recommendations are in red

Procedure:

1. adb pull /system/etc/mountd.conf /*somewhere you may want to back it up*

as an alternative you can do the following:

adb remount

adb shell

cd /system/etc

cp mountd.conf /system/etc/mountd.conf.old (this makes a backup of your original mountd.conf)

[\COLOR]

2. rm -f /system/etc/mountd.conf

exit (this puts you back into the windows CLI)

3. using the modified mountd.conf, adb push /*the path of modified mount.conf */mount.conf /system/etc/mountd.conf

if you followed what I was saying and put it into your tools directory you would type the following:

adb push /mountd.conf /system/etc/mountd.conf

4. adb pull /system/init.rc /*somewhere you may want to back it up*

as an alternative you can do the following:

adb shell

cd /system/

cp init.rc /system/init.rc.old (this makes a backup of your original init.rc)

5. rm -f /system/init.rc

exit (this puts you back into the windows CLI)

6. using the modified init.rc, adb push /*the path of modified init.rc*/init.rc /system/init.rc

if you followed what I was saying and put it into your tools directory you would type the following:

adb push /init.rc /system/init.rc

7. adb shellreboot

I also recommend typing adb shell here for the next commands

8. busybox cp -a /data/app /sd/

9. rm -r /data/app

10. ln -s /sd/app /data/app

11. reboot

I am typing this from memory and referencing the first post so if I missed any of the steps let me know or correct me :)
[G1 Android Development] BohicaBobby:
a couple questions

So are these commands typed on my Windows based pc and not my g1?

And lastly, do I have to only type these commands one time? Or everytime I want to install software to my sd card?
[G1 Android Development] themykel:
Only have to type this once and you can type this all from your pc in the CLI (command prompt). When you connect your phone via USB and do NOT mount your phone (well, even if you do mount it, but easier to just not mount it), and type "adb shell" from the specified location, it then opens up a shell to your phone via the ADB commands and you are virtually typing on your phone, just using your computers keyboard/monitor
[G1 Android Development] BohicaBobby:
Thank you so much for your help! It is all starting to make sense to me now. I'll give it a shot later tonight and let you know how it goes.

Again, thank you very much!

Bob C.
[G1 Android Development] gottifour:
I dont have a windows machine at the moment. Can I do this through terminal on a linux machine?
[G1 Android Development] jdc4429:
Some batch files

Hello All,

First thanks to all involved for the info enabling us to do this...

I created some batch files to help automate the process a bit.

Make sure you follow the instructions and I'm not responsible if

you mess something up. You should know what your doing (ie. done

this manually) before attempting.

*** You must have a FAT/FAT32 partition (first partition) AND an EXT2 partition (second partition) on your SD Card ***

I have only tryed this with JF 1.31 on a G1 with the dev bootloader.

You must unzip the file ANDROID2SD.ZIP into your android directory where adb resides! (ie. C:\ANDROID\TOOLS)

If you don't know what adb.exe is then your not ready to do this!

Short Description of what each batch file does:

app2sd1.bat & app2sd2.bat are run to move all apk's to the sd card

You must reboot the phone after running app2sd1.bat before running app2sd2.bat

cache2EXT2.bat is run to move the cache for market and browser to the sd card's ext2 partition

data2EXT2.bat is run to move the entire /data/data directory to the sd card's ext2 partition

I ran all Batch files after wiping & updating my phone and had no problem.

I have been running my phone this way for a week with no problems.

The only thing I noticed was when I installed like 50 apps in a row the phone rebooted on me. Not sure if it's related or just an Android thing.

Your results may vary.

For reference, I'm using an 8 Gb Class 6 Micro Sd Card

jdc4429

EDIT: Small fixes. One of the batch files had a txt extension. Also tryed to make the readme.txt a little better.

Two additional notes:

If done correctly you should have no problem mounting your phone to your computer and accessing the first partiton just as before.

No need to run cache2ext2.bat if your going to run data2ext2.bat.
[G1 Android Development] themykel:
You can do this all through your console (Konsole on Kubuntu) as well
[G1 Android Development] BohicaBobby:
Dual partioning SD card question

I'm getting ready to do this but I noticed in the first message of this thread that it states you must have Linux/Mac to partion the SD card. What does one do if all you have is a Windows pc?

Much thanks,

Bob C.
[G1 Android Development] themykel:
Use Paragon Partition Manager 9.0 while your phone is plugged in and SD Card is mounted to your PC. You will have to reboot your PC during the process, but it will work
[G1 Android Development] BohicaBobby:
Awesome, thanks!

Bob C.
[G1 Android Development] gottifour:
Edit... I installed like 15 to 20 megs of programs and my internal memory only went down 2 megs. So it seems like it is working. Is the /data/data folder that big? How much free memory should I have.

Thanks for the instructions in this post they seem to make things easier. I followed all the steps and they went through with no errors but I only gained 10 megs went from 22 to 32. I know I have way more programs then that. Not including the caches. Did I miss something? I was also looking for the data2ext.bat. It wasnt in the zip. Is it located somewhere else? I also see the what appears to be the directories that were created under /system/sd. Is that where the apps should be now? The app and app-private folders are empty I believe. Maybe I have this all mixed up...which is a good possibility. Thanks for any help. d
[G1 Android Development] thinzzelle:
this works the best!!!! for idiots like me......the .bat files
[G1 Android Development] xxkingpinxx:
I still can't seem to get this to work, imma try the .bat files thing, but I keep seeing that there is a way to format to ext2 using a mac, I have a macbook pro 10.5.5 OSX, how do I a format the card to ext2, that doesn't seem to be an option on the disk Utility program, and anyway to do all this thru terminal on a mac?
[G1 Android Development] pecord:
Hey i had a few questions, after I made my 2GB sd card into 2 partitions (1.5gb fat32, 500mb ext2) i can't access the card anymore, it writes and reads fine, took some pics to test it out, but in windows i can't see it after i unmount it or put it in my card reader. Any ideas? Also should i be able the apps on the sd card because i got android file manager and i don't see my apps on sd card, whats with that?
[G1 Android Development] antempire4:
Are both partitions set as active? If so only one should be. set your fat32 as the only active partition. use paragon partition manager in windows or gpart for linux.
[G1 Android Development] twistkill:
will these settings survive a data wipe+new ROM flash? i guess not right?
[G1 Android Development] beartard:
The partitions and the data on them will survive, but you'd have to redo the init.rc/mountd.conf step, the symlinks, and the removal of the old /system directories.