Reply
Thread Tools
Posts: 121 | Thanked: 54 times | Joined on Oct 2007 @ New York, US
#1
The /home is mounted on /dev/mmcblk0p2. It shows:

/home/user # cd /home
/home # df -h .
Filesystem Size Used Available Use% Mounted on
/dev/mmcblk0p2 2.0G 1.4G 488.7M 74% /home
/home #

but if I check how much is used:

/home # du -xhs .
183.7M .

Is there something I'm missing ? There is a discrepancy of roughly 1.2Gb!
 
Posts: 29 | Thanked: 6 times | Joined on Oct 2009
#2
symbolic links in /home to other directories?
 
Posts: 121 | Thanked: 54 times | Joined on Oct 2007 @ New York, US
#3
Originally Posted by mattmull View Post
symbolic links in /home to other directories?
I really don't see how that would explain my issue...

All: anybody else seeing this on their N900-s ?
 
Posts: 5 | Thanked: 0 times | Joined on Jan 2010
#4
Originally Posted by dnastase View Post
I really don't see how that would explain my issue...

All: anybody else seeing this on their N900-s ?
yep, i do have. its really annoying me , can someone help us to remove the #@$&*) thing. As i cant store messages and or install.
 
Posts: 486 | Thanked: 251 times | Joined on Oct 2009
#5
Originally Posted by dnastase View Post
The /home is mounted on /dev/mmcblk0p2. It shows:

/home/user # cd /home
/home # df -h .
Filesystem Size Used Available Use% Mounted on
/dev/mmcblk0p2 2.0G 1.4G 488.7M 74% /home
/home #

but if I check how much is used:

/home # du -xhs .
183.7M .

Is there something I'm missing ? There is a discrepancy of roughly 1.2Gb!
du adds up all the file sizes. It does not count the unused space in the last cluster of a file. If you have a lot of small files, this wasted space adds up. The VFAT Mydocs is even worse for small files.
 
Posts: 121 | Thanked: 54 times | Joined on Oct 2007 @ New York, US
#6
Originally Posted by j.s View Post
du adds up all the file sizes. It does not count the unused space in the last cluster of a file. If you have a lot of small files, this wasted space adds up. The VFAT Mydocs is even worse for small files.
AFAIK it's actually the other way around: du shows how much of the disk is used, not how much a file size is. Thus the use of du is correct in trying to figure out how much disk space a directory occupies.
 
Posts: 486 | Thanked: 251 times | Joined on Oct 2009
#7
Originally Posted by dnastase View Post
AFAIK it's actually the other way around: du shows how much of the disk is used, not how much a file size is. Thus the use of du is correct in trying to figure out how much disk space a directory occupies.
Then why does du take longer to run, and why is df almost instantaneous? I was not making things up with my answer.
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#8
Originally Posted by j.s View Post
Then why does du take longer to run, and why is df almost instantaneous? I was not making things up with my answer.
du takes longer to run as it needs to look at every single file to get the details, whereas df only needs to look at the filesystem metadata (see "tune2fs -l" for example). du should report the actual space used (unless run with the --apparent-size flag), taking into account the filesystem block size.
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#9
Originally Posted by dnastase View Post
The /home is mounted on /dev/mmcblk0p2. It shows:

/home/user # cd /home
/home # df -h .
Filesystem Size Used Available Use% Mounted on
/dev/mmcblk0p2 2.0G 1.4G 488.7M 74% /home
/home #

but if I check how much is used:

/home # du -xhs .
183.7M .

Is there something I'm missing ? There is a discrepancy of roughly 1.2Gb!
This looks like you've got some filesystem corruption. I'd suggest running (as root) "fsck -n -f /dev/mmcblk0p2" and seeing whether there's any errors reported. Fixing it could be very tricky though as the /home partition can't be unmounted.
 
Posts: 4 | Thanked: 9 times | Joined on Jan 2010 @ Buenos Aires, Argentina
#10
Hello! I had the same problem and I reflash bouth partitions and works.

First go to:

https://wiki.maemo.org/Updating_the_firmware

Download the firmware (RX-51_2009SE_2.2009.51-1_PR_COMBINED_MR0_ARM.bin) and the eMMC VANILLA one (note that you have to install the old version - RX-51_2009SE_1.2009.41-1.VANILLA_PR_EMMC_MR0_ARM.bin).

Install the eMMC first and then the last combined firmware later.

Enjoy!
Pd: Don't forget to backup previusly... this will leave your N900 like out of the box
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 03:24.