LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   problem with a partition (http://www.linuxquestions.org/questions/linux-kernel-70/problem-with-a-partition-4175488522/)

lovelypingu 12-19-2013 02:24 AM

problem with a partition
 
hello dear friends,
i have a problem with one of my s-ata drive's partitions.
this problem is that when i check "df -h" output, it shows that 97% of a partition is used.
but when i check its size with "du -sh", the output shows that there is just 57% disk usage.
i done below actions, but the problem didn't solve yet:
1 - check "lsof" and there isn't any program that use this partition.
2 - reboot this machine.
3 - use "quotacheck -augm".
4 - use "fsck -f -C0 -y".
5 - mount and unmount it.

do you have any solution to solve the problem?

pan64 12-19-2013 02:44 AM

I'm not really sure if there was any problem.
1. df shows the free and used space of the device.
2. du displays the sum of the occupied space of the files. But it may miss some of your dirs (for example the ones beginning with .)
So it would be nice to see exactly how did you execute those commands (and in which dir, which user...)

rknichols 12-19-2013 10:46 AM

Does that filesystem contain any mount points where other filesystems are mounted? If so, data could be hiding under that active mount point.

lovelypingu 12-19-2013 10:42 PM

Quote:

Originally Posted by pan64 (Post 5083756)
I'm not really sure if there was any problem.
1. df shows the free and used space of the device.
2. du displays the sum of the occupied space of the files. But it may miss some of your dirs (for example the ones beginning with .)
So it would be nice to see exactly how did you execute those commands (and in which dir, which user...)

hello dear,
i run this cmd(du -sh) in main directory(mount point).
also i check hidden files with "ls -all", there isn't any hidden file.

Quote:

Originally Posted by rknichols (Post 5083983)
Does that filesystem contain any mount points where other filesystems are mounted? If so, data could be hiding under that active mount point.

hello dear,
there isn't exists any other mount point for that partition.

ondoho 12-20-2013 01:35 PM

what is the problem?

i am not sure what the commands 3) and 4) from your first post are supposed to do. can you elaborate?

please show us the complete terminal output from the commands you mentioned in your last post.

and please don't call me dear.

lovelypingu 12-21-2013 09:24 AM

2 Attachment(s)
hello my friend;)
i attached the output of the commands.

rknichols 12-21-2013 09:57 AM

Quote:

Originally Posted by lovelypingu (Post 5084300)
there isn't exists any other mount point for that partition.

From the thumbnails, I see that is your root filesystem. It contains mount points I can see for /boot, /home2, /home3, and /tmp, and undoubtedly has several more not shown (/proc, /dev, ...). Any of those mount point directories in the root filesystem could contain files that are hidden from du.

There is a way to access what might be hidden under those mount points.
Code:

mkdir /mnt/tmproot
mount --bind / /mnt/tmproot
du --max-depth=1 /mnt/tmproot

Large numbers for any of your mount point directories show you where data is hidden. You can access that data under /mnt/tmproot to copy it elsewhere or delete it if, for example, it turns out to be an old version of what is now stored in /home3 on /dev/sdc1. After you have finished cleaning out that hidden data, you should
Code:

umount /mnt/tmproot
rmdir /mnt/tmproot


lovelypingu 12-22-2013 10:05 PM

thank you dear rknichols,
your solution solved my problem.:)


All times are GMT -5. The time now is 06:24 PM.