Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Clean rootfs

    Reply
    Page 3 of 3 | Prev |   1     2   3 |
    szopin | # 21 | 2012-02-16, 14:17 | Report

    Ouch. After:

    dpkg -l | grep ^rc | cut -d " " -f 3 | xargs dpkg --purge

    my free rootfs space went from 30.6 to 29.4!?! Any idea what went wrong or where the missing 1.2mb is from?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    reinob | # 22 | 2012-02-16, 14:52 | Report

    @szopin,

    LOL Could be that the dpkg log (I suppose there's some log somewhere) grew more than the config files that were deleted

    Are you sure you measured free space right before and after the dpkg command?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    szopin | # 23 | 2012-02-16, 15:11 | Report

    Yeah, was doing steps from this thread and checking 'df -h /' after each. Strangely enough microb-engine gave me only ~7mb and microb seems to start up faster (compression on rootfs?). Now to find that dpkg log, if it grew by 1mb and is on rootfs optifying that should give lots more free space...

    Edit | Forward | Quote | Quick Reply | Thanks

     
    szopin | # 24 | 2012-02-16, 15:16 | Report

    Got it:
    rm /var/lib/dpkg/*old
    should be executed last, or new -old files get created.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to szopin For This Useful Post:
    reinob

     
    WeASeL... | # 25 | 2013-03-17, 18:25 | Report

    I followed these instructions and now my media doesn't play in open media player or the regular media player. As a matter of fact my media played shows 'No music', 'No videos' etc...

    Opera stopped working past log in prompts etc...


    Originally Posted by misterc View Post
    here is a wiki page that 'optifies' a few packages part of Maemo core (thus, can't be optified prior to install, any more, obviously
    alas
    CSSU, anyone )

    Free up rootfs space

    YMMV...


    here are most lines...
    Code:
    rm /var/lib/dpkg/*old
    mv /usr/share/nokia-maps /home/opt/
    ln -s /home/opt/nokia-maps /usr/share/nokia-maps
    mv /usr/share/microb-engine /home/opt
    ln -s /home/opt/microb-engine /usr/share/microb-engine
    mv /usr/share/fonts /home/opt 
    ln -s /home/opt/fonts /usr/share/fonts
    mv /usr/share/locale /opt
    ln -s /opt/locale /usr/share/locale
    mv /usr/share/themes/ /home/opt/usr/share/themes
    ln -s /home/opt/usr/share/themes /usr/share/themes
    dpkg --purge tutorial-home-applet 
    dpkg -l|grep ^rc
    last command has been rewritten by Joseph9560 as
    Code:
    dpkg -l | grep ^rc | cut -d " " -f 3 | xargs dpkg --purge
    nota bene: moving & relinking the theme part means you can't install any new themes unless you delete the link & move the files back to their original place...

    i use those exact instructions routinely when reflashing my N900s (now mostly the test model ) and never had any problems
    then again, i don't give a darn about themes

    Edit | Forward | Quote | Quick Reply | Thanks

     
    no0b | # 26 | 2014-01-09, 15:24 | Report

    Originally Posted by SiO2 View Post
    Guys, I don't know whether this information deserves a new topic but yesterday I've found a way to clean the N900 rootfs that worked fine on my device. Please handle this information with care, since I've read about people running ubuntu or debian who got the system erased by this command.
    I've typed this (as root):

    apt-get autoremove

    my free rootfs increased by 8% but before I recommend to try this:

    apt-get --simulate autoremove

    this command simulates the autoremove action so, you can check the output in order to be sure that only useless packages will be removed.

    Try also: apt-get moo

    This won't help you in rootfs cleaning but is absolutely safe! ;-)
    how exactly do i use these things?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    michaaa62 | # 27 | 2014-01-09, 17:22 | Report

    If you used some Application Manager to install or remove packages, there is no need for the autoremove, because that is invoked by those Application Managers.

    If you did not use the Application Manager, but apt-get in X-Terminal you could use the command as root to erase the downloaded installable packages after the installation.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 3 of 3 | Prev |   1     2   3 |
vBulletin® Version 3.8.8
Normal Logout