Notices


Reply
Thread Tools
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#11
Root is on a separate 256M high-speed flash chip. I've heard that this was the largest available (integrated with the processor) at the time.
 
Posts: 278 | Thanked: 209 times | Joined on Dec 2009
#12
Ah. that makes sense. it's like flash0 and flash1 on the PSP.

I see. This chip also gets flashed when one uses the Flashing Tool for the n900?
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#13
If you just flash the main firmware, this is the only chip that gets flashed. The eMMC firmware will flash the 32GB built-in storage (but should rarely be needed).
 
Posts: 278 | Thanked: 209 times | Joined on Dec 2009
#14
Hmm. can the rootfs somehow be mounted when pluggin the n900 to a pc? from what I saw. It seems only MyDocs appears in mass storage mode.....

It'll make going through the files on it easier. instead of the terminal.
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#15
Nope - mass storage mode requires unmounting the filesystem (as it's exported at a low level). This obviously can't be done with the rootfs.
 

The Following User Says Thank You to Rob1n For This Useful Post:
SubCore's Avatar
Posts: 850 | Thanked: 626 times | Joined on Sep 2009 @ Vienna, Austria
#16
Originally Posted by Corso85 View Post
Hmm. can the rootfs somehow be mounted when pluggin the n900 to a pc?
yes that's possible, using sshfs.
__________________
"What we perceive is not nature itself, but nature exposed to our method of questioning."
-- Werner Karl Heisenberg
 

The Following User Says Thank You to SubCore For This Useful Post:
Posts: 78 | Thanked: 53 times | Joined on Nov 2009
#17
another noob question in regards to this, after deleting apps, the rootfs space does not seem to be recovered, even after a reboot. i had installed mplayer (19.4M). rootfs usage was 189M used , according to diskusage

then i used this cmd

dpkg-query --show --showformat='${Package;-50}\t${Installed-Size}\n' | sort -k2 -n

and it was shown at the bottom of the list (sorted by size)

i uninstalled it, rebooted and diskusage still showed 189M used. running the above commandline once again showed it was still there.

dpkg -L mplayer

returned that package mplayer does not contain any files?!

so, my question; how do you purge installed files sitting on rootfs?
 

The Following User Says Thank You to sierrafoxtrot For This Useful Post:
Posts: 1,208 | Thanked: 1,028 times | Joined on Oct 2007
#18
Originally Posted by sierrafoxtrot View Post
another noob question in regards to this, after deleting apps, the rootfs space does not seem to be recovered, even after a reboot. i had installed mplayer (19.4M). rootfs usage was 189M used , according to diskusage

then i used this cmd

dpkg-query --show --showformat='${Package;-50}\t${Installed-Size}\n' | sort -k2 -n

and it was shown at the bottom of the list (sorted by size)

i uninstalled it, rebooted and diskusage still showed 189M used. running the above commandline once again showed it was still there.

dpkg -L mplayer

returned that package mplayer does not contain any files?!

so, my question; how do you purge installed files sitting on rootfs?
Copy&paste output of these commands:
dpkg -l mplayer
ls -l /usr/bin/mplayer
 
Posts: 4,030 | Thanked: 1,633 times | Joined on Jul 2007 @ nd usa
#19
Originally Posted by Corso85 View Post
...
mauku
countdown-home
wormux
vpnc-gui
scummvm
omweather-weather-com-stations-db
load-applet
touchsearch
ioquake3
sopwith
ukeyboard
amazon-installer
burgerspace
pidgin
panucci
bounce
pygtkeditor
drnoksnes
vor
uqm
gonvert
vpnc
systeminfowidget
milkyway-wallpaper
ogg-support
liqtorch
omweather
rdesktop
facebook-services
dosbox
ap-installer
wifiinfo
kmplayer
dtg
mbarcode
crimson
transmission
braek
lighttpd
zoutube
simple-fmtx-widget
midori
wiicontrol
rootsh
stopwatch-home
gpodder
personal-gprs-mon
vncviewer
microfeed
account-plugin-butterfly
stockthis
mp-fremantle-003-pr
maelstrom
thai-ttf
personal-ip-address
leafpad
mg
mirror
simple-brightness-applet
mplayer
foreca-installer
ati85
tennix
dtg-installer
xchat
unzip
pidgin-maemo-docklet
decoders-support
enigma
conversations-inbox-widget
fmradio
madbomber
facebook-installer
libzeemote-conf
petrovich
recorder
mastory
liqflow
copernicium
...
Can I take it as the above ALL installed and run? If not, mind to share the details? TIA,

bun
 
Posts: 236 | Thanked: 223 times | Joined on Oct 2009 @ NE UK
#20
Just for fun, I've knocked together a quick perl script that can find the non-optified disk usage for a given package:

Code:
#!/usr/bin/perl

%known_optified = ();
%known_nonoptified = ();

sub is_secretly_optified($) {
  my ($file) = @_;

  # print "testing $file\n";

  if($known_optified{$file}) {
     # print "known optfified $file\n";
    return 1;
  }

  if($known_nonoptified{$file}) {
    # print "known nonoptfified $file\n";
    return 0;
  }

  unless($file) {
    return 0;
  }
  my $orig = $file;

  unless( -l $file) {
    $file =~ s/\/[^\/]*$//;
    if(is_secretly_optified($file)) {
      $known_optified{$orig} = 1;
      return 1;
    } else {
      $known_nonoptified{$orig} = 1;
      return 0;
    }
  }

  my $lsresult = `/bin/ls -l $file`;
  chomp($lsresult);

  if($lsresult =~ /->\s+(.*)/) {
    my $target = $1;
    # print "found symlink to $target\n";
    if($target =~ /^\/opt/ or $target =~ /^\/home/) {
      # print "remembering $target is optified?\n";
      # print "remembering $orig is optified?\n";
      $known_optified{$orig} = 1;
      return 1;
    } else {
      if(is_secretly_optified($target)) {
        $known_optified{$orig} = 1;
        return 1;
      } else {
        $known_nonoptified{$orig} = 1;
        return 0;
      }
    }
  }
}

while(<>) {
  unless($currentfile eq $ARGV) {
    $currentfile = $ARGV;
    if($out) {
      if($total >= 1024) {
        $total = sprintf("%0.2fM", $total / 1024);
      } else {
        $total = sprintf("%0.2fK", $total);
      }
      print "$out$currentpkg : total non-opt usage: "
            . "$total\n----------\n";
    }
    $out = undef;
    $total = undef;
    $currentfile = $ARGV;

    $currentpkg = $currentfile;
    $currentpkg =~ s/\.md5sums//;
    $currentpkg =~ s/.*\///;
  }

  s/^\S+\s+//;
  $suspect = "/$_";

  $du = undef;
  unless(/^opt/ or /^home/ or /^usr\/share\/(man|doc)\//) {
    next if(is_secretly_optified($suspect));
    $du = `du -s $suspect`;
    chomp $du;
    if($du =~ /^(\d+)/) {
      $total += $1;
      if($1 >= 1024) {
        $val  = sprintf("%0.2fM", $1 / 1024);
      } else {
        $val  = sprintf("%0.2fK", $1);
      }

      $du =~ s/^\d+/$val/;
    }
    $out .= "$currentpkg : $du\n";
  }
}


if($out) {
  if($total >= 1024) {
    $total = sprintf("%0.2fM", $total / 1024);
  } else {
    $total = sprintf("%0.2fK", $total);
  }
  print "$out$currentpkg : total non-opt usage: "
        . "$total\n---------\n";
}
If you save it as /usr/local/bin/find_non_opt_files.pl, you can run it giving /var/lib/dpkg/info/<pkgname>.md5sums as an argument. Here is the commandline and output running it on a sample package:

~# /usr/local/bin/find_non_opt_files.pl /var/lib/dpkg/info/burgerspace.md5sums
burgerspace : 4.00K /usr/share/pixmaps/burgerspace.xpm
burgerspace : 4.00K /usr/share/applications/hildon/burgerspace.desktop
burgerspace : 8.00K /usr/share/icons/hicolor/scalable/hildon/burgerspace.png
burgerspace : 4.00K /usr/share/icons/hicolor/48x48/hildon/burgerspace.png
burgerspace : 4.00K /usr/share/icons/hicolor/32x32/hildon/burgerspace.png
burgerspace : 4.00K /usr/share/menu/burgerspace
burgerspace : total non-opt usage: 28.00K
-------------------------------------------------------
It will also take multiple arguments, so to see the results for all packages:

Code:
 /usr/local/bin/find_non_opt_files.pl /var/lib/dpkg/info/*.md5sums
which will produce a lot of output, including about system packages..

Edit: Just to add, this hasn't been security audited, so if you should have a line like "1234 asdf;rm -rf /" in one of your *.md5sums, or other similar problems, you're on your own!

Further Edit: Script amended to take account of symlinked directories as per posts around http://talk.maemo.org/showthread.php...655#post438655

One more edit: don't count files in /home as non-optified

Last edited by kwotski; 2009-12-25 at 16:34.
 

The Following 21 Users Say Thank You to kwotski For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 13:41.