yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] LucidREM:
did you type exactly "cat lucid.txt > /system/bin/lucid" .. you can't chown something that doesn't exist .. also .. if the lucid script already exists you can just type this:

#busybox cp lucid.txt /system/bin/lucid
[G1 Android Development] jmotyka:
Thanx lucidrem, lol no I didn't type it exaxctly like my last post lol I got it to work. Me and my typos. But anywho this works great thanx a ton. The only issue I'm having now is having to restart my phone multie times in order to boot. I just don't turn it off now.
[G1 Android Development] eleme:
Lucid, this is uber-awesome but I have a small request. Can you either A: make an update.zip that only contains the changes needed (to make the file smaller for d/l) -or- B: put you modded JF 1.5 build on a link that supports resuming? I've only got a craptastic EDGE connection for internet so I'm limited in bandwidth and I consistantly get disconnected when trying to d/l the JF build.

Thx. ;)
[G1 Android Development] LucidREM:
that would probably be something for JF or the other guys .. i'm mostly dealing with making apps2SD linking easier for people .. the OTA updates are smaller because "T-Moogle" is pushing out patches for existing files .. when the update.zip comes from JF it contains the whole image .. not really sure how we could make it smaller .. might be able to look into segmenting the archive file and then piecing it back together (ideas? anyone?)
[G1 Android Development] LucidREM:
have you tried the "-c" option? example:

$su

#cd /sdcard

#mv update.zip update_old.zip

#wget -c http://files.lucidrem.us/jf/1.50/ADP1.5/REM2/update.zip

the "-c" should assume that any existing update.zip is the beginning portion of the file and should be resumed .. only use the "mv" command to eliminate any existing update.zip file that is NOT the one you are resuming
[G1 Android Development] Ernsty:
I already have jf1.5 without your mod so I downloaded lucid.txt to sdcard/tmp then copied it to system/bin/lucid and chmod command worked but then:

chown 0:2000 /system/bin/lucid

No such user '0:2000'

I'm a novice when it comes to linux so the answer is probably simple... Please help.

Thanks!
[G1 Android Development] LucidREM:
might just work with chown 0:0 /system/bin/lucid .. i thought all the uid for G1 was set to 2000
[G1 Android Development] Ernsty:
I figured it out. I typed ls -l /system/bin and a lot of the files are owned by 0:2000 so I was like what the..? Then I thought hmmm. what if...

busybox chown 0:2000 /system/bin/lucid

no errors. Then I typed:

ls -l /system/bin/lucid

and got:

-rwxr-xr-x 1 0 2000 10273 May 20 17:53 lucid

So it worked!

Maybe I need to fix busybox or is that normal?
[G1 Android Development] Ernsty:
BTW thanks for the scripts!
[G1 Android Development] Ernsty:
Now there's a new problem...

I typed lucid update and got

[: missing]

[: missing]

etc...

wouldn't stop so I had to pull out the batt.

Then I tried lucid lucid and the same thing happened.

So for now I'll assume since I just downloaded the scripts that they're the most recent.
[G1 Android Development] LucidREM:
not sure how normal that is .. mine worked without the "busybox" in front
[G1 Android Development] Tabasco 1tx:
no icons

Hey every since i moved my apps to the sdcard a few of my apps don't have their icons they just have the default icon. Like bejeweled, pacman, & astroid etc. Any ideas?
[G1 Android Development] LucidREM:
do they still run? sometimes uninstall/install will reset parameters that get messed up .. see if that will fix it .. worked for me
[G1 Android Development] Tabasco 1tx:
no icons

Hey every since i moved my apps to the sdcard a few of my apps don't have their icons they just have the default icon. Like bejeweled, pacman, & astroid etc. Any ideas?

********PLEASE DELETE ACCIDENTALLY DOUBLE POSTED*****************
[G1 Android Development] Tabasco 1tx:
Yeah they run, but they are paid apps, so if I uninstall and re-download won't they recharge me for downloading them again?
[G1 Android Development] LucidREM:
um .. no .. once you pay that's it .. they are marked "Purchased" in the market and you can download again
[G1 Android Development] Tabasco 1tx:
Sweet. Thanks. I know that sounded like a stupid question but I wasn't sure if They actually was able to keep track of what I paid for. Thanks
[G1 Android Development] eleme:
The link in this post is different than that one in the OP (maybe there's a redirect thats not allowing the resuming). I'll give that a shot and see what happens.

As far as making the archive smaller, I'll assume it can be done in the same way that themes are applied; you can change a theme without having to d/l the whole rom (making a ~40mb archive into ~10mb). I'm not sure which files are being changed/modified so I can't give any help there. Just a thought thought.

UPDATE: That seemed to do the trick, thanks a ton!
[G1 Android Development] mhsbrian:
Okay, so I had my apps2sd setup with your previous instructions before the newer ones. Since this was a revised way of doing it, I figured okay cool I'll just redo it. Well now instead of having 73mb free memory I have 62.

All my apps are on the SD I think still because I wiped after the flash and they all appeared on my phone after doing your few lines of commands.

Should I have wiped my ext.2 partition ?
[G1 Android Development] LucidREM:
what did you redo? sorry .. just not sure what steps you did
[G1 Android Development] mhsbrian:
I wiped my phone flashed with the 1.5 ADP you have in your list then applied:

Then all my previously installed appz before the wipe just popped up after a reboot, memory went from 52 to 61 also instead of the 72 I had before.
[G1 Android Development] LucidREM:
ok .. the intent of the "wget" stuff is to get the script file without wiping/flashing the phone .. i'm not sure the difference in available space .. sometimes that goes back to normal .. check the SD

#ls -l /system/sd

and whatever you had already moved can be re-linked .. ie:

#lucid app link

#lucid data link

#lucid dalvik link

that might fix it
[G1 Android Development] kid2escobar:
chown ????

when i type in chown cmd it says user not found ..... i tryed with 0:0 and 0:2000
[G1 Android Development] LucidREM:
there may have been some change from 1.1 to 1.5 .. try "busybox" in front of the command .. i'll have to look into it as the US 1.5 has not come out yet
[G1 Android Development] mhsbrian:
Well I did that and rebooted, now its hanging at the G1 screen.

I'll do another wipe and see what goes on here.

**EDIT**

Okaayyy, now im frightened. I did a wipe and still not booting. I just tried to relflash and it says:

E:Cant mount /dev/black/mmcblk0p1 (or/dev/blockmmcblk0)

E:Cant mount SDCARD:update.zip

Installation aborted..

help !

*EDIT**

Fixed it, I reseated battery and my SD card and it booted fine..After the wipe of course.

I'm not gonna screw it with this till I get can home. I think I need to wipe my SD ext2 partition of all the garbage its had to go through since I re-did everything, I believe thats the problem because Im the only one getting this issue.

Thanks !
[G1 Android Development] Strapt:
ok .. weird ... I used this before and worked fine .. but now for some reason everytime I try to redo it after a wipe and a reinstall of the JF1.42MOD the copy.sh app will bring all my apps back BUT when I run the copy.sh data it freezes my phone and when I reboot the phone it loops at the android screen. i have used this before for quite some time and worked great. Any ideas as to why it would be doing that now? is there something on the card thats already there that I should remove or something? any help would be great .. would really like to get this back to working again
[G1 Android Development] mhsbrian:
These methods are sensative I believe. I think you may need to do the same thing I believe I'm gonna have to do.

Wipe your SD, re-create the fat32 and ext2 partitions and then redo all steps.
[G1 Android Development] LucidREM:
you should be using "copy.sh datalink" if it exists so it does not copy over the existing data on the SD .. however .. if there is an error in your data on the SD you will want to "rm -r /system/sd/data" before running the script

i am updating the script file (if you look on the first post) so it will test things before running commands and hopefully eliminate all of these problems
[G1 Android Development] LucidREM:
you don't need to delete your partitions unless there is a filesystem error
[G1 Android Development] Strapt:
ok thanks for that .. so with the way it was I tried the rm -r /system/sd/data and I got that it cannot remove due to directory not empty on all three lines ... whats that mean and what do I need to do? also it said rm cannot stat '/system/sd/data/com/android.browser/databases/webviewcache.db-journal': stale NFS file handle

oh and IF I end up re-doing my card partitions will that hurt the phone at all since the codes in the phone are saying move all to sd?

note when I did the copy.sh datalink .. it said nothing was done and says choose copy.sh app copy.sh data
[G1 Android Development] mhsbrian:
Same issue I had, after I flashed the new update the A,b,c commands he put it and it said they didn't exist then I did the non-flashing method and everything went and thats when I notcied I had 61mb memory instead of 72 like I had before.

That was a bit of information I forgot to input, sorry for that.
[G1 Android Development] LucidREM:
the new script is "lucid" and no longer "copy.sh" .. as for the stale NFS .. it's been a fairly common problem on the SD to see .. i'm not sure the fix because i haven't experienced it .. did you use Paragon to partition??

so something in the browser file won't let you delete it .. try this:

#mv /system/sd/data /system/sd/data_old

#copy.sh data

if it allows you to do this you will be placing the corrupt data elsewhere .. but as i said .. it's a common problem and other people have fixed it
[G1 Android Development] Strapt:
ok so here is the deal .. I tried to take matters into my own hands (trial and error .. im sure you can appreciate that lol) and I just redid EVERYTHING... I formatted the micro card and I reinstalled the regular jf1.42 and I have loaded your MOD on my card and am about to use the SDPLIT to partition my card again as I did the first time .. which is the only working way I have found.

So anyhow .. when I do complete this ... what scripts do I need to run to have a free 73 mb free?? I have done this before using your way and the memory always goes down .. I had to combine this method with all of marcusmaximus manual scripts to have the permanent 73 free... I may be missing something .. which is why I am asking.

so you mention the codes are no longer copy.sh and are now lucid ..

so does that mean lucid app and lucid data?? what about that lucid datalink? or are they something else AND what other codes do I need?? I do want to move dalvik-cache and data and apps and the whole nine yards :)

I am bound and determined to get this right!! thanks for the help man I really DO appreciate everything you do!

oh!!! IMPORTANT .. I need to know what does a wipe and reinstall erase?? does it make all the codes disappear or are they still there and only way to undo them is run an undo script?? and if so what is the undo script .. I did read MANY pages of this thread and these are the questions that I could not find the answers too .. I know this is a lot .. but please help :)
[G1 Android Development] LucidREM:
the wipe (ALT+W) deletes /data .. flashing the update.zip file deletes /system .. so on my first post there are instructions to download the lucid.txt file into any build out there .. if you type "lucid sdsplit" it will download MartinFicks script for you .. if you type "lucid" it will tell you the valid commands .. ie: lucid app sd .. you can now type "lucid update" and it will update the script to the latest version of code

as for 73M free .. the unionfs method might be your best bet .. it is not compatible with symlinking .. if /system/sd/data exists it will be deleted .. if a symlink exists within /data it will be deleted .. so i am far more comfortable myself with the symlink method and stick with only 50M free .. since that's way more than enough

feeling brave? try the new SPL for PVT phones and get an extra 30M
[G1 Android Development] iso67:
help! I'm missed up now!

I have a new G1, a second one! for the first one I installed the jf 1.5 mod by lucid with the various lucid command (lucid app....), and everything worked fine!

but now with the new g1, which is still un-rooted, I have to start from scratches. So what I should do? Should I use the new commands reported in first page, or the old 9 lucid... commands are just fine?

I'm confused now!:confused::o

thanks
[G1 Android Development] Strapt:
Hmmm ok so I'm trying to install that lucid.txt and its not going well. When I do the first line it gives me a lot of text with options and then when I get to the busybox cp lucid.txt line I get cannot something ... read only file
[G1 Android Development] mhsbrian:
I have a question for you guys, I want to erase ALL the data out of my ext2 parition on my phone but I don't have a sd reader available right now where I'm at.

Can I do it through the terminal ?
[G1 Android Development] LucidREM:
yep

that would be the short answer
[G1 Android Development] mhsbrian:
What would be the long answer ? If its not that too troubling of an effort. I don't mean to pester anyone with my ignorance to command line.
[G1 Android Development] LucidREM:
the SDSPLIT would really be the best option to totally wipe it out .. if you can delete things thru Terminal you can preserve your partitions .. ie:

rm -r /system/sd/data

http://xdaforums.com/showthread.php?t=500387
[G1 Android Development] iso67:
:o

I'm sorry.... but I'm stack on my new g1..... I'm going to un-rooted it but after that I have to load a new fw and I like this, but I'm confused about the commands to input: the ones reported since yesterday on the first page, or the old 9 lucid (apps, data, davlink....) are just fine?

moreover what is the lucid.txt? where I should put it?

thanks
[G1 Android Development] LucidREM:
the codes on the first post show you where to put it:

$su
#mount -o rw,remount /dev/block/mtdblock3 /system
#mkdir /sdcard/tmp
#cd /sdcard/tmp
#wget http://files.lucidrem.us/jf/system/bin/lucid.txt
#busybox cp lucid.txt /system/bin/lucid
#chmod 755 /system/bin/lucid
#chown 0:0 /system/bin/lucid
#lucid

and you can just type "lucid" and it will tell you the valid commands .. ie:

#lucid app sd // this moves the /data/app + /data/app-private to /system/sd
[G1 Android Development] iso67:
thanks, really thanks a lot!

so after I install the mod adp 1.5 Jf I have to input the above command? do I'm right? and I don't have to use the old lucid command?

but now something changed: this morning my uk G1 received the OTA upgrade and I accepted! my phone has nor the nuewst radio, the 1.5 firmware with build number CRB43? what is it? but my phone is still unrooted, so, now what I should do? downgrade to RC7, rooting the phone and installa "your" fw?
[G1 Android Development] LucidREM:
those commands can be run from any build .. you don't need to download one of mine .. there is not root'd 1.5 other than ADP1.5 at the moment .. download any root'd build and run those commands and you will have the "lucid" script available to automate the symlink method of apps2SD
[G1 Android Development] iso67:
so those are "universal command"! are they working also with dude's?
[G1 Android Development] LucidREM:
if dude's build support the symlink method then yes .. i think he's using the unionfs method so the a2sd.sh file would need to be deleted first .. i am going to be building in a script to let people switch from symlink->unionfs->symlink etc .. but i haven't done that yet
[G1 Android Development] Strapt:
ok im still having issues running this to get that txt file stuff you were talking about

$su
#mount -o rw,remount /dev/block/mtdblock3 /system
#mkdir /sdcard/tmp
#cd /sdcard/tmp
#wget http://files.lucidrem.us/jf/system/bin/lucid.txt
#busybox cp lucid.txt /system/bin/lucid
#chmod 755 /system/bin/lucid
#chown 0:0 /system/bin/lucid
#lucid

the first line of code give me a lot of text that says Usage mount [flags] DEVICE NODE [-o options.more.options]

mount a filesystem. File ssytem requires /proc be mounted.

and then it give me options for -a,-r,-t,-w and then the -o options too

at the bottom it says that there are even MORE flags that are specific to each filesystem you`ll have to see the written documentaion for those filesystems

is that normal for the first code??

the second line

mkdir /sdcard/tmp seems to work .. no errors or text

the cd /sdcard/tmp seems to work too

the wget http://files.lucidrem.us/jf/system/bin/lucid.txt downloads great

the busybox cp lucid.txt /system/bin/lucid then it says" cannot create '/system/bin/lucid' : Read-only file system "

and thats where I stop ... any ideas???

test rw,remount

rw, remount

rw , remount

rw ,remount
[G1 Android Development] Strapt:
never mind ... im retarded .. apparently there is NO spaces in that rw,remount :( so wow .. looks cool

so what exactly of these codes im looking at do I need to move in order to have the permanent 73M free on the phone??

lucid app sd

lucid data sd

lucid dalvik sd

is that all the codes that I use for a permanent 73 free?

ah hell im trying it ....
[G1 Android Development] LucidREM:
if you can't mount the system "rw" then you can't create the file "lucid" .. i'm not sure what's changed in 1.5 that causes these problems
[G1 Android Development] LucidREM:
well .. that will pretty much get you the maximum space free that symlinking allows and still have stability
[G1 Android Development] Strapt:
it was my fault .. if you see the aboe post .. I am actually running the JF1.42MOD from your first page there

so after running the lucid app sd, lucid data sd and the lucid dalvik sd I now have 72MB free... not sure how permanent it is .. but im gonna find out soon .. I have to re-download and install all my apps that I had up until yesterday .. oops
[G1 Android Development] Strapt:
ok I got to ask you ONE more thing

I last used marcus maximus codes in his manual way script which included

busybox cp -a /data/app /system/sd/
busybox cp -a /data/app-private /system/sd/
busybox cp -a /data/dalvik-cache /system/sd/
busybox cp -a /data/data /system/sd/
exit
exit

and all of this in recovery terminal

mount data
rm -rf /data/app
ln -s /system/sd/app /data/app
rm -rf /data/app-private
ln -s /system/sd/app-private /data/app-private
rm -rf /data/data
ln -s /system/sd/data /data/data
rm -rf /data/dalvik-cache
ln -s /system/sd/dalvik-cache /data/dalvik-cache
reboot

all of this alone did NOT keep me at a permanent 73MB free ... not until I combined it with your method .. meanning:

I downloaded your JF MOD and ran marcus codes above and then ran the app2sd app and then your old copy.sh data and copy.sh app. after that is when I had the permanent 73MB free no matter what I downloaded or browsed online.

so the question ... whats the difference?? is there something of his or yours that the other does not have or move?? Im guessing that there has to be something different due to it not working until I combined them.

and IF there is something different ... since I ran your codes only ... what would I need to run of his to complete this? if anything? thanks again ... for the help!!!
[G1 Android Development] LucidREM:
if you watched the script it should have echoed every one of the lines he had for manual entering .. the script does it so quickly there is almost no time between lines .. the reason for recovery terminal is that programs are not trying to run while they're being moved .. it should be exactly the same
[G1 Android Development] doctharock:
Lucid, hopefully you can help me out. I tried to upgrade to the JFv1.50_ADP1.5 from JFv1.42_RC33. I installed the new recovery and the new radio first. Then ran the adp upgrade. It is now stuck at the android loading screen. If i go back and reinstall the JFv1.42_RC33 update it works fine. I am trying to avoid wiping the phone if I can. Any thoughts as to why this is happening? Thanks for your expertise.
[G1 Android Development] LucidREM:
could be the recovery image .. try going to JFv1.43_ADP1.1 first and then go to the 1.5 .. that may help you .. otherwise do you have /data/app + /data/data on the SD? that's my only other guess .. but i would try the 1.1->1.5 way first
[G1 Android Development] doctharock:
I tried what you said but had no luck. Did a wipe and the 1.5 installed no problem. Not sure what the problem was, but I appreciate your help and quick response.
[G1 Android Development] doctharock:
Sorry for the newb question, but do i need to type in the lucid app and then the lucid undoapp? Or just the lucid app?

so should it be like this:

#lucid app

#lucid data

#lucid dalvik

or like this

#lucid app

#lucid undoapp

#lucid data

#lucid undodata

#lucid dalvik

#lucid undodalvik

Thanks again!
[G1 Android Development] hahajoker:
If anyone could help I would greatly appreciate it. I done all the steps and have had a problem when entering #chown 0:0 /system/bin/lucid" it gives me an error saying user 0:0 does not exist. I continued anyway after not finding any solutions online. Then when entering the "lucid app sd" it says "nothing was done" and "/system/app/sd is FOLDER". When i enter the other prompts such as "lucid data sd" it seems to work, it only fails for prompts ending with sd. Please help me on this one.
[G1 Android Development] Land Of The Trill:
I don't understand why we have 4 to 5 people doing mostly the same stuff just in there own versions with a few minor changes such as them deciding to incorporate something over from another build. Don't take it the wrong way though cause we all love you guys and the time and effort you spend making our lives easier.

I'm just a bit confused and doesn't Dude and Jf already include this without all the extra steps cause I clearly see system/sd and I just have to make sure my card is partition but bottomline I know what to do so am I missing something?
[G1 Android Development] LucidREM:
first of all .. you probably haven't read all the posts or seen all the revisions .. back before ADP1.5 was coming out .. back before Dude and Haykuro put their stuff out .. there was only JF .. and his build had to be modified to support apps2SD .. so you could manually do it .. or use my script that types all the manual stuff for you

secondly .. for "different" stuff .. it's just a different way of doing things .. my script is strictly an automated entering of the commands so you don't have to type a million things like "busybox cp -a /data/app /system/sd" etc .. and all the commands that go along with it .. for me personally i am hesitant to trust other people to control my phone .. so i automated the steps to move files back and forth from phone to SD .. this is my script .. i use it for my personal use .. i simply put it out there for anyone to use if it suits them

so no .. no offense here .. but you have to understand the whole picture
[G1 Android Development] LucidREM:
this is a list of available options .. if you download the latest lucid.txt file from the first post then type "lucid" and it will show the available options .. i don't want to seem rude but i have repeated myself in this thread many times

the "app" option puts the files on the SD .. the "undoapp" option moves the files back to the phone .. the new script is much easier to understand .. you type "lucid" with a description of what's moving "app" and where it's going "sd" .. so you have things like this:

#lucid app sd

#lucid app int

#lucid app link

just typing "lucid app" will now show you a help screen
[G1 Android Development] ccyrowski:
When JF comes out with the new build for the cupcake update (not ADP) will I be able to upgrade straight from my JF 1.5 ADP Lucid or will I have to wait until you do your modifications (which I don't mind, because your apps2sd script is a lifesaver!)