The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Discrepancy between size and available disk space

    Discussion in 'Linux Compatibility and Software' started by wearetheborg, Mar 27, 2009.

  1. wearetheborg

    wearetheborg Notebook Virtuoso

    Reputations:
    1,282
    Messages:
    3,122
    Likes Received:
    0
    Trophy Points:
    105
    Just installed Lenny.

    There is a mismatch between size and available space when doing df:
    Eg, it says

    Code:
    /dev/sda8 Size:163G Used:188M Avail:155G 
    
    Actually I manually partitioned, and I remember seeing a 5% field in partition properties; I dont recall what it was, but it seems that I'm losing 5% for every ext3 partition.

    I also made a fat32 partition which shows full space as available
     
  2. Charr

    Charr Notebook Deity

    Reputations:
    415
    Messages:
    1,564
    Likes Received:
    0
    Trophy Points:
    55
    Ext3 has a pretty big overhead for journals and other filesystem tasks. You can double check by running the sync command, then df.

    If the space is important, you can try XFS or reiser3, both which have a lot lower overhead.
     
  3. wearetheborg

    wearetheborg Notebook Virtuoso

    Reputations:
    1,282
    Messages:
    3,122
    Likes Received:
    0
    Trophy Points:
    105
  4. archer7

    archer7 Notebook Evangelist

    Reputations:
    289
    Messages:
    647
    Likes Received:
    0
    Trophy Points:
    30
    Debian doesn't do that. Ext* does. The default reserved space for ext3 is 5%, but that's unnecessary in most cases. System critical spaces like /, /root, /var, and /tmp should have the 5% reservation, but /home and whatever else storage partitions you have don't need nearly that much.

    You can change the percentage of reserved space with tune2fs:
    Code:
    # tune2fs -m 1 /dev/sda2  ##<--- set reserved space for /dev/sda2 to 1%
    # tune2fs -m 0 /dev/sda2  ##<--- set reserved space for /dev/sda2 to 0
     
  5. wearetheborg

    wearetheborg Notebook Virtuoso

    Reputations:
    1,282
    Messages:
    3,122
    Likes Received:
    0
    Trophy Points:
    105
    Interesting, my Suse SLED 10 system ext3 filesystems dont ssem to reserve any space at all :confused:
     
  6. archer7

    archer7 Notebook Evangelist

    Reputations:
    289
    Messages:
    647
    Likes Received:
    0
    Trophy Points:
    30
    :eek: Really?

    Well, that's probably not surprising. Distros like Suse are not known for leaving things at default.
     
  7. wearetheborg

    wearetheborg Notebook Virtuoso

    Reputations:
    1,282
    Messages:
    3,122
    Likes Received:
    0
    Trophy Points:
    105
    My SLED 10 has two partitions (created by me) / and /home
    / has capacity 7 GB, of which only only 82M now remains :eek:

    I really should upgrade now.... :D