![]() |
[FIXED] Tried to free up rootfs space, problem happened
Hi, I was trying to free some space in rootfs, so I followed this page of the wiki, and finally ran the script I copied/pasted in my N900.
I got this : Code:
/home/user # ./move.sh DON'T RUN THIS SCRIPT, IT IS WRONG Code:
#!/bin/sh |
Re: Tried to free up rootfs space, problem happened
Quote:
Code:
mkdir -p /home/opt/var/cache/apt/archives/partial |
Re: Tried to free up rootfs space, problem happened
You rock !
Thank you, that worked ! |
Re: Tried to free up rootfs space, problem happened
Quote:
|
Re: Tried to free up rootfs space, problem happened
daaaamn :(
i did something wrong... i did the same thing with choubbi. even after i followed Rob1n's code, i have the following problem: Quote:
|
Re: Tried to free up rootfs space, problem happened
Quote:
What's the output of: Code:
ls -l /var/lib /var/lib/apt /var/lib/apt/lists /home/opt/var/lib/apt |
Re: Tried to free up rootfs space, problem happened
Hey Rob1n thanks for the script. It worked for me but somehow did not free any rootfs space. Any idea on why that could be?
|
Re: Tried to free up rootfs space, problem happened
Also I've been looking around on other ways to free some space and it looks like some D-level apps are the problem. I couldn't find one but Is there any page available that shows a list of programs, which use a lot of rootfs space so I could just remove them?
|
Re: Tried to free up rootfs space, problem happened
Quote:
Quote:
|
Re: Tried to free up rootfs space, problem happened
I'm a complete noob in running the scripts. I've transferred them in my Documents directory. Can't seem to run the checkpkgs.pl script :$ through the terminal.
I've read the instructions but could you please post a noobguide here. |
Re: Tried to free up rootfs space, problem happened
Quote:
|
Re: Tried to free up rootfs space, problem happened
There seems to be a problem with my root. I discovered it when I was trying to create space for the update.
I ran the script above but get message mkdir:cannot create directory ' home/opt/var/': Permission denited and then on the next line a similar message saying something about some file already existing. Sorry can't say exactly what the second line was because I had a random reboot just as I was typing it in here. I get a similar message when I run apt-get clean or apt-get autoremove. Does anyone know what the problem is? Thanks. |
Re: Tried to free up rootfs space, problem happened
Install rootsh and type root in the terminal before writing the commands.
|
Re: Tried to free up rootfs space, problem happened
Quote:
|
Re: Tried to free up rootfs space, problem happened
Yes, now you can type cammands wich need root access.
|
Re: Tried to free up rootfs space, problem happened
Quote:
Code:
cd /home/user/MyDocs/.documents Code:
more pkgsizes.txt |
Re: Tried to free up rootfs space, problem happened
Rob1n thanks it works now.
I was able to free up quite a bit of space and who knew documents to go took up so much! Using Conky I know that now I have 40 MiB free in rootfs and I should be able to insall the update BUT it still gives me an error of not enough space! The other areas have more than enough space so now I'm just lost. |
Re: Tried to free up rootfs space, problem happened
Thanks for the help to all but it seems like this 3 simple steps somehow managed to over look the no space problem.
apt-get clean apt-get update apt-get upgrade Thanks to chuchu for the find and drukane for spreading it. |
Re: Tried to free up rootfs space, problem happened
Quote:
|
Re: Tried to free up rootfs space, problem happened
Quote:
I always knew its a bit of a geeky phone but an everyday user with loads of dl apps wouldn't go through forums and hence not like the device! Shame it really is a gem of a tablet. |
Re: Tried to free up rootfs space, problem happened
well guys, thanks to your advices.. I installed storage usage and Rob1n's pkgs (thank you). Now I'm able to see details about few rootfs memory but...what can I do now?
For example I've only 27,8mb free on rootfs and bigger problem is in usr (245mb). inside usr I found bigger directory is lib 161mb. what can I delete in lib to free rootfs mem? eg. locale-archive 28,4mb..I think I can't delete it; microb-engine 21,9mb..same, I think I can't delete it.. Third bigger in lib/ libqtgui.so.4.5.3 10.2mb, I can't delete it too.. so, what can I do? :( |
Re: Tried to free up rootfs space, problem happened
Quote:
|
Re: Tried to free up rootfs space, problem happened
WARNING: THIS INFO MAY BE DANGEROUS TO YOUR N900's HEALTH
POWER USERS ONLY Ive got access through WinSCP over SSH. I can search my enitre device for large files in rootfs. Ive moved (SYMLINKED) 5 files and saved 46.7 MB on my root. http://talk.maemo.org/showthread.php?t=43349 This has caused me no trouble has been tested. the thread below also helps free about another 30-50 MB but havent tested this as thoroughly: http://maemo-experience.blogspot.com...on-rootfs.html |
Re: Tried to free up rootfs space, problem happened
my curiosity (I tried to find it in search but nothing) what is rootfs?
egual / in linux desktop distros? I'd like to know logical structure of maemo filesystem |
Re: Tried to free up rootfs space, problem happened
Quote:
|
Re: Tried to free up rootfs space, problem happened
Rootfs is limited to 256mb of memory on a separate chip that's attached to the processor if I'm not mistaken.
Every program installs a bit of itself in rootfs, some more than others, and the rest of it it installs on other parts of the device. Now, it runs out real quick, so you have to be aware of it, a good way to keep track is to download conky (or the desktop command widget) and check it out once in a while. If you run out of space, you can't install anything else.. Firmware updates require huge amounts of rootfs space (Just for installation) and updating can be extremely problematic. Not sure if you know all that already or not, but maybe it will be helpful to anyone else who comes in here. Edit: Alright, I've created a wiki page for rootfs, I put your explanation in it too rob1n, I hope you don't mind. http://wiki.maemo.org/Rootfs |
Re: Tried to free up rootfs space, problem happened
thank you guys, following your advices I disabled some repos (eg. extras-devel, extras-testing,..) and now I'd like uninstall all apps in my n900 that aren't optified. There's a way?
Yes: there's a way: http://wiki.maemo.org/Free_up_rootfs_space ;) |
Re: Tried to free up rootfs space, problem happened
Quote:
i read somewhere you need a minimum of 45mb for installing a big update? |
Re: Tried to free up rootfs space, problem happened
1 Attachment(s)
Hi i used the "moveroot.sh" script by Thomas Tanner to free up some space in " / " and the commands in the FAQ i also played around and searched then moved some files (Ringing msg email......tunes and some icoms ) this is what i exactly moved it freed more than 10 MB just you will need a basic knowledge and some time :D
im not responsable about any damage do it at your own risk well for me nothing happend :D !! just make the directories (mkdir) then move (mv) then link (ln -s). I suggest using Filbox to move multiple files then remove them then link them from To /usr/include /home/usr/ /usr/lib/gstreamer-0.10 /home/usr/lib/ /usr/share/google-search-widget /home/usr/share/ /usr/share/bookmark-manager /home/usr/share/ /usr/share/calendar /home/usr/share/ /usr/share/rtcom-messaging-ui /home/usr/share/rtcom-messaging-ui/ /usr/share/sounds/(unlinked files) /home/usr/share/sounds/ /usr/share/zenmap/pixmap/ /home/usr/share/zenmap/pixmap example : root mkdir /home/usr/share/ mv /usr/share/google-search-wiget /home/usr/share/ ln -s /home/usr/share/google-search-wiget /usr/share/ "if anybody want all of the commands i will write it no problem im here to help and get helped l:D" hope this help., All respect. Sifo:cool: ******************* |
Re: Tried to free up rootfs space, problem happened
remove Firefox & icedtea(i.e microemulator)..
|
Re: Tried to free up rootfs space, problem happened
1 Attachment(s)
Hi Again and again im not responsable about any damage to your system ( for me nothing happend )
Copy and paste these commands exactly as they are to save some root space from 5-->20 MB NOTE...: 1-If you faced a problem with the application manager after this commands just move the files back to where were they (for me nothing happend :D) 2-reboot after the commands to get the actuall freed space 3- type in terminal : and see how much availble befor and after :D 4- when using mkdir command if you got file exist tjen it is ok just complete :D 5-when using mv commnd if you got no such file or directory then you dont need that step and complete :D ********** df -h / ********** COMMANDS: ****************************** root mkdir /home/var mkdir /home/usr mkdir -p /home/var/lib mkdir -p /home/usr/python2.5 mkdir -p /home/var/cache mkdir -p /home/usr/lib mv /var/lib/apt /home/var/lib && ln -s /home/var/lib/apt /var/lib mv /var/lib/dpkg /home/var/lib && ln -s /home/var/lib/dpkg /var/lib mv /var/cache/apt /home/var/cache && ln -s /home/var/cache/apt /var/cache mv /usr/lib/dpkg /home/usr/lib/ && ln -s /home/usr/lib/dpkg /usr/ib/ mv /usr/lib/apt /home/usr/lib/ && ln -s /home/usr/lib/apt /usr/lib/ mv /usr/lib/nokiamaps-navigation-provider /home/usr/lib/ && ln -s /home/usr/lib/nokiamaps-navigation-provider /usr/lib mv /usr/lib/python2.5/bsddb/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/bsddb/ mv /usr/lib/python2.5/compiler/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/compiler/ mv /usr/lib/python2.5/config/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/config/ mv /usr/lib/python2.5/ctypes/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/ctypes/ mv /usr/lib/python2.5/curses/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/curses mv /usr/lib/python2.5/encoding/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/encoding/ mv /usr/lib/python2.5/hotshot/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/hotshot/ mv /usr/lib/python2.5/idlelib/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/idlelib/ mv /usr/lib/python2.5/lib-dynload/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/lib-dynload/ mv /usr/lib/python2.5/lib-tk/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/lib-tk/ mv /usr/lib/python2.5/logging/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/logging/ mv /usr/lib/python2.5/plat-linux2/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/plat-linux2/ mv /usr/lib/python2.5/sqlite3/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/sqlite3/ mv /usr/lib/python2.5/wsgiref/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/wsgiref/ mv /usr/lib/python2.5/xml/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/xml/ ****************************** mkdir -p: means that creat the directories without errors &&: means that what followes need to be done immediately after what behind && (just for saving time :D) ***************************** i wou.d love to make a shell script for that commands but sorry for NOW i dont know "sorry for the fingers pain :D" ***************************** and dont forget to run this every several days apt-get clean apt-get autoclean apt-get autoremove *********************** CHEERS! SIFO. |
All times are GMT. The time now is 22:09. |
vBulletin® Version 3.8.8