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,

SR90 2010-05-06 02:34

Re: [Important] Rootfs deleting/relocating
 
Quote:

Originally Posted by matts76 (Post 645607)
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,

Yeah , I used the script on the wiki and that is why I have problems , I could not find the reversal script on wiki though :(

peacekeper 2010-05-06 02:45

Re: [Important] Rootfs deleting/relocating
 
what happened to me is that i did the apt-get pymaemo optify and then the same action told me to apply the apt-get autoremove, and now my
N-900 is not possible to turn on it only gives me the dots for 5 o 7 seconds and after that shut down completely; no matter how many times i try to turn it on its not possible anybody can give a clue what to do?

matts76 2010-05-06 03:02

Re: [Important] Rootfs deleting/relocating
 
Quote:

Originally Posted by peacekeper (Post 645622)
what happened to me is that i did the apt-get pymaemo optify and then the same action told me to apply the apt-get autoremove, and now my
N-900 is not possible to turn on it only gives me the dots for 5 o 7 seconds and after that shut down completely; no matter how many times i try to turn it on its not possible anybody can give a clue what to do?

That is what is comonly refered to as bricked:eek:.
Im afraid a reflash is your only option there is a wiki on how to and multiple threads on the subject, i had to reflash mine a while back its really not as bad as it sounds:)

peacekeper 2010-05-06 03:06

Re: [Important] Rootfs deleting/relocating
 
well i think there is no other solution for that anyway this is going to to be the 10000000000000000000000 times i reflash the n900 well at least i am getting trainned on this device jejejejejejeje be calm peace be calm:eek: ths for ur response at least i know what to do now.

matts76 2010-05-06 03:12

Re: [Important] Rootfs deleting/relocating
 
Quote:

Originally Posted by SR90 (Post 645615)
Yeah , I used the script on the wiki and that is why I have problems , I could not find the reversal script on wiki though :(

im sorry but i dont know how to help, other than a reflash would sort it out or if you wait for pr1.2 i think that will put everything back where it should be.
thats exactly why i havent used any of these scripts as i dont understand them enough to fix any problems,
but if ur device is working but just not perfect i would just wait for the new firmware, although learning how to reflash your n900 is something i would recomend everyone to do

peacekeper 2010-05-06 03:20

Re: [Important] Rootfs deleting/relocating
 
Quote:

Originally Posted by matts76 (Post 645653)
im sorry but i dont know how to help, other than a reflash would sort it out or if you wait for pr1.2 i think that will put everything back where it should be.
thats exactly why i havent used any of these scripts as i dont understand them enough to fix any problems,
but if ur device is working but just not perfect i would just wait for the new firmware, although learning how to reflash your n900 is something i would recomend everyone to do

yeah u are right matts, stay away from what u don't know specially if u have the risk of mess ur device; now i know. and u know what is funny? i was getting ready to install the new software updating, after what i was doing i was planning to do it, and now look at me where i ended. but thks anyways u have been very helpfull.

SR90 2010-05-06 03:59

Re: [Important] Rootfs deleting/relocating
 
oh well , I guess its time for flashing , is there any easy to follow guide for newbies other than the wiki ones ?

I couldn't go through it lol

Jaastin 2010-05-06 16:11

Re: [Important] Rootfs deleting/relocating
 
Quote:

Originally Posted by SR90 (Post 645575)
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 !

Oh SR90.
If you've ever done
Quote:

sudo gainroot
sh /home/user/MyDocs/moveroot.sh
Than download THIS

and do this command.

Quote:

sudo gainroot
sh /home/user/MyDocs/unmoveroot.sh
This should almost fix all your problems. The OS may be a bit messed up, just a bit, but it'll be alot better than before.

Goodlucks.

noobmonkey 2010-05-06 16:17

Re: [Important] Rootfs deleting/relocating
 
can we keep sensible warnings next to any commands like these please?

Anyone trying commands like these really need to understand how to fix / reflash if they hit problems, and just advertising commands may influence others to try - especially before reading the whole thread.

optimistprime 2010-05-06 16:31

Re: [Important] Rootfs deleting/relocating
 
Quote:

Originally Posted by noobmonkey (Post 646650)
can we keep sensible warnings next to any commands like these please?

Anyone trying commands like these really need to understand how to fix / reflash if they hit problems, and just advertising commands may influence others to try - especially before reading the whole thread.

my thoughts exactly.....some people arent meat to be hacking. just accept it....(oh and i am one of those people) i know my limits and have learned the whole flashing routine just in case. but i dont push my luck.

pursueky 2011-03-07 02:19

Re: [Important] Rootfs deleting/relocating
 
I want to loose my roofts ,either!!!!!!!!!!!!!!!!!!!!!!!

But what the problem I face is that: I followed the tips suggested in the aptitude and indtall many unknown packages just because it suggested when I install the pyside or sth (I just forget huh)

So mine is PR1.3 and install the CSSU ,would anyone give some help to me????

michaaa62 2011-03-07 07:25

Re: [Important] Rootfs deleting/relocating
 
Hi pursueky,
please do not get me wrong.
Your phone's problem may get better recognition, if you would start your own thread with a good, long description of the issues you are facing.

pursueky 2011-03-07 07:51

Re: [Important] Rootfs deleting/relocating
 
Quote:

Originally Posted by michaaa62 (Post 962274)
Hi pursueky,
please do not get me wrong.
Your phone's problem may get better recognition, if you would start your own thread with a good, long description of the issues you are facing.

But I think the answer won't be such.
I have already found two
sth in "perl" and another in "python "(however,none of each reach my points)


Typing here somewhat means I can't handle it very effectively. And I just want to get some more experience from this useful thread also some selfless help.

pursueky 2011-03-07 07:53

Re: [Important] Rootfs deleting/relocating
 
though tips here may gonna help a little
I would be thankful all the same


All times are GMT. The time now is 11:27.

vBulletin® Version 3.8.8