yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] russenreaktor:
Thanks it worked for me.... ...but Im not sure if ext2 patitioon should be primary

http://xdaforums.com/showthread.php?p=3483058#post3483058

...I made it primary and it worked...

$ 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, 66180K used, 2940K available (block size 4096)

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

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

/system/sd: 1033712K total, 5116K used, 1028596K available (block size 4096)

/data: 76544K total, 21760K used, 54784K available (block size 4096)

/cache: 69120K total, 1160K used, 67960K available (block size 4096)

/sdcard: 6172916K total, 588568K used, 5584348K available (block size 4096)

sdcard - 6GB

sd - 1GB

$ mount

rootfs on / type rootfs (ro)

tmpfs on /dev type tmpfs (rw,mode=755)

devpts on /dev/pts type devpts (rw,mode=600)

proc on /proc type proc (rw)

sysfs on /sys type sysfs (rw)

tmpfs on /sqlite_stmt_journals type tmpfs (rw,size=4096k)

/dev/block/mtdblock3 on /system type yaffs2 (ro)

/dev/block/loop0 on /system/modules type cramfs (ro)

/dev/block/loop1 on /system/xbin type cramfs (ro)

/dev/mmcblk0p2 on /system/sd type ext2 (rw,noatime,nodiratime,errors=continue)

/dev/block/mtdblock5 on /data type yaffs2 (rw,nosuid,nodev)

/dev/block/mtdblock4 on /cache type yaffs2 (rw,nosuid,nodev)

/dev/block/mmcblk0p1 on /sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0711,dmask=0700,codepage=cp437,iocharset=iso8859-1,utf8)

$ cd /data

$ ls -al

ls: can't open '.': Permission denied

$ su

# ls -al

drwxrwx--x 1 1000 1000 2048 Oct 5 07:41 .

drwxr-xr-x 12 0 0 0 Mar 18 17:31 ..

drwxrwxrwx 1 1000 1000 2048 Oct 5 07:41 anr

lrwxrwxrwx 1 0 0 14 Mar 18 17:30 app -> /system/sd/app

lrwxrwxrwx 1 0 0 22 Mar 18 17:30 app-private -> /system/sd/app-private

drwxrwx--x 1 1000 1000 2048 Oct 5 07:41 dalvik-cache

drwxrwx--x 1 1000 1000 2048 Oct 5 07:41 data

drwxrwx--x 1 2000 2000 2048 Oct 5 07:41 local

drwxrwx--- 1 0 0 2048 Oct 5 07:41 lost+found

drwxrwx--t 1 1000 9998 2048 Oct 5 07:41 misc

drwx------ 1 0 0 2048 Oct 5 07:41 property

drwxrwxr-x 1 1000 1000 2048 Oct 5 07:41 system

drwxr-xr-x 1 1000 1000 2048 Mar 15 12:15 tombstones

#
[G1 Android Development] :
Ive been struggling with this for three days, using paragon how exactly do you partition a card it says mines has been partitioned and showes the ext2 and the fat32 both as being primary but It wont show on busybox as my previous post above states, from there how do I go on to complete apps on sd card, it just aint working for me Im getting frustrated:(
[G1 Android Development] androidmonkey:
Since ext2 is a linux partition I would use a Live Ubunut CD to partition the card. This is the safest bet.
[G1 Android Development] :
I have read how people do it through paragon Id rather not download a 700mb file just to format my card, but thanks for the suggestion.
[G1 Android Development] androidmonkey:
If you have a good net connection it will download in 10-15 minutes. Worth the time knowing that method works :)

Also, having a Live CD is a good troubleshooting tool for future issues.
[G1 Android Development] :
Im at work on a dialup network if I start downloading I should finish by dinner time.....Friday.
[G1 Android Development] androidmonkey:
ah, i see.

Well there are many small linux distros. Puppy Linux is one, only 98MB

http://www.puppylinux.org/
[G1 Android Development] egyptianbman:
Excellent points.
[G1 Android Development] egyptianbman:
More than likely because you didn't have the partitions on SD correct. READ THE NOTE FIRST!

I think you're going to have to clear the phone. You might even need to re-install an update.
[G1 Android Development] egyptianbman:
Nope, I'm not seeing a "/system/sd" partition on your phone.
[G1 Android Development] xdavidn88:
Don't know how easy using LiveCD Ubuntu is... but there's no way it's easier than Paragon Partitioner...

I dl'ed it, Personal Trial version.

Inserted my G1 via USB.

Create partition.

Select sd card.

Choose size.

DONE!

That's it. Voila. Sd card partitioned into 2 parts.
[G1 Android Development] egyptianbman:
I ended up having to use Ubuntu. I'm not sure why, I installed Paragon on my work computer (new, running Vista x64) and it couldn't create the partitions correctly... kept on giving me some error. I think it had something to do with mounting... So I thought maybe it's because I was on an x64. Took it home to my laptop running Windows XP and had the same problem. I finally got tired of it and got Ubuntu who worked like a charm :)
[G1 Android Development] androidmonkey:
Yep, Ubuntu will work every time. Since EXT2 is a linux format, having Windows create it is a mixed bag. I tried creating windows partitions on my Mac awhile back and it was a disaster.
[G1 Android Development] All~G1:
Great work OP, wish this would of came out before hand. I did it the hard way last time. Fortunately I ran into an alternative.

If you are trying to partition your card DONT use your phone to do the partition. Get a CARD READER, it will save you alot of headache. For those of you that are having trouble with getting adb up and running there is a STICKY that runs the script through Terminal Emulator and reads the file off your SD
[G1 Android Development] androidmonkey:
I actually had trouble using a card reader...lol

On some other threads it is RECOMMENDED to use the G1 via USB to format the SD card.
[G1 Android Development] DeadBody79:
can you also make a file to automated move all the caches to the SD ?
[G1 Android Development] tubaking182:
at the op great job, i already did this in a script for my linux computer, mine set all my settings like installing .apk's from external sources and such, as well as play an mp3 when it has finished so if i'm in the other room i can hear the phone go off and know the phone is ready for use.
[G1 Android Development] vishurao:
sudo apt-get install gparted

sudo gparted
[G1 Android Development] arybicki:
Partition details that worked for me

The fat32 partition must be the first partition and a primary partition.

The ext2 partition must be a primary partition even if gparted complains. Going with extended partition did NOT work for me.
[G1 Android Development] arybicki:
I think that moving the browser cache will expose the sdcard to too many write cycles, IMHO. However, has anyone given any thought to moving /data/data to /sdcard/sd/data? That seems to have a potential for great space savings.
[G1 Android Development] Mikey:
To kadster007:

This is the only reason a person would transfer his app files to sd card and not sd card EXT2 partition.

Directions on how to transfer programs to sdcard partiotion1 will not be allowed on this forum.

This is your last warning.

One more post for the skully.bat file and you will banned, depending on my mood at the time

Have a great day,

Mike
[G1 Android Development] kadster007:
Napoleon Complex

What is the problem?

"Directions on how to transfer programs to sdcard partiotion1 will not be allowed on this forum."

What is this thread called....."HOWTO: Automated APPS to SD (EASY)!!!"

Explain to me your reasoning.....it makes no sense because that is WHAT THIS FORUM IS ALL ABOUT.

This forum states: "http://xdaforums.com/showthread.php?t=494758" partial app transfer to SDcard...

Why isn't that removed....

What is the difference in Backing up your Applications to the SDcard

"To kadster007:

Quote:

other means of avoiding payment, can be obtained." THIS IS NOT MY QUOTE.

You say that this is the only reason a person would transfer his app files to sd card and not sd card EXT2 partition...and that is illegal?

Geez...give a man some power and he wants to rule the world.

Transferring apps to SDcard (partition 1 or ext2) is for backup purposes ONLY (FOR ME THAT IS)....especially for those that constantly flash their phones.

THIS IS FOR BACKUP PURPOSES ONLY.....not warez. I am not trying to cheat or lie or do anything malicious other than try to help and make things easy.
[G1 Android Development] Mikey:
I'll make this short and simple.

You won't get it any other way.

You can NOT inform people on THESE forums on how to copy paid apps to the sdcard.

When you see:

From the thread you posted, It is actually copying apps to the EXT2 partition of the card.

EXT2 is formatted to spoof the phone into thinking that is actually part of memory.

You in other hand, are informing people on how to copy the apps, system or paid, to the FAT32 partition of the card. Which is accessible thought your computers browser, i understand EXT2 is accessible using a linux based OS. Theres a loop hole though, we are trying to spoof the phone, to gain more memory.

Which brings me back to the quote i gave you a few threads up.

I understand you want to help people copy" their apps for backup.

On, in, these forums we try to protect the forum and users, from liability and we don't believe in piracy.

What you do behind closed doors, is your business.

There are programs on the market, direct them to use those.

Keep your hands clean, in PUBLIC FORUMS, like these.

Mike
[G1 Android Development] androidmonkey:
@Mikey1022

Are the apps like ASTRO and aTrackDog doing something illegal by allowing you to backup apps to the FAT32 partition? I am not disputing the fact, just curious.
[G1 Android Development] Mikey:
Technically, i dont care.

I care about what is presented on these forums.

Understand? :rolleyes:
[G1 Android Development] egyptianbman:
I actually tested that because I was curious of whether my app (4Ever Fall) could be pirated or not.

Developers have the option to:

If the developer selects off, I found that backing up using one of those apps and then recovering from the app after uninstall/refund worked.

On the other hand, when I had Copy Protection turned on, the recovery of the app failed to install which made me VERY happy :)
[G1 Android Development] Stringbeanz:
Hey guys. I downloaded Android SDK, successfully installed and edited the Environment variable to the path of

C:\Documents and Settings\Owner\Desktop\Android SDK\android-sdk-windows-1.1_r1\tools

I downloaded the tmp.zip file and unzipped to

C:\Documents and Settings\Owner\Desktop\tmp

Started running

appsToSD1.bat

followed the instructions and got this in the cmd

::This file will set up saving all apps and running them from the sd card.

::Make sure you have your sd card formatted. If not, this will be unsuccessful.

::Make sure you have c:/tmp/old (should be empty)

::and c:/tmp/new (with the modded mountd.conf and init.rc)

Press any key to continue . . .

error: device not found

error: device not found

::Backed up phone's mountd.conf and init.rc files (chk to ensure they're there)

Press any key to continue . . .

error: device not found

error: device not found

error: device not found

::Created the /sd folder. (You should see it in the list above).

Press any key to continue . . .

error: device not found

error: device not found

::Pushed the modified mountd.conf and init.rc files to your phone

::replacing the old ones that you should have ensured were backed up ;).

::Reboot your phone.

Press any key to continue . . .

Now when it said formatted did it mean i have to format my SDcard to FAT32 again(it's currently FAT32)?

If so, does that mean i will have to re-partition my SDcard? I currently have my card partitioned at 2.5G FAT32 and 1.5G ext2.

If i reformat my SDcard that doesn't wipe my Modded JFv1.42_RC33 or Hard SPL does it? Sorry I'm very green to Linux and Android. But i will be studying it to start making apps.

Just wanted to get input on this.

Thanks!

~Stringbeanz~
[G1 Android Development] modem_over:
Mikey1022 you are being a total douche. you are trying to say that people are only alowed to transfer apps to certan partition types ? what you are saying is not in any way part of XDA rules... Anywhere. Are you just bored and looking for something to ***** about ? oh, and there are apps that let you read an ext2 from within windows so the "security" breach is still there. or one could just use any of the file managers that can copy and paste to move them... oh **** am i gonna get in trouble for making that really obvious statement ?
[G1 Android Development] Mr_dev:
Worked fine for me. I used Linux Mint and gpartd for the partitioning and just to reiterate - fat32 primary ( I went back into xp and copied my files back onto it to make sure it was readable)

- ext2 primary

and run the batch file.

Just out of interest, when a new jf image is released all I have to do is flash it and rerun the batch file to update the 2 files is that right?
[G1 Android Development] Mikey:
Whether im a douche or not, maybe i was in a bad mood, not feeling well, i dont know.

I do know that you can take 3-days to think of a different name you can call me.

Respect all mods and members. Look that up in the rules.

Name calling is not cool.

Name calling a mod, Gets you a vacation.
[G1 Android Development] egyptianbman:
Easy problem.. you don't have the sdk set up correctly...

Go here:

http://developer.android.com/sdk/1.1_r1/installing.html
[G1 Android Development] LucidREM:
so is calling you "Exalted One" out of the question? LOL
[G1 Android Development] webgrafix:
OK... NooB Question... Please help!!!

I ran through this... and now most of the apps that were installed on my phone are gone.

My assumption is that they were successfully moved to the SD card.

But... how to I run them now? How do I get them back?

Thanks for any help.

Web
[G1 Android Development] egyptianbman:
Weird. Just to double check...

You had the two partitions created right?

One thing you can try is to connect the sd card to a linux computer (running linux or a livecd of ubuntu or something). When the sd loads, you'll see the two partitions. Check those folders in there and see if the apps are in there.

As a quick attempt to fix, you can always try to re-run the file. I'm not an expert, but I'm pretty sure that nothing is deleted without being replaced. Therefore, if the problem is with the link (which is most likely), it may work if you run through it again....
[G1 Android Development] kingblind:
thank you.

very cool mod.. thanks.
[G1 Android Development] modem_over:
Good to see you half halfheartedly attempted to excuse your behavior by saying you had a bad day. however in the continuation of your post you exposed more of your ignorance bye claiming i "name called" you. stating that you are acting in a particular manner does not assign that title to you. their is a difference in saying "you are being" and "you are". or were you just having a bad day when you read what i wrote? Silly emotions.
[G1 Android Development] tubaking182:
do you really think it is wise to piss off our mods? he only suspended you, you could have left it alone but instead you got back from "vacation" and pushed again. i hope you get banned because peopke need to realize that mods are mods and the rest of us just have to follow the rules to avoid vacations. he earned his place as a mod and you are still a n00b, shut up and think before you speak
[G1 Android Development] modem_over:
hey now... that is name calling and goes against what the mod was saying in his ban post directed to me. maybe you should think a little bit more about what you are saying seing as how you violated the rules in your lecture.
[G1 Android Development] tubaking182:
difference is you aren't a mod, i'm not gonna get banned for calling you a n00b, you calling a mod a douche should have been a ban instantly but you were only suspended. shut up and be happy you are still a member and don't have your ip blocked. n00b
[G1 Android Development] richpadg:
How do I know it worked

How can I tell if the apps are installing on the SD? I followed the instructions and it seems to have worked, but when I install apps, my phone's memory still goes down. Did I do something wrong?

Thanks

Rich
[G1 Android Development] egyptianbman:
C:\Users\LPOAAdmin>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.3M 224.0K 100% /system
/dev/block/loop0 1.5M 1.5M 0 100% /system/modules
/dev/block/loop1 3.1M 3.1M 0 100% /system/xbin
/dev/mmcblk0p2 1.4G 148.2M 1.2G 11% /system/sd
/dev/block/mtdblock5 74.8M 48.7M 26.1M 65% /data
/dev/block/mtdblock4 67.5M 7.4M 60.1M 11% /cache
/dev/block/mmcblk0p1 13.4G 2.7G 10.7G 20% /sdcard

This is a breakdown of my phone's memory.

/dev/mmcblk0p2 1.4G 148.2M 1.2G 11% /system/sd

That tells me that I have 1.4 gigs partitioned for apps and cache. I'm currently using 148.2M (so it's successfully working).

/dev/block/mtdblock5 74.8M 48.7M 26.1M 65% /data

That is where the extra stuff is stored (by default, your apps, cache, db's for programs etc.) We've moved the apps to the sd, there's tutorials to move some caches to sd, but still there are some stuff that is stored into that directory.

Basically the answer is, it may be working... but some space will still get used for other stuff.
[G1 Android Development] richpadg:
Ok, I did that and it does show that some space is being used as in your sample. Now, when I install new apps, will it automatically go to SD or will I have to move them every time?

Rich
[G1 Android Development] androidmonkey:
It would be nice if someone created an app that displayed what busybox command shows in a nice graphic ui.
[G1 Android Development] egyptianbman:
Yup, the script links your apps directory to the partition on your SD... therefore, that's now considered the "apps directory" ;)
[G1 Android Development] mixpix405:
I saw one person in this thread had his apps "disappear" or whatever - and that's along the same lines as my question.

When I do this, will I lose ANYTHING? Meaning, my settings, my themes, my apps, etc? Or after the process, will everything look the same, but apps will be on the SD card and I'll have more space available?

Also, when I go to settings >> sd card & phone storage, will the "available space" under "internal phone storage" reflect the storage I have setup on my EXT2 partition?

I've already got the EXT2 partition setup, and everything - ready to try it... would just like to know what to look for / what to expect after going through with it...

Thanks!
[G1 Android Development] mixpix405:
...anyone?
[G1 Android Development] mixpix405:
ok - answered my own question by biting the bullet and going ahead without an answer.

No - you don't lose anything. The ONLY difference is that when you initially go to the "my downloads" section in the market, EVERYTHING says "free" or "purchased" - none say "installed". Not a problem. Just to avoid the market not alerting me to app updates, I went thru and re-installed everything that I already have... just in case.

Thanks a TON for this automated procedure. Saved loads of trouble and time!
[G1 Android Development] egyptianbman:
Hey, sorry I didn't get a chance to let you know that. I'm happy all worked out for you. I have to admit the fact that the market cache gets deleted is truly annoying because I easily have 100+ apps that I have to re-download lol
[G1 Android Development] tekthebeast:
Sorry noob question. Either im really stupid or something because I cant find c:/tmp . lol.. dont flame me please.. -__-
[G1 Android Development] mixpix405:
haha - You extract the zip file to C:\

The contents of the zip file is a folder called "tmp" therefore, you would have C:\tmp and can follow steps from there.
[G1 Android Development] stogchris81:
you have to create the file C:/tmp
[G1 Android Development] jlaholton:
I got as far as rebooting the phone, then got stuck on the G1 page!:( Apps to sdcard is one of the main reasons to get root, and I can't figure it out to save my life.:mad:
[G1 Android Development] prash:
THANK YOU for this easy to use method of moving apps to sd card. I only point to this method from now on in making things easier for the root users.
[G1 Android Development] KPeriod:
Maybe I'm not understanding this correctly but you got stuck booting up the phone? It should take longer the first time you do this after you have moved the apps to the EXT2 partition (depending on how many apps you have). When I first did it after wiping and installing the Magic 4.5 rom, I had about 120 apps in my EXT2 partition and after using the script in this thread to redirect my phone to this partition my first bootup took about 5 minutes at the android g1 page.

Just letting you know in case you thought it got stuck but it really didn't.
[G1 Android Development] jlaholton:
Hmmm? Maybe you're right. I'll try it again. I'll let you know how it turns out.
[G1 Android Development] jlaholton:
Well, I waited for almost 20 minutes at the G1 screen. Nothing. Now what?? I appreciate your help. I have 1.42 r33. I rechecked to make sure I had the ext2 on Paragon, and it's there, so.....?
[G1 Android Development] egyptianbman:
That's strange. I think mine did that when I first tried to get all the apps on the SD. I found that my problem was that the ext2 partition was not set up correctly. Both partitions have to be set up as primaries and the fat partition has to be first.

you can probably still run adb shell commands from your computer with the phone connected via usb even though it's on the g1 screen... try running "adb shell busybox df -h" you should see the directories that the .bat file asks for.
[G1 Android Development] antempire4:
If you are having trouble partitioning your sd card you can buy them here:

http://androidcommunity.com/forums/showthread.php?p=167347#post167347

and here:

http://androidaccess.com/index.php?topic=69.msg192;topicseen#new
[G1 Android Development] dashed:
Will this work on magic build 4?
[G1 Android Development] daveid:
Thanks for this, made the process very simple, all I had to do was format/partition my card, and at the end of the script move the dalvik-cache as well. Running great now - 60MB free on /data.
[G1 Android Development] jigdagod:
When I ran this file it backed up my original 2 files and went through all the steps but I didn't see the last file it was asking for. After I couldn't get it to work I tried to mount my sd to my pc and it won't let me. I also had icon apps that I downloaded but they say they weren't there. Like linda file manager. So I tried to download it again and it also won't let me install any files from the market. After downloading a file and it tries to install my phone reboots everytime, is there a way for me to fix my phone. Since I can't access my sd through my pc or on my phone I couldn't flash my phone back to a different JF. Could someone help me with my issue.
[G1 Android Development] jawash22:
I'm on Haykuro's 5.0H apps to sd build and it says error:device not found when I hit enter:confused:
[G1 Android Development] madetosink:
Ummm

So I followed Vlemmix's tutorial on formatting sd card here http://xdaforums.com/showthread.php?t=500387&page=12

After setting up the SDK, and running through the .bat file...which by the way said it went through properly, now my phone reboots after trying to install an application. Not sure why...hopefully you guys can help!

Thanks,

Made

After running through the process again...I'm noticing that it /system/sd isn't being written on mmcblk0p2. The partition is there when I check through fdisk /dev/block/mmcblk0p2....