yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] MontAlbert:
does it matter which way the slashes go in the command? I have noticed this a bit- in the first post it says

adb push /<dir on your desktop of modified file>/mountd.conf /system/etc/mountd.conf

but i have seen a few- including the one above saying:

adb push C:\location\mountd.conf /system/etc/mountd.conf

thanks
[G1 Android Development] LucidREM:
this is linux: '/'

this is DOS: '\'

yes .. can get confusing on multiple OS but that's the gist of it
[G1 Android Development] Zionator:
Thanks i got that part now hehe but now i got a new problem :

1. With the phone off, insert your newly partitioned sdcard into the g1.

2. Connect your g1 to your desktop via the usb cable and turn it on.

3. Backup your original mountd.conf and initrc.rc files from your g1 by running the following commands on your desktop from the cmd shell:

adb pull /system/etc/mountd.conf <dir on your desktop>

adb pull /system/init.rc <dir on your desktop>

* deamon not running. starting it now *

* deamon still not running *

error : no device

what does it mean and how do i fix it????
[G1 Android Development] Zionator:
Thank u for that. :-)
[G1 Android Development] KyleK29:
I assume you can also just drop the two files (the .exe and .dll) from the ADP zip into the C:\Windows directory. The path is just so you don't have to navigate the CMD prompt and can just type "adp", I think.
[G1 Android Development] Zionator:
Aaahhhh

No i didn't but thanks for letting me know hehe will do that now. :-)

How ever i'm still having problems with :

When i type :

adb pull /system/etc/mountd.conf <dir on your desktop>

adb pull /system/init.rc <dir on your desktop>

Then i keep getting :

* deamon not running. starting it now *

* deamon still not running *

error : no device

what does it mean and how do i fix it????
[G1 Android Development] Karolis:
I've also just completed the procedure (with all steps) on JFv1.41 RC8 and everything seems to be working fine. I have exactly 60 apps and 62M of free phone storage.

I'll report any problems after a little more usage. Also, I think this thread should be made sticky instead of the other one as the other one does not work with RC8.
[G1 Android Development] Smokuevo:
menu settings applications development usb debugging check that and u good to go
[G1 Android Development] .PaNiNi.:
Im pretty much stuck here :-/..... how do i get the adb file to be recognized in the cmd shell? i have SDK extracted onto my desktop :(
[G1 Android Development] LucidREM:
you have the drivers loaded for the phone? drivers are only 32-bit .. someone posted some 64-bit drivers but you need to be running in test mode for it to work (kinda crappy)
[G1 Android Development] Zionator:
thanks working now.

But i got to the end and that f***ing partition program that made the ext2 showed up as ok and had made ext2 with out any problems so i get to the part 11 :

11. Check to see that the ext2 partition has been created and mounted:

busybox df -h

You should see a line that looks similar to this:

/dev/mmcblk0p2 1.2G 9.1M 1.1G 1% /system/sd

If you don't see this line, you didn't partition your sdcard correctly. STOP! Go back and do that.

BUT I GET THIS UP :

C:\Users\Illuminator\Desktop>adb shell

# busybox df -h

busybox df -h

Filesystem Size Used Available Use% Mounted on

tmpfs 48.4M 0 48.4M 0% /dev

tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals

/dev/block/mtdblock3 67.5M 67.5M 0 100% /system

/dev/block/loop0 1.4M 1.4M 0 100% /system/modules

/dev/block/loop1 3.1M 3.1M 0 100% /system/xbin

/dev/block/mtdblock5 74.8M 52.6M 22.2M 70% /data

/dev/block/mtdblock4 67.5M 1.3M 66.2M 2% /cache

/dev/block/mmcblk0p1 1.4G 85.8M 1.3G 6% /sdcard

#

It's a 2gb sd card so what happend to the 500mb ext2 that i made????
[G1 Android Development] kringer2501:
just in case anyone is curious, I figured out that I messed up the init.rc somehow... I rebooted the update.zip and tried again...worked perfectly, thanks!!
[G1 Android Development] Zionator:
Lol i am lost in space i'll have to try agin.
[G1 Android Development] MontAlbert:
so when typing in the cmd prompt on windows XP you use '\' and if you use the telnet/terminal on the phone you use '/' ?

so if i am using the cmd prompt in XP and i have my adb in a special partition just for android (e:/), i type:

adb push e:\android\mountd.conf /system/etc/mountd.conf

and all other prompts are edited the same way?
[G1 Android Development] cchap07:
I think this thread should be stickied, it is very helpful!
[G1 Android Development] joshtheitguy:
Is the "My Downloads" section of the market completely clearing the app download history after a couple of hours normal or did I mess something up?
[G1 Android Development] antempire4:
Apparently it is all fraked up. I was over at the Android Community and people there that were non app sd card and non root said it hasn't been working for them either. It is a google issue i presume? Anyone else?
[G1 Android Development] joshtheitguy:
I guess it is good to know I'm not the only one, because I just noticed the Market thing since I moved the apps and now my Music player is going insane when plugging in my headphone adapter but it never did before.
[G1 Android Development] Karolis:
"My Downloads" are on Google servers, so it must be Google's fault.
[G1 Android Development] .PaNiNi.:
anyone want to help?
[G1 Android Development] Karolis:
You have to run adb from the directory you have extracted it to.

If you are on linux machine, use ./adb
[G1 Android Development] .PaNiNi.:
im on windows
[G1 Android Development] spy_owl2:
I noticed that my phone would get warmer even prior to moving /data/data. I first started noticing this when I moved /data/app to the SD card and upgraded to 1.41 at the same time.

I'm not sure whether to blame this on the increased CPU usage relating to the SD card use, the new software upgrade, or the SD card hardware itself.

I am wondering if anyone else is experiencing similar issues. If not, I'll try to swap out to a different SD card to see if that's the problem.

I have ADP1 with JF 1.41 and /data/app /data/app-private /data/data moved off of to the 8GB class 6 Transcend SD card.
[G1 Android Development] .PaNiNi.:
ok so im a total noob and im sure you can all tell but i finally figured out step 3 and when i do step 4 it says error: device not found
[G1 Android Development] Zionator:
Delete???

3. Backup your original mountd.conf and initrc.rc files from your g1 by running the following commands on your desktop from the cmd shell:

adb pull /system/etc/mountd.conf <dir on your desktop>

adb pull /system/init.rc <dir on your desktop>

---------------------------------------------------------------------

After step 3 i don't see a way to delete the old files of the phone so my question is : When i use "pull" command does that delete the files from the phone or do i have to delete it my self or do i just leave it alone and continue to step 4?????????

Edit : Ok Thank u for ur help Mikey1022
[G1 Android Development] Mikey:
Leave them alone and continue
[G1 Android Development] Zionator:
4. Mount your g1's /system directory as writable via the desktop cmd shell:

adb remount

------------------------------------

Mounting as writeble is that just adb remount or do i use the app from android market that has auto rotate options as well as read and write wich i belive to be option 1 in the app.???

Cant remember the name of app. But think it's called tweak some thing.

----------------------------------------

Step 5.

Microsoft Windows [Version 6.0.6000]

Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Users\Illuminator>cd desktop

C:\Users\Illuminator\Desktop>adb pull /system/etc/mountd.conf G1

* daemon not running. starting it now *

* daemon started successfully *

62 KB/s (384 bytes in 0.006s)

C:\Users\Illuminator\Desktop>adb pull /system/init.rc G1

28 KB/s (145 bytes in 0.005s)

C:\Users\Illuminator\Desktop>adb remount

remount succeeded

C:\Users\Illuminator\Desktop>adb shell mkdir /system/sd

mkdir failed for /system/sd, File exists

What did i do wrong?????
[G1 Android Development] Mikey:
All those commands are using ADB from your desktop.
[G1 Android Development] Zionator:
OK so what am i to do then, use it from system folder???
[G1 Android Development] Mikey:
Do you have adb on your computer?

If so, continue with every step.

In your case, you seem nervous and unsure, i would recommand you stop do not continue and wait till someone implements this into a program or in a ROM.

You will save yourself alot of time with future errors.

Read as much into adb, commands, and so on.

Get yourself familiarized with this stuff prior to jumping into it blind.
[G1 Android Development] Zionator:
Yes i have it in my system folder and i got sdk on as well.

First all why should i be nervous meby u r nervous from helping out and yes am unsure other wise i wont be asking look around over 300 post in here from people helping out.

Why should i be afraid of errors that how u learn but if u don't wanna help then don't no one is forceing u but it would just be a waste of knowledge not to.

I have already done it once down to the last step but the sd card messed up some how so i had to start over and i didn't have the mkdir error before.

So any one else whom knows how to help???
[G1 Android Development] Mikey:
You totally missed my point.
[G1 Android Development] vtecpower:
here is better file with results
[G1 Android Development] dwang:
looks good..

I don't see anything wrong..

From the df -h command you can see that the /data directory has 52mb of space free, exactly what android is reporting..

you can cd into the individual directories in /data and then do a ls -l to see if there anything using up a bunch of space.
[G1 Android Development] vtecpower:
o..ok..tahnks for the help :)
[G1 Android Development] dwang:
I don't notice any slowdowns with just having the apk files running off the stock 1g sdcard.
[G1 Android Development] h4ng0ver:
can I try this with the Sandisk Class 2 16g card?

Thanks
[G1 Android Development] mark925:
Yes you can. Before the G1 came out, Google said they tested the device with 16 gig cards and it worked.
[G1 Android Development] xile6:
Just a quick question. Can you revert to stock with a wipe? Yea i know you will have to reinstall all your apps again.
[G1 Android Development] Perrosky:
Can somebody give me some help here, I did partition my sd card with Paragon Partition Mananger in both formats fat32 and ext2 but I don't know if the ext2 partition is formated already, is there anyway to know this with my g1?

thanks
[G1 Android Development] h4ng0ver:
I meant running apps from my Sandisk Class 2 16 gB card, would it be too slow?

Thanks
[G1 Android Development] dwang:
U need to format your 1st part as fat and 2nd part as ext2
[G1 Android Development] joshtheitguy:
good thing you caught that. I can redo everything if it will help clarify it for anyone doing this from Kubuntu.
[G1 Android Development] Rafase282:
Hello, I have some problems. I tried to do these steps without the abd and used the terminal to delete the mountd.conf and the init.rc. However I downloaded the modified files and I cannot move them tot he device even with the adb, yes I had to install the sdk.

I reboted the phone and now It dont read my card and still wont move the files to the device. What can I do? I have the JFv1.31 and have a nan back up but I dont knwo how to get it back or if I should wipe and install it again.
[G1 Android Development] dwang:
did you run "adb remount" to make the g1 /system directory writable?
[G1 Android Development] Rafase282:
Yes I did and it seems liked it sended them btu when I use linda or astro it shows that the files were not moved.
[G1 Android Development] dwang:
Cat the files on your g1 and see what they look like. It should look like this..

C:\Users\dwang\>adb shell cat /system/init.rc
on system
mount cramfs loop@/system/modules/modules.cramfs /system/modules ro
mount cramfs loop@/system/xbin/xbin.cramfs /system/xbin ro
insmod /system/modules/2.6.25-01843-gfea26b0/kernel/fs/ext2/ext2.ko
mknod /dev/mmcblk0p2 b 179 2 1000
mount ext2 /dev/mmcblk0p2 /system/sd noatime nodiratime

C:\Users\dwang\>adb shell cat /system/etc/mountd.conf
## mountd configuration file

## add a mount entry for each mount point to be managed by mountd
mount {
## root block device with partition map or raw FAT file system
block_device /dev/block/mmcblk0p1

## mount point for block device
mount_point /sdcard

## true if this mount point can be shared via USB mass storage
enable_ums true
}
[G1 Android Development] Rafase282:
This is what i get plus the comands that i used.

C:\Users\Rafase282>adb remount

remount succeeded

C:\Users\Rafase282>adb push C:/here/mountd.conf /system/etc/mountd.conf

2 KB/s (384 bytes in 0.164s)

C:\Users\Rafase282>adb push C:/here/init.rc /system/init.rc

10 KB/s (321 bytes in 0.031s)

C:\Users\Rafase282>adb shell cat /system/init.rc

on system

mount cramfs loop@/system/modules/modules.cramfs /system/modules ro

mount cramfs loop@/system/xbin/xbin.cramfs /system/xbin ro

insmod /system/modules/2.6.25-01843-gfea26b0/kernel/fs/ext2/ext2.ko

mknod /dev/mmcblk0p2 b 179 2 1000

mount ext2 /dev/mmcblk0p2 /system/sd noatime nodiratime

C:\Users\Rafase282>
[G1 Android Development] dwang:
init.rc looks correct, whats mountd.conf?
[G1 Android Development] Rafase282:
C:\Users\Rafase282>adb remount

remount succeeded

C:\Users\Rafase282>adb shell cat /system/etc/mountd.conf

## mountd configuration file

## add a mount entry for each mount point to be managed by mountd

mount {

## root block device with partition map or raw FAT file system

block_device /dev/block/mmcblk0p1

## mount point for block device

mount_point /sdcard

## true if this mount point can be shared via USB mass storage

enable_ums true

}

C:\Users\Rafase282>

But when I check the files are not on the device, I still cant acces my card.
[G1 Android Development] dwang:
mountd.conf looks fine..

the files are on the device.. what exactly are you looking at?

did you partition your sdcard correctly? My guess is thats the problem..

what does this cmd show?

adb shell busybox df -h
[G1 Android Development] Zionator:
well i don't seam to be getting smarter on my issu from this.

http://code.google.com/android/reference/adb.html
[G1 Android Development] MontAlbert:
I have done this and didn't get any errors or anything- when i type in the busybox commands from the cmd screen on my pc using adb shell it just repeated the command after it- is that correct?

Problem is, I had 70MB free before i installed a heap of apps and now i only have 65mb. does that mean it didn't work? how do i tell if it really worked?
[G1 Android Development] MontAlbert:
ok. figured it out- getting the hang of thes elinux commands-

su

ls /system/sd/app

this tells me all the stuff that has been installed in there- so it did work....

so why did i lose memory? Market cache?
[G1 Android Development] Stericson:
Ignore my ignorant post.
[G1 Android Development] bestwebs:
Hi,

You could try doing the 2nd step 13 on the 1st page.

I moved all my caches with the updated commands and I have no slowdowns on the phone.

My market cache shows 99kb.

I have 68 megs free on the phone and 28 apps installed.

Thanks for this great post dwang!

:)
[G1 Android Development] LucidREM:
just moving the /data/app doesn't keep all your free space .. even moving the /data/data doesn't .. there's info stored on the phone from running things and installing apps that will still occupy space .. but even after installing every app on the market you should still have 30-40M free
[G1 Android Development] chicojd:
This procedure appears to augment the space that G1 starts with (290MB) and adds whatever you create on your SD. For example, I added a 512MB EXT2 partition and when I look at system manager, it shows 733MB of available storage with 82MB used. Is this correct? Does moving the data folder over to the SD card change this?

Thanks for the great hacks.
[G1 Android Development] bestwebs:
Hi,

That's looks correct.

How much internal phone storage do you show?

Under sd card and phone storage.

I have 68 megs available space with 30 apps uinstalled.

Before the move I had 16 megs available with all my caches cleared.

I love this hack.

:)
[G1 Android Development] Smokuevo:
i have 97 apps with 57mb free..

apks and data on ext2
[G1 Android Development] esnapz:
I have 73 apps with 52mb free.

Quick question: I just got my new sdcard today. How do I transfer the ext2 partition files over in windows?
[G1 Android Development] LucidREM:
i wouldn't .. Ubuntu is a safe bet
[G1 Android Development] esnapz:
Seems like I'm going to learn something new today but before that happens here's another question....lol. Is there a way to get a linux shell/window in vista or do I have to go with 1 of those live cds and boot into linux?
[G1 Android Development] MontAlbert:
so can you just do a drag and drop of each partition in ubuntu or do you need to use cmd line?

Also, i had to partition my sd card using paragon in XP as Gparted didn't recognise it in my card reader... it didn't give me the option to partition it at all.... .. maybe the card reader doesn't have correct driver?
[G1 Android Development] .PaNiNi.:
i guess i will ask this 1 more time seeing as everyone ignored me the first time

when i do step 4 it says no device found... can any1 help and tell me why?
[G1 Android Development] Mikey:
Do you have the drivers installed?

Is your phone connected to the computer via USB cord?

Does your computer recognize your phone when you connect it?
[G1 Android Development] LucidREM:
firstly .. you should be able to use a Virtual Ubuntu .. that way you don't need to reboot the machine .. i prefer the full mode along side my Vista OS

in Ubuntu 8.10 i used a Partition Editor that can be found in the list of Apps not in the default install .. it's a click-and-drag style .. right-click to resize, delete, create etc .. no command line .. i actually love linux .. way faster than MS-POS .. however .. i need the MS to do things for which linux has not yet accounted
[G1 Android Development] LucidREM:
i prefer not using the ADB shell at all .. i did the root on two phones now never connected to a PC

i'm guessing you refer to step 4 as the remount of the system .. you can do this from terminal and see how that does:

$su

#mount -o rw,remount -t yaffs2 /dev/block/mtblock3 /system

you mount the /system as writable before doing the:

#mkdir /system/sd
[G1 Android Development] Beast84:
Whats this partition editor called? When I created the Live CD & booted up, all I had was gparted
[G1 Android Development] letsrootit:
Partition Editor / GParted are the same thing.
[G1 Android Development] LucidREM:
it's just GNOME Partition Editor .. yes .. GParted .. this is the description:

"GParted uses libparted to detect and manipulate devices and partition tables while several (optional) filesystem tools provide support for filesystems not included in libparted."
[G1 Android Development] Zionator:
I just dl ubuntu 8.10 and can't seem to find what u all are talking about so do i apt and dl the app or am i just blind ???

And would also like full guidens on how to format sdcard in ubuntu.

Thanks.
[G1 Android Development] LucidREM:
boot ubuntu .. goto Applications -> Add/Remove... -> type PARTITION in the search box

install GNOME Partition Editor

goto System -> Administration -> Partition Editor

select the SD (7.96MiB or something) .. right-click -> Unmount .. right-click -> Delete .. right-click -> New .. select the size and select FAT32 (i chose like 6106M leaving exactly 1.5MiB for EXT2) .. right-click the rest of the SD -> New .. select the EXT2 (default) and size (default to 100% available) .. now you should have the two partitions .. done

one thing to note if it won't let you write to the SD then Unmount .. also i clicked Apply after every step instead of batching the commands and running everything at once
[G1 Android Development] Pamela3:
Please sticky this thread and unsticky the old one

This is a request to the admins to sticky this thread and remove the old one as this one has saved me plenty headaches. I had to re-do these steps and only found the old one which is almost permanently at the top of the board. This one is simple and clear, the old one is not.
[G1 Android Development] MontAlbert:
nice. i installed the full ubuntu 8.10. I opened gparted (after dling it) and once opened i couldn't find the sd card- it could find the c: and all the other partitions on it but there was no way to select the sd card... i think the pc could see it as it was in my locations..... oh well, used paragon and it worked anyway....
[G1 Android Development] smsrat84:
Ok, I am a newb when it comes to android. Just bought a G1, rooted it yesterday, now I want to save and run apps off the sd card. I formatted the SD card with an sd card reader, not the G1, bc my pc still wont recognize a removable storage through the phone. Even after driver install. Now, I am sure I need to be able to see it to have it connected when I am in the cmd prompt, bc I am being prompted when trying to adb remount, that the phone is offline. How do I change this, and is there a simpler way to do this or is this the only/best way?
[G1 Android Development] LucidREM:
use terminal .. no USB
[G1 Android Development] start_developing:
Can someone confirm that the phone gets warm when doing these steps?
[G1 Android Development] smsrat84:
Im sorry for the lack of knowledge, but what do you mean and how do I accomplish?

I cant seem to get Windows to see the phone
[G1 Android Development] LucidREM:
this is a form of the instructions from this thread .. but modified slightly to be used directly from the "Terminal" .. i did not use my USB on my phone to root or run apps .. everything i did was on the G1

$su

#mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

#mkdir /system/sd

6. Download the attached modified mountd.conf and init.rc files to your SD.

#busybox cp -a /sdcard/mountd.conf /system/etc/mountd.conf

#busybox cp -a /sdcard/init.rc /system/init.rc

9. Reboot your g1

$su

#mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

#busybox df -h

You should see a line that looks similar to this:

/dev/mmcblk0p2 1.2G 9.1M 1.1G 1% /system/sd

If you don't see this line, you didn't partition your sdcard correctly. STOP! Go back and do that.

12. From the G1 shell run the following cmds to copy your app and app-private directories from the internal g1 storage to the sdcard.

#busybox cp -a /data/app /system/sd

#rm -r /data/app

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

#busybox cp -a /data/app-private /system/sd/app-private

#rm -r /data/app-private

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

Reboot your g1
[G1 Android Development] smsrat84:
ok another dumb ? is what program should I be using, telnet or terminal emulator? bc with the latter i type su and it denies access, but rooting instructions were followed to the letter
[G1 Android Development] LucidREM:
if you type su in "Terminal" and don't get the "#" then you don't have ROOT
[G1 Android Development] h4ng0ver:
Question about this procedure with R33 JF1.41 update

Hey all

I currently have all my apps/data saved in the SD card and I want to upgrade my phone to the RC33 JF1.41, I'm wondering if this procedure would work after I'm done upgrading.

Thanks