Find the answer to your Linux question:
Results 1 to 3 of 3
Hello guys this is vedaprasad When i use du -sh /home to see the used space it shows 56k.I have mounted /home seperately with 1000mb,when i use df -h /home ...
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Posts
    7

    Problem with disk space

    Hello guys this is vedaprasad

    When i use du -sh /home to see the used space it shows 56k.I have mounted /home seperately with 1000mb,when i use df -h /home it shows total is 990mb , used 20mb and available 967mb. why is the diffrence so high ?
    will / automatically assign space to /home even after mounting it seperatly .when i do cd /home and then try du -sh it shows 56k only .how can that be ? Will there be 2 home dir one mounted seperatly and the other which is under / .


    thanks in advance

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    /home is probably a link, in which case you need to use the -L option to the du command in order to properly follow symbolic links. Unfortunatly, that will probably give you the wrong information also. If you add a trailing slash after the directory name, it will ignore the fact that it is a link. IE, try this: du -sh /home/
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    I would assume reserved space.

    Google: ext3 reserved space

    Basically, no data is on /home (56K) and df -ah shows 20MB used.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...