yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] Smokuevo:
removal of old system dir? meaning apps installed there wont work till u install em?
[G1 Android Development] BohicaBobby:
Device Not Found ?????

Okay, I have root on my phone. I downloaded and put the Android SDK in it's own directory in C:. I have my SD card partitioned with one Fat32 and the other ext2. However, when I go to the command prompt and change to the tools directory, I type "adb remount" and I receive first a message that says "daemon not running. starting it now", and then "daemon started successfully". Right after that I get "error: device not found". What would be causing this? I can't seem to get past the first command.

Is there a particular version that I need to upgrade my phone to so that I can run these commands? If so, what version and where do I find it? The version that I upgraded to is: http://jf.nyquil.org/v1.31/JFv1.31_RC30.zip

Thanks,

Bob C.
[G1 Android Development] beartard:
If you had your apps installed to the sd-card before the wipe, you don't have to re-install them after you wipe. You will probably have to go through the procedure again by replacing mount.conf and init.rc. You'll also have to re-create your symlinks and remove the original app and app-private directories from /system.
[G1 Android Development] mark925:
That's exactly what I had to do after a wipe with the sd card hack.
[G1 Android Development] BohicaBobby:
Does anybody know why I would be receiving a "device not found" message when I try to type adb remount from the command prompt?

I have an 8 GB SD card that I first formated in FAT32. I then created a 4.1 GB ext2 linux partition using Paragon Partition Manager 9 but I must be missing something.

Any ideas?

Bob C.

P.S. I definitely have rooted my device because I've downloaded and installed Task Manager from the Market and it works flawlessly.
[G1 Android Development] themykel:
AH - now your message makes more sense! Somewhere on here (I think its under the change your boot screen thread) it has a link to the correct USB drivers.

Actually --- ill zip it up and attach to this thread. Reinstall your drivers when PC is hooked to the phone and you should be good to go!
[G1 Android Development] BohicaBobby:
Awesome! I see light at the end of the tunnel! I'll write more after I check this out.

Once again, thanks a bunch!

Bob C.
[G1 Android Development] BohicaBobby:
Usb drivers get installed on the phone, or my pc?
[G1 Android Development] BohicaBobby:
Okay, I updated the usb drivers on my pc. But now I"m having problems with some of the command lines. I was able to type adb remount and it was successful. I was also able to adb shell and I received the "#" prompt. I'm having a problem typing some of the commands at the # prompt though. I never know whether to proceed the command with # or to just type the command. It seems when I just try and type the command I get a not found message. Having no prior linux experience is where I'm sure the learning curve is on this.

Should I also proceed my commands with #?
[G1 Android Development] themykel:
mand not the #

Also check your pm....I sent you an exact cli copy of what I did after a phone wipe. Its just
[G1 Android Development] BohicaBobby:
I recieved that. Thanks! The part that confues me is on one line it will say:

# ls

and then right below it will say:

ls

Do i just ignore the lines with the #'s and just type the lines without the #'s proceeding them?

Thanks again,

Bob C.
[G1 Android Development] KyleK29:
Out of curiousity (considering doing this). Has anyone seen a performance increase by doing this when you have a lot of apps installed? I noticed (and a friend of mine as well) that when the internal memory gets low (start getting messages), the phone seems to get sluggish. I'm curious if this might address this issue.

Anyone notice?
[G1 Android Development] andonnguyen:
Yes, I have no lag whatsoever. I have about 70 apps installed with 63ish megs left of internal memory available.
[G1 Android Development] jdc4429:
There was error with the naming.. I just corrected and uploaded. it had a txt extension... Yes.. it is that big... if you run data2ext2.bat then everything is moved except the dalvik directory which stores the odex files. Right now I have 55MB free with 110 apps installed now using that method. You could probably move dalvik as well but then nothing would take space on that partition. lol

See attached screenshots. One showing atrackdog and the other showing sd memory & internal.

And for anybody interested in seeing the mount points with df...

C:\ANDROID\tools>adb shell

* daemon not running. starting it now *

* daemon started successfully *

# df

df

/dev: 49520K total, 0K used, 49520K available (block size 4096)

/sqlite_stmt_journals: 4096K total, 0K used, 4096K available (block size 4096)

/system: 69120K total, 65764K used, 3356K available (block size 4096)

/system/modules: 1420K total, 1420K used, 0K available (block size 4096)

/system/xbin: 3152K total, 3152K used, 0K available (block size 4096)

/system/sd: 497699K total, 63037K used, 434662K available (block size 1024)

/data: 76544K total, 19624K used, 56920K available (block size 4096)

/cache: 69120K total, 1188K used, 67932K available (block size 4096)

#

/system/sd is the EXT2 partition created on the SD card

jdc4429
[G1 Android Development] gottifour:
Thanks so much..You were right! It was like 24 megs at least. i have 57 megs available with 64 programs installed. I really appreciate you creating this simplified procedure. Very awesome!!
[G1 Android Development] BohicaBobby:
I have an SD card with a Fat32 3GB partition that is active and a 4.1GB ext2 partition. I ran app2sd1.bat & app2sd2.bat (restarted my G! after running each of them) and then I ran data2ext2.bat and restarted my G!.

I went to Market and searched for a checkbook application that I like and clicked on Install. I promptly received a message that I did not have enough space to download/install this application.

What's going on with this?

Bob C.
[G1 Android Development] gunigugu:
Just a quick follow up to clarrify the performance with this mod:

Does remounting /data/data to sd card cause a performance hit?? I could've sworn I read somewhere it does??
[G1 Android Development] mlevin:
Could someone point me to docs on how to format an SD card with Fat32 and ext2? I'm on Windows but I have a VM of Ubuntu available to use as well.

Thanks
[G1 Android Development] jdc4429:
Performance

I don't see any performance issues running off a class 6 sd card. I did see that also posted but I think that was not running from an Ext2 partition. I would probably not try moving the cache or data directory without a class 6 sd card. Moving the apk files should make little difference.

Jdc4429
[G1 Android Development] mark925:
Paragon Partition Manager for Windows will let you format the card fat32 and ext2. The link has a fully functional 30 day trial.
[G1 Android Development] themykel:
no performance hit that I have noticed.

Bohica, just type the lines that have the # in it - the next line that I sent you contains output that you will see in the CLI
[G1 Android Development] Beast84:
Agreed. I installed this VM also but I couldn't find a way to read the SD or partition it. If anyone has a step by step guide, hook it up please! Thanks
[G1 Android Development] themykel:
Its simple. On windows just download paragon partition manager and run it. Select the sd card and follow the prompts. It will ask you to reboot, go ahead and reboot and it will complete the process
[G1 Android Development] Beast84:
I tried this program before I downloaded the VM but it wouldn't work the way everyone said. It left my 2gig SD as read only. I tried running Paragon again & it gets stuck on the waiting screen. It won't go to the screen showing the drives
[G1 Android Development] themykel:
interesting. I did it via Paragon with my phone SD mounted to the PC via USB and when the PC restarted it finished in about 20 mins
[G1 Android Development] 18.4009:
Question: before I knew about this whole class 6 business I went out and bought a 16gig card. Unfortunately it is only class 2. Do I dare even try this with a class 2? would it be insanely slow or do you think a person could live with it?

Thanks for the input!
[G1 Android Development] themykel:
To slow IMO but you can always try it to see what happens.....wont hurt anything
[G1 Android Development] gunigugu:
Interesting.. I would've thought it wouldn't be possible to mount the data/data path onto a fat32 partition? Or am I wrong?

Also i purchased a 6gb class 4 card a while ago for my old phone.. what do you think will it be sufficient?

I'd rather not buy a new card, unless I was gonna get something substantial from it? I'd really like a 16gb class 6 card..
[G1 Android Development] LucidREM:
i really didn't know about the different classes either until i started reading about how to transfer the apps to the SD .. i had a 2G low class (probably 2) and i would definitely NEVER install apps to that card again .. very noticeable difference

i'd stick that 16G in a digital camera or something and get the higher speed for the phone
[G1 Android Development] 18.4009:
Thanks for the heads up. wish I could return it now lol (note to self, dont tear packaging apart and pitch it like a kid on Christmas)
[G1 Android Development] mlevin:
I have a 16gb card but it is only class 2 (do they even make a faster 16gb card?). Will the speed give me trouble? Am I better off getting an 8gb class 6?

Thanks

EDIT: Oh, I see some other replies about this, too. Just grabbed an 8gb class 8 off NewEgg for about $15.
[G1 Android Development] LucidREM:
you mean class 6?
[G1 Android Development] Preech2003:
TOSHIBA 16GB MicroSDHC Class 6 (Coming Apr, 2009)

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

**EDIT: A-DATA 8GB MicroSDHC Class 6 is now $19.99 Wit Free Shipping!!**

Your Welcome. Enjoy That ****.

-PREECH

P.S. TOSHIBA 16GB MicroSDHC Class 6 (Coming Apr, 2009)

Here's The Link:

http://www.toshiba.com/taec/news/press_releases/2008/memy_08_549.jsp
[G1 Android Development] neoobs:
Sadly I think you misread

microSDHC Memory Card

SD-C16G	16GB	Class 2	Jan, 2009

I don't see the Class 6 microSDHC just a Class 6 SDHC

But I did find this

http://www.eworldsale.com/pny-16gb-class-6-secure-digital-high-capacity-card_5697_26399.html

sadly it is 82.75 as of this posting
[G1 Android Development] LucidREM:
i noticed that too .. too bad

if you are looking for SD not MicroSD then here:

Transcend 16GB SDHC - Class 6 - $44.99
[G1 Android Development] chicojd:
I did this with the instructions that were posted Wednesday. All programs are now loaded from the 1GB nix partition that I set up on my MicroSD. I've still only used about 100MB!!! LOTS of space left for more programs. BTW, my phone has said 66MB available since I made the hack. I LOVE this one! I could probably install almost everything in the market and still not use every bit of space. The only problem is the number of apps that always run in the background, like the music app and calculator and messaging...:rolleyes:
[G1 Android Development] MontAlbert:
what is the size most people use for their ext partitions?

I finally have my G1 but no unlock code yet :( and am planning everything. I am assuming that 512MB would be heaps but you never know with all the new apps coming out when paid apps are available..... i have an 8GB class 6 card ready to go.... I always store a lot of music on my mobile as i use it as my mp3 player in the gym (not an issue here until G1 has A2DP though).

I EVEN INSTALLED UBUNTU ON MY LAPTOP (dual booting with XP) to partition properly etc!!!! I am actually fairly impressed with ubuntu- not as pretty as my xp (I run a modded version- visionXP) but very user friendly and a lot of useful things.....
[G1 Android Development] jdc4429:
500mb is plenty. You can always change it anyway...

JDC4429
[G1 Android Development] jdc4429:
I said EXT2 partition, not fat. That was why people had speed issues. You cannot run off fat since the permissions would not be correct. Running from ext2 you can copy the correct permissions allowing you to move anything.

JDC4429
[G1 Android Development] MontAlbert:
cool. And when i get a 32G or 16GB does the G1 know any difference if i just copy the partitions over using Gparted (just partitioning the new one with maybe a slightly bigger ext2 partition and a Fat32 partition and then copy everything directly over to each partition)?

ie. will all the programs/cache still run perfectly?
[G1 Android Development] Autarkis:
Yes, it will be the same as if you resized your ext2 with space from the fat32 partition on your current SD card. Just make sure that on the new 32 GB SDHC, vfat ist still partition #1 and ext2 partition #2. Behold, it's the beauty of Linux! :)

Make absolutely sure that you copy the ext2 partition's contents while preserving file attributes though!
[G1 Android Development] MontAlbert:
And how would i do that?

I am a total noob to linux- i do like it so far though... like it was written by users for users ;)
[G1 Android Development] Dayzee:
Not ready to take the leap myself on this, as I seem to have plenty of space having just moved the caches.

HOWEVER I did manage to partition my 8GB hcsd card from my XP PC using Paragon Partition Manager 9 - It was very straightforward and allowed me to choose the size of my ext2 partition etc.

SO it is possible to partition your SD card even if you don't have a linux or mac PC using that software.

Just for info, since I know most users have PC's with XP these days.

EDIT - the other thread on this has all this info i already - LOL So I'm behind - still if you check here there seems to be more up to date info on this

http://xdaforums.com/showthread.php?t=468959

Daisy xxx
[G1 Android Development] Autarkis:
If you do

cp -rp

you should be fine. :)
[G1 Android Development] kringer2501:
ok, so I went through and successfully got all my apps to run off my sdcard, but then my contacts wouldnt sync and I couldnt make any calls, I kept getting errors. I brought my phone back with my backup, but before I tried again, I was curious if anyone else had similar issues, and if they resolved them?
[G1 Android Development] prettyboy85712:
I've only got a 2GB card. How important is the size of the ext2 partition? I'm wondering what ratio I should use to split the card? Any thoughts?
[G1 Android Development] Autarkis:
The consensus here seems to be that 400-500 MBs are ideal.
[G1 Android Development] prettyboy85712:
Thank you. I will give it a shot this afternoon.
[G1 Android Development] mlevin:
oops, yeah, sorry for the typo!
[G1 Android Development] BobbyHill:
Yeah that should be plenty. I did about a gig on my 4gb card, which was probably overkill, but oh well.
[G1 Android Development] davil124:
can someone plesase help me with the first steps or help me with the process...im new with this hacking thing and i would highly appreciate if someone could help me because im lost

Nvm I got it 2 work nd its working like a charm thx
[G1 Android Development] bmj1086:
Those ARE commands....

What do you mean?
[G1 Android Development] nixxofugi:
no /sd when in the terminal on g1??

I did the above steps up to the reboot... after the reboot my phone is not mounting the /sd partition of the memory card... all i get is /sdcard... any ideas???
[G1 Android Development] LucidREM:
there are some things you MUST do:

make the /system writable

mkdir /system/sd

copy the modified files mountd.conf & init.rc

if these things are done then your phone will have the EXT2 partition loaded under /system/sd
[G1 Android Development] defe:
hmm

So I managed to screw this up, and now neither my phone nor my pc recognizes a card in my G1..if i do a factory reset will this bring everything back to normal? or perhaps just reinstall JF's RC33?
[G1 Android Development] LucidREM:
if the sd has the FAT32 / EXT2 combo then try the update.zip in my signature if you want .. it will apply the changes necessary to run apps from the EXT2 partition
[G1 Android Development] blueheeler:
URGH, URGH, URGH ...

And THANK YOU, THANK YOU, THANK YOU.

Yes, I was screaming that!

Thank you so much for the modded update of 1.41.

I have spent the past 3.5 hours trying to do it myself. I figured while wiping and updating to RC33, I would try to do apps->sd card as well. Things haven't gone all that well :( I have never had such problems, and I'm ok with Linux commands and terminals and such. Where I went wrong, I have no idea. But coming back here again for answers and reading every last post in this thread, I stumbled upon you post! Voila. Done deal. Thank you again. You should start your own topic with this. It will save a lot of people a LOT of time... including all of you experts... you won't be answering as many questions from idiots like me!
[G1 Android Development] blueheeler:
Oops

I guess I spoke too soon.

All looked well until I started installing apps.

They are being written to memory instead of the sdcard.

Any ideas?
[G1 Android Development] defe:
So I got the 2 partitions on the card. Put your modded update.zip in the fat32 partition, but when i try to install the update i get Cant mount SDCARD :update.zip Installation aborted.. any ideas?
[G1 Android Development] defe:
So I'm convinced that when i pulled the original init.rc and mountd.conf files from my phone I backed them up to a folder that ive since deleted. I screwed up the apps from sd card process and now my phone doesnt recognize the card. I cant do anything from the card, including any update.zip 's. Maybe if i can get a copy of those original files I can push them back and restore everything? Can anyone help me with this?
[G1 Android Development] beagz:
fix for my problems may help some

Well after many attempts and failures I disscovered my problem. When unzipping the mountd and init files Windows was changing the time/date stamp which made the files useless. So I just went inside the file and used copy and then pasted the files to the directory I wanted to use them. Hope this helps.
[G1 Android Development] jdc4429:
Here are the original files...

jdc4429
[G1 Android Development] 13chris13:
so can this be done on jf rc33 with multi-touch browser?
[G1 Android Development] MontAlbert:
so why isn't this thread a sticky and the other is? Is one of them wrong? I used this one and it worked great.
[G1 Android Development] jdc4429:
I would assume because they discuss the same issue and the other one was already stickied. I think this one is better though.. lol :)

jdc4429
[G1 Android Development] .PaNiNi.:
how do you reverse the procedures for data and cache on sdcard?

ever since i did that EVERYTHING force closes
[G1 Android Development] xxsomeone305xx:
Thats what im trying to figure out..

my phone slowed down so much it takes like a year after i click on a call for it to pass through
[G1 Android Development] Jakorf:
sounds to me like you didn't link the data folder properly.
[G1 Android Development] BGH80:
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)

ok I am in the middle of doing all this and have successfully gotten up to step 8. Problem is on my ADP 1.1 phone there is nothing in /data/app so the copy doesn't do anything at all. In fact there isn't anything in /data at all. All my apk files are /system/app.

Noone has mentioned this. Is it normal?
[G1 Android Development] bigl34461:
partition manager won't let me resize or merger my partitions. I have the trail version. are there any other free programs that will let me do this. I'm running windows xp
[G1 Android Development] bigl34461:
Nevermind i got it!!! :)
[G1 Android Development] shizenyasuya:
wtf?

okay so honestly where do we enter these commands and what exactly do we type? im sure it makes sense to people who already know what all the abbreviations mean and exactly what commands do, but for nubes such as my self, you may as well have turned me loose in a hay field with a lighter.... luckily this hayfield is one that can be re-flashed and all mischief corrected, but i want this to work and it seems like a reasonable thing do do, but whenever i try to "push" or "pull" things even in SU mode, i get access denied, or push not found or something like that i've tried many different ways with different syntax and im comming up empty handed. would it be possible to write out step by step something like the following

step 1, type

push /sdcard/mountd.conf /system/etc/mountd.conf

hit enter

step 2, type

pull /example/example.example

hit enter

step 3, type

command /example/example.example

hit enter

i might be asking alot, but this is driving me up the walls... also maybe i started off wrong in the so called "preperations" were never instructed to download the files, or where to put them... maybe thats what im doing wrong. but i think i read everything correctly, i just dont know how shell linux works. maybe that is the problem, but if you give us very simple breathe in, breathe out instructions, its harder to screw up. not that anybody is obligated to, it would just be very nice.

thanks so much,

tj
[G1 Android Development] cvenk:
WELL I have two Q?

NR.1

If you downgrade your G1, that make a ROOT, than UPDATE to Jxxxx make a SD card 2 partitons, and make apps to install on SD card.

EVERYTHING is fine,

Than google (HTC) gives you an UPDATE. (on your screen it reads UPDATE is available -)

If you update the whole RCxx to a new one, what will happen to your SD/APP situation.

Will it work like it used to, or you'll have to do all over again?

____________________-

NR.2

CAN for the love of god, anyone make a new UPDATE - that you can do all in once .

MAKE NEW UPDATE OF THE ROM AND in that update there is also SD/APPS instalations.

So you make just on update and you have it all.

Sorry if there is any missunderstanding.

(didnt start it yet with the ROOT UPDATE, SD/APPS - have the europian verison 123099)

Before WM Artemis with lots of ROM
[G1 Android Development] LucidREM:
so if i understand correctly .. you are looking for something like this:

http://xdaforums.com/showthread.php?t=480582
[G1 Android Development] tom93:
can someone actually make a real tutorial im not a total noob this just has no directions
[G1 Android Development] juangil:
so, if you already partition your sd card to FAT32 & EXT2, find JFv1.42_RC33_MOD from LucidREM and load it (rename it update) and you can skip the rest of the steps

check also this tut: http://xdaforums.com/showthread.php?t=468959

"remember to run the script" copy.sh app

you'll be at step 11 once you load jkrc33_MOD
[G1 Android Development] f4phantomii:
Has anyone attempted to keep the whole card as FAT32 and create a virtual ext2 partition file mounted via the loopback device?

I know there was some discussion about Google implementing this as a solution, but I was wondering if anyone had actually attempted it here yet.

It seems an ideal solution and would allow resizing of the ext2 "partition" without a lot of headache.