Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    /dev/mmcblk0p2: who occupies its space ?

    Reply
    Page 1 of 2 | 1   2   | Next
    dnastase | # 1 | 2009-12-02, 12:33 | Report

    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!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    mattmull | # 2 | 2009-12-02, 12:37 | Report

    symbolic links in /home to other directories?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    dnastase | # 3 | 2009-12-03, 05:14 | Report

    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 ?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    vinfdz | # 4 | 2010-01-25, 23:00 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    j.s | # 5 | 2010-01-25, 23:11 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    dnastase | # 6 | 2010-01-26, 01:18 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    j.s | # 7 | 2010-01-26, 05:27 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Rob1n | # 8 | 2010-01-26, 09:35 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Rob1n | # 9 | 2010-01-26, 09:38 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    pgv1982 | # 10 | 2010-01-26, 12:39 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 1 of 2 | 1   2   | Next
vBulletin® Version 3.8.8
Normal Logout