maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   [Important] Rootfs deleting/relocating (https://talk.maemo.org/showthread.php?t=51896)

Jaastin 2010-05-05 00:14

[Important] Rootfs deleting/relocating
 
Hey guys, (:
LOL WHAT A LAME INTRO, ANYWAYS!

So yeah, My rootfs was at 80% and I got sick of looking at it, so I changed it to 65% and it's 84mb now?
Anyways, theres a tweak you should all watch out for.

Quote:

mv /usr/share/microb-engine /home/opt
ln -s /home/opt/microb-engine /usr/share/microb-engine
This command is very dangerous.
Here are the out-comes and in-detail explanation of what this command does.

In-Detail Explanation Of Original Command
mv /usr/share/microb-engine /home/opt -- This part moves "microb-engine from the usr/share/ directory, to home/opt (Non rootfs 256MB storage)

ln -s /home/opt/microb-engine /usr/share/microb-engine -- This part sets the instruction to find the microb-engine (Otherwise known as Web Browser) to home/opt/microb-engine from /usr/share/microb-engine (Yes yes, the rootfs 256MB Partition)

Effects
1. Web Browsing will NOT work.
2. The important and probably most scariest problem of all. 100% CPU Usage on IDLE

Yeah, 100% CPU at 600MhZ non-stop without even touching your machine. Thank god it was on a low priority and reversed the effects.
Here's how, just incase you bump into such a bug.

Quote:

mv /home/opt/microb-engine /usr/share
ln -s /usr/share/microb-engine /home/opt/microb-engine
In-Detail Explanation of Command

mv /home/opt/microb-engine /usr/share -- Moves home/opt/microb-engine folder to /usr/share (Original 256MB Partition rootfs)
ln -s /usr/share/microb-engine /home/opt/microb-engine -- Tells OS to find the program at usr/share/microb-engine from /home/opt/microb-engine

Anyways, hope you guys never bump into this bug, if you do though, hopefully this will prevent you from reflashing your machine.
Happy N900'ing. (:

-NEWBIE
jaaastinn[;

kd_alex 2010-05-05 00:18

Re: [Important] Rootfs deleting/relocating
 
How did you run into this exactly? Did you decide make this change manually?

MohammadAG 2010-05-05 00:19

Re: [Important] Rootfs deleting/relocating
 
Web browsing works here (after moving it), and the CPU goes down to 250MHz when idle.

Jaastin 2010-05-05 00:29

Re: [Important] Rootfs deleting/relocating
 
I don't know what . But im bumping into many problems. Now when i web browse, i cannot change pages. Fman. Stupid tweaks cause Devel programs messed up my whole rootfs.
What do you mean change manually?

I did a few edits to make my rootfs smaller.

Quote:

This script shows you how much space is freed. It can also detect whether some directories have already been moved. WARNING: Although this script works for most users, you should always perform a backup before running it. Do not use this script if you have already used some other methods or scripts from Free_up_rootfs_space! In this case reflashing is recommended.

1. install the rootsh package from extras
2. download the script to your MyDocs (or upload it via SSH)
3. in Terminal run

sudo gainroot
sh /home/user/MyDocs/moveroot.sh

It should have freed about 95MB on your rootfs. Upgrading the firmware OTA after using the script is supposed to work. If you reflash the firmware the script will automatically remove the files from the old firmware when you run it again.

This untested script reverts the modifications and moves as many as possible files back to rootfs. Make sure that you have enough space on rootfs for that. Otherwise it will abort the operation. Instructions are the same as for moveroot.sh, except that you call unmoveroot.sh.
I've also done the Python thingy.
Quote:

apt-get install pymaemo-optify
apt-get clean
Took out some languages. Ahh, now my machines a bust. Is there anyway to undo, or is it reflash?

That and the home/opt edit.
I really think reflashing is right around the corner for me. Goddang it.

Jaastin 2010-05-05 00:58

Re: [Important] Rootfs deleting/relocating
 
OMG, someone please reply.

Techark 2010-05-05 04:59

Re: [Important] Rootfs deleting/relocating
 
type ls -lah in xterm check the ownership and permissions of the file. Paste output here if you don't know how to read it.

SR90 2010-05-06 01:35

Re: [Important] Rootfs deleting/relocating
 
I did the same thing :(

mv /usr/share/microb-engine /home/opt
ln -s /home/opt/microb-engine /usr/share/microb-engine
, now my cpu is at %100 all the time and my memory is at 174mb ! ,

It seems all the roofts everything is messed up , after opening like 5-6 applications , it is at 100 percent (after using the command
mv /home/opt/microb-engine /usr/share
ln -s /usr/share/microb-engine /home/opt/microb-engine
, my cpu usage become better but still I think it is not same as before )


someone please help !

matts76 2010-05-06 01:50

Re: [Important] Rootfs deleting/relocating
 
ive also moved the microb engine and all the other things mentioned in the wiki except for running the script as i didnt feel safe doing it.
Anyway everything is running fine for me, (touch wood)
wouldn't that script be the more likely culprit, especialy if you've moved microb back.

SR90 2010-05-06 02:13

Re: [Important] Rootfs deleting/relocating
 
so what exactly I have to do matts76 ?

how did you fix urs ?

matts76 2010-05-06 02:24

Re: [Important] Rootfs deleting/relocating
 
Quote:

Originally Posted by SR90 (Post 645595)
so what exactly I have to do matts76 ?

how did you fix urs ?

sorry you missunderstand, mine was never broken, what i was saying was could the script on the wik be behind the problems ur having, if so i believe there is also a reversal script on the wiki,
ive done everything else on the wiki without problems,


All times are GMT. The time now is 10:35.

vBulletin® Version 3.8.8