yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] LucidREM:
i'm wondering if it might have anything to do with the difference in mount commands .. JFs Build does not have the options "noatime,nodiratime" on the mount of the EXT2 .. could this be the whole problem with NFS?!?

i'm going to place a new boot.img file and add the command into the "lucid" script to flash the new image to the phone .. worth a try eh?
[G1 Android Development] osho741:
Lucid, just wanted to thank you for the lucid app, it fixed my own script error I made when trying to do it manually and it ran perfectly now :) thank you!
[G1 Android Development] prscott1:
Lucid,

I see in your first post:

I'm not exactly sure what you mean the "new boot image". could you please elaborate?? I'm currently running the Engineering SPL (1.33.2003), JF1.43 recovery, and JF1.5.1. I have a 2nd SD card that had those NFS errors that I'd like to test it on.

TIA!

P.S.

Today, I downloaded the latest and greatest from the market (glad to make the small donation). Thank you very much!
[G1 Android Development] LucidREM:
stale NFS // new boot.img

anyone who wants to .. try the new boot.img .. from the REM app update my script .. then in Terminal type "lucid rem" .. this should download the boot_rem.img and flash it to the phone .. now type "reboot"

i just did this to my phone and it seems good .. i've confirmed that the EXT2 partition mounts as "noatime,nodiratime" just like the previous builds before 1.51 .. if anyone has success with this getting rid of the stale NFS please let everyone else know
[G1 Android Development] LucidREM:
i was reading where someone mentioned the boot.img from JFs 1.51 does not mount the EXT2 with the option "noatime,nodiratime" and i am wondering if this is causing the problem with information previous stored with those options .. the new boot.img is on the first page next to the USA Build .. also included in the lucid script if you update via my REM app .. just type "lucid rem" and it should flash the boot.img
[G1 Android Development] prscott1:
Okay, just did this - will try with my 2nd sdcard that has the errors and post back.

Thanks!
[G1 Android Development] setzer715:
Just want to say that you made life SO easy!!!! This new txt rocks! Thanks dude!
[G1 Android Development] kronosx1:
Lucid,

I have a quick question. I have the REM app and your script. When I do the sdsplit it says I shouldn't do it in JF. I am on JF 1.51 US. Am I ok to do this? I would love to try apps2sd
[G1 Android Development] LucidREM:
check with MartinFick .. i know there's a special option like "-nc" or something specifically for 1.51 .. i believe it has to do with negating the need for mountd.conf and init.rc to be added to the system .. it could really frig your phone .. but he's great with that stuff
[G1 Android Development] MontAlbert:
still having issues getting this app installed. I have reinstalled several times.... i am running dude's cupcake with marcus' updated script... does it not work? Surely it should still install? The market icon says installed, there is nothing in the launcher, i type SU into the terminal, then type lucid i get "lucid: not found"

not working with dude? Either way it was a donation. thx
[G1 Android Development] Beast84:
Would the new boot.img do any harm if I am on ADP JF1.5, not 1.51?
[G1 Android Development] LucidREM:
i'm going to assume no .. it's still really the same build (CRB43) so there shouldn't be a real difference .. JF might know better tho
[G1 Android Development] Beast84:
Hmm I wish he still came around here. I really don't wanna bug him outside of here. O well. I don't wanna F anything up like I know how so I guess I won't be trying this out. Thanks anyway
[G1 Android Development] sir*mez:
works great thank for the new update Lucid!!!
[G1 Android Development] jmon777:
I did this on jf 1.5 just like martinflick said to on his guide for jf it worked like charm. Lucid scrip might not work like u want becase I have not tried it. But fallow his guide it took me about 30 mins to do it. But I'm kind of slow. Yeah
[G1 Android Development] Jefpier:
I updated the script with the update command, then typed lucid rem and downloaded the img, typed reboot. When the phone turned on again i entered in the terminal and typed:

rm -r /system/sd/data

Guess what? The NFS error did appear again, guessing the IMG dint work or is that i did something wrong?
[G1 Android Development] linuxrebel:
the new boot img

First Lucid thanks. The lucid rem and then a reboot solved a lot of problems. One question, I'd like to ask, is what is the FS for the boot img. I'm curious to see what the mods are, and to what files. Basically I just enjoy taking things apart and seeing what makes it tick.

Couple of people mentioned not going over 2GB for ext2 file systems. Interesting in that the file system size limit for ext2 is 2TB on the weak side. (no large FS support). I really think that the noatime (nodiratime is a subset so not needed but no harm to have.) is the real key to performance from what I'm seeing. Lockups and the occasional epileptic reactions I was seeing are all gone. Wii! We are having fun now for sure. Thanks again!
[G1 Android Development] LucidREM:
only thing i changed: there is a file JF put in called "runme.sh" with a line:

mount -t ext2 /dev/block/mmcblk0p2 /system/sd;

i simply changed the line to read:

mount -t ext2 /dev/block/mmcblk0p2 /system/sd -o noatime,nodiratime;

as someone had suggested in one of the other threads .. the boot.img file is simply setting up the file to load the android OS .. inside the init.rc file is the call to the runme.sh .. and then inside the runme.sh file is the check for the existence of the mmcblk0p2 (EXT2) .. so if it does not exist then the runme.sh is not loaded
[G1 Android Development] LucidREM:
i'm not sure if it will "fix" the existing NFS .. but maybe help to prevent it in the future .. i'm really not sure .. the "noatime,nodiratime" is supposed to reduce the amount of writing to the MicroSD .. perhaps that's what saves the card from getting an error
[G1 Android Development] custom374:
I updated to the new boot image and now when I boot my phone its stuck on the G1 screen. :(

its not bricked I have access to end + home. I also have the new spl do you think this could be conflicting with your image?
[G1 Android Development] LucidREM:
strange .. unless something else changed on the phone .. are you using the JFv1.51_USA?
[G1 Android Development] cyanogen:
There are no backwards compatibility issues with using these mount options.

The problem with "Stale NFS Handle" is simply that Android does not unmount /system/sd at shutdown, and since EXT2 is not journaled, you end up with filesystem corruption (I don't know why it reports it as an NFS error, though). To fix the filesystems, you need to e2fsck them. To fix the unmount at shutdown problem, I built some stuff into my ROM to call a script before turning the device off which remounts all the filesystems read-only. You are welcome to grab these mods from my build if you'd like- /system/lib/libandroid_runtime.so, /system/bin/toolbox, and /system/etc/shutdown.sh.
[G1 Android Development] custom374:
yes sir. Just reflashed back to it again too. Flashed perfectly.

going to try the boot img again. we shall see.

Loaded up the script and the boot img again and it is working now. Still have the bad nsf file though.
[G1 Android Development] naTTan:
Thanks lucid i was just thinking how cool it would be if lucid did the changes that cyanogen has presented, but i didn't want to be a bother and seems needy but here we are and you have released the same rom, oh man i am torn between this with the volume update and cyanogen. Props to both of you.
[G1 Android Development] TheAirHockeyGuy:
Problem going from JF 1.5 to 1.51

Every time I try to go from JF 1.5 to 1.51 using the JF Updater all of my programs start force closing. Now even when I get a call it says "process com.android.phone has stopped". I did the radio upgrade too. What did I miss here?
[G1 Android Development] LucidREM:
still lacking some info there .. it's like asking "every time i go out my front door i get soaking wet .. why is that?" .. and what you fail to mention is you're on a house boat and fall into the lake

anyhow .. did you do a wipe when you updated? if you're coming from 1.5 then you are on ADP .. are you sticking with ADP1.51? do you have apps moved to SD? data? dalvik-cache? anything else you can provide?
[G1 Android Development] Yorker10:
Appreciate your the time you take to make these builds.

Okay, it's been a while since I've got on XDA and flashed an update. What I'm encountering a problems is when applying the update through the shell. After pressing ALT + S, I get a error message saying "E: Can't open /sdcard/update.zip (bad)".

I have not wiped the phone as I would have thought that would not be required from upgrading from JF's previous ROM. Also, could it be that it was a bad download?
[G1 Android Development] LucidREM:
could very well be a bad download
[G1 Android Development] obe1:
so i decided to do the boot.img everything when good no problems but before that i was having problems with open home foreclosing so i decided to download log collector so that i can send it to betterandroid so when i rebooted for the second time i noticed in the first few lines of log collector i saw this E/flash_image( 41):error opening /data/recovery.img: No such file or directory. So my questions is did i do the boot.img right am i supposed to do something with it when i download it place it somewhere run it. I mean im having no problems with it no errors with apps or foreclosures just curious why it would say no such file or directory. and open home only foreclosures when i set it to default home weird.
[G1 Android Development] LucidREM:
thanks for bringing that to my attention .. i can look into it
[G1 Android Development] obe1:
no i usto get the same error trying to update to jf 1.5 but it was an Id10t error lol me nameing the file update.zip instead of just update.
[G1 Android Development] djhollygrove:
updated with no problems!!!
[G1 Android Development] zgmf-x322a:
can u include chinese input for these roms plzzzzzzz....
[G1 Android Development] LucidREM:
i'm not running any ROMs .. this is JFs build .. i'm just putting out a script that runs within Terminal .. if there's a way to do this from Terminal i can look into it
[G1 Android Development] zgmf-x322a:
icic....but if its possible, please include the chinese input (virtual keyboard) if possible....u could be my only hope for it :o
[G1 Android Development] LucidREM:
do you know where it can be found? i can look to see if it can be easily implemented
[G1 Android Development] LucidREM:
i saw this: http://xdaforums.com/showthread.php?t=512530

is this what you are wanting???
[G1 Android Development] LatinSilEighty:
Anyone figure out how to either format the ext2 partition or maybe delete the partition and start fresh without having to pay for a 40 dollar software? i really dont want to go get a new SD card.
[G1 Android Development] zgmf-x322a:
yes thats it but hoping that it would be included in the rom without installing it externally.... ><
[G1 Android Development] LucidREM:
i think i can add that to my script so that it would be like "lucid chinese" or something and it would do all the work for you
[G1 Android Development] LucidREM:
yep .. linux

have you checked MartinFick?? http://xdaforums.com/showthread.php?t=500387
[G1 Android Development] zgmf-x322a:
hey bro,

im kind of a newbie to android and about the script that ur talking about...i dunno what it is actually....i saw alot of scripts in other posts but i have no clue whats that....is it possible to help me out?

if i did understand how those scripts worked, i would not have given u so much trouble....

sorry for being a fuss bro :S:S:S:S
[G1 Android Development] efreese:
duplicate ringtones

I did the "lucid media sd" and am now seeing duplicates in my ringtones and notifications menus. Has anyone else seen this? Is there a rm that's not being run?
[G1 Android Development] LucidREM:
it is possible .. you ran the script after typing "su" yes? i think i need to build an "su" check into the script .. what does it say if you type "lucid status"
[G1 Android Development] LucidREM:
no problem .. basically a script file holds lines of text that you would normally enter yourself .. ie:

this code is what you would type to put the apps over to the EXT2 partition

#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
#rm -r /data/app-private
#ln -s /system/sd/app-private /data/app-private

with my script file you type this

#lucid app sd

so it makes things easier
[G1 Android Development] efreese:
yes, I did.

the relevant parts from status are:

/system/media -> /system/sd/media

/system/media is not linked

so I shouldn't run the lucid script as su?
[G1 Android Development] rbgmode:
how to install new boot.img

I'm dumbfounded where do I place the new boot.img ?

A. Open update.zip replace boot.img and autosign

B. Replace using terminal

If option b lemme know how to do that.

Option A FAILED perhaps I did something wrong
[G1 Android Development] mygti02:
so i was searching through this thread trying to find out what the boot.img thing does by entering lucid rem but could not find anything. Maybe i skimmed right past it? can someone explain what this does please? any benefit? thanks a bunch!
[G1 Android Development] rbgmode:
where to place new boot.img
[G1 Android Development] rogro82:
And a new gift just entered your pm box :D

Lemme know if its any good...

Edit:

Thanks for the credits in the 1st post :)
[G1 Android Development] obe1:
media to sd

So I moved my media to sd but now I can't access my old ringtones I had to download them but I want to be able to access my old ringtones the one's I downloaded are nokia, sony ericsson tones so I been baffled on how to assign them once on sd any help would be appreciated.
[G1 Android Development] LucidREM:
$su
#lucid rem

it's that easy .. heheh .. that boot.img is also built into the US update.zip on the first post that includes the radio as well
[G1 Android Development] LucidREM:
that is totally wicked!

i'll play around with it some more tonight after my 9-5 gets done
[G1 Android Development] tehseano:
That boot image makes me loop.

//pwned
[G1 Android Development] TheAirHockeyGuy:
Nevermind thanks!
[G1 Android Development] mygti02:
come come now share with the group!!! LOL :D
[G1 Android Development] Mr. Moe:
ok downloaded the app, updated it ran the commands, then I went to terminal

$ su

# lucid

lucid: not found
[G1 Android Development] LucidREM:
very weird .. what build are you on?!?
[G1 Android Development] rogro82:
And if you ran it what was the output.... some builds will give you an error that the system/bin doesnt have any space ( Ive actually ran in to that problem ), but the output of the script would tell you....
[G1 Android Development] LucidREM:
yea .. i guess not everyone is enjoying being at 88% on /system like me .. heheh .. definitely something to think about .. maybe i'll throw a test in there for free space of /system and size of lucid.txt .. that'd be neat

you are so awesome for putting that together .. saved me some braincells from splattering against my wall .. LOL .. new version is on the Market
[G1 Android Development] rbgmode:
Thanks and I was making things more complicated.

Thanks for making our lives easier, although we are not use to it. Lol

You are totally amazing.

Just one thing I still had to install lucid script.

I remember the old adp 1.5 already had it. Nevertheless you gave easy instructions.

Just one last thing ..... wait for it.... You ROCK!
[G1 Android Development] fleshdeep:
LUCID, one thing I tried was your script. At wget http://files.lucidrem.us....i get "wget bad address". How do I fix that?
[G1 Android Development] robpet2:
u might want to verify using a card reader that the partitions are there...

i typed in the above and didnt run the scripts prior to typing the busybox commands, then when i went back to terminal and typed in the command to run the script it says it doesnt exist.. or do i need to add the script to the sdcard ?

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

also getting force close errors on the market when I open it.. it wont build a list of apps or anything it just closes.
[G1 Android Development] tannyfiles:
Hey Lucid thnx man..the new modded ADPJfv1.43h works great.. Thanx alot again..!!!
[G1 Android Development] robpet2:
OKAY FIXED IT... did a wipe and it worked fine, I think the issue was giving the g1 more time to move the apps to sdcard... but the wipe fixed it all...

great job on the hack lucid... this was painless..
[G1 Android Development] G'uno:
Dang!

So which script did you type in the emulator ?

It keeps jumping to the second boot screen, I must be doing something wrong or I'm not typing the correct script
[G1 Android Development] Keyser.Soze:
Many thanks to LucidREM for this great mod! I have installed the ADP 1.1h mod and ran the scripts and all seems fine. I just had to reinstall the apps from the My Downloads section in Market. However there's one thing that seems unusual. In the My Downloads list, all the apps that I had installed prior to applying the mod are always listed as "FREE" instead of "Installed". Apps that I installed after the mod are listed properly as "Installed".

I have moved the Market cache to the SD card, does that have something to do with what's happening?

KS
[G1 Android Development] xShadoWxDrifTx:
Is the 2nd boot screen the part after the G1 and is just lit
[G1 Android Development] G'uno:
Yes, the flashing android...

And that's where I stay after I type in the busybox commands and then reboot
[G1 Android Development] G'uno:
Hey LucidRem

I'm getting this after I type in...

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

cp: cannot create directory ' /system/sd/app' : Read-only file system

And I also get this... (I seen when you said I'm suppose to have "mmcblk0p2" but I only have the one listed after I typed this in)

#busybox df

"mmcblk0p1" so do this mean my ext2 not showing up, which means when I type in all the "busybox" commands it's causing me to lag at the second boot screen ?

# ls -l /system/sd

#

(that's what I got from that in the emulator)

Thanks for any clarification
[G1 Android Development] Mikey:
So after reading all this, i have concluded, not yet performed.

That uninstalling all my apps, wiping then applying this hack, would/will be the best way to go about it.

The only 2 questions i have which I think a couple people asked but was never answered, is:

Do i actually have to use half of my 16GB for EXT2?

What if i wanna dedicated only 6 or 5 or 2, or even 1

Does that make a difference?

Edit: How does this affect if in any way, if we decide to add a theme?
[G1 Android Development] strikeoutss:
I have 8gb microsd and only allocated 1.5 gb for ext2 partition and it works just fine, although I don't think it makes a difference, more than that is probably overkill as most of the apps/cache/data is not going to take up that much space.

I installed the buuf theme but I moved my ringtones and such over to my e partition as well because rc33 doesn't leave as much room on the system memory, atleast thats what i read. i've had no problems.

Hope that helps.
[G1 Android Development] LucidREM:
i'm an extremist .. i put 1.5G for the EXT2 .. you should be fine with 500M since the phone storage is only 74M
[G1 Android Development] LucidREM:
if you don't see the mmcblk0p2 listed it usually means you don't have the EXT2 partition set properly on your SD card
[G1 Android Development] LucidREM:
i wouldn't recommend moving things to the SD with a 16G card because you're probably running class2 .. you're choice

you don't have to wipe to run this update.zip .. all you need is to have the two partitions on the SD card .. you can choose as little or as much space as you'd like .. no 50/50 split .. i have 8G set with 6.5/1.5G and others have just set 7.5/0.5G which is usually more then enough
[G1 Android Development] Mikey:
lol real extreme :p
[G1 Android Development] Mikey:
LMAO i have an actual 8GB class 4.

I wrote 16 cause i had just finished reading about them.

Sorry about that.
[G1 Android Development] bodyman:
here is one question that I have: If I run the cpcopy.sh data will that move the caches also to the ext2 partition, or do I still need to redo symlinks? I did a wipe because my phone got stuck on stupid, so I started over.

I also had a hard time changing my wallpaper until I realized that I forgot to symlink the /data. <== oops newbie mistake (fixed now and everthing works great)!!!!!!
[G1 Android Development] gottifour:
Hey Lucid. Quick question. I have your jf1.41rc33mod now and am going to go to the jf1.42rc33mod. I have used a different method to move my data and apps. I should be able to just rename and update without a wipe or redoing the scripts....right or wrong? Thanks for the mods either way.

d
[G1 Android Development] dawood1981:
Hey Lucid, awesome work Sir!!! Hats off to you, quick question, I just successfully followed your procedure to move my apps/data to a 2G SD card, now that I know it works, is there an easier way for me to swap the 2G card with a 8G card? I was thinking about copying the contents of my 2G card into the 8G card but that wont take care of ext2 system since windows does not recognize this. Can you please suggest how I can accomplish this without going through the nandroid backup and restore tool?
[G1 Android Development] All~G1:
Hey lucid if im running the RC33 "lite" from jdwme, to make room for a theme, and have moved the apps via adb. I tried running your script for the data move and it loops at the second splash. Any way to work around this?
[G1 Android Development] LucidREM:
yep .. shouldn't need to wipe .. just rename the file update.zip and go from there .. you should never need to run the scripts to move data and apps unless you do a wipe of the phone
[G1 Android Development] fallinprince:
Sounds

Ok im not sure if it was intentional but i ran a search to see and got no luck

Were the original sounds that came with the phone removed in this build? if so how can i get them back on the phone?

Or if it is an actual problem what did i do wrong and how do i fix it
[G1 Android Development] LucidREM:
i'm not sure i follow .. to which sounds are you referring? lost ringtones or something?
[G1 Android Development] fallinprince:
Im missing everything the link to Any sounds is gone i click on "select ringtones"

or anything that involves a sound and it just is not there

this is the screen cap
[G1 Android Development] tehseano:
Along with what the others are saying, your command for:

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

Retrieves as:

wget http://files.lucidrem.us/jf/system/bin/lucid.txt
wget: bad address 'files.lucidrem.us'
[G1 Android Development] LucidREM:
on what build is this happening? i have not encountered this trouble .. try substituting the direct address (98.131.185.198) instead of files.lucidrem.us
[G1 Android Development] osho741:
lucid, would it be possible to add this script to your lucid script app for people who want to use this script for use with the davikvm and optimizeing odex?

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

i believe its run through terminal emulator