{"id":5449,"date":"2019-07-12T21:05:42","date_gmt":"2019-07-13T02:05:42","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=5449"},"modified":"2023-09-30T20:04:30","modified_gmt":"2023-10-01T01:04:30","slug":"linux-finding-missing-disk-space","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=5449","title":{"rendered":"Linux &#8211; Finding &#8220;Missing&#8221; Disk Space"},"content":{"rendered":"<p>You can have &#8216;stuff&#8217; in a folder, mount a partition to that folder, and have disk space used for which you cannot account. Using a tool like df, you will see that 10GB of your 10GB disk is used, but using du the individual folders only account for 5GB.<\/p>\n<p>Rather than randomly umounting partitions to see if there&#8217;s anything in the mount point folder, you can bind mount root to another location and check the disk utilization on the new mount.<\/p>\n<p>&nbsp;<\/p>\n<p>[root@fedora123 ~]# mount -o bind \/ \/mnt\/fakeout\/<br \/>\n[root@fedora123 ~]# du -sh `ls \/mnt\/fakeout | grep -v mnt`<br \/>\n0 bin<br \/>\n0 boot<br \/>\n280K ca<br \/>\n8.0K cacert.pem<br \/>\n4.0K careq.pem<br \/>\n0 certs<br \/>\n0 crl<br \/>\n0 dev<br \/>\n44M etc<br \/>\n52K home<br \/>\n0 index.txt<br \/>\n0 lib<br \/>\n0 lib64<br \/>\n0 media<br \/>\n0 newcerts<br \/>\n0 openhab<br \/>\n724K opt<br \/>\n4.0K private<br \/>\n0 proc<br \/>\n847M root<br \/>\n0 run<br \/>\n0 sbin<br \/>\n227M srv<br \/>\n0 sys<br \/>\n4.0K tmp<br \/>\n3.0G usr<br \/>\n4.0K var<br \/>\n[root@fedora123 ~]# umount fakeout<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can have &#8216;stuff&#8217; in a folder, mount a partition to that folder, and have disk space used for which you cannot account. Using a tool like df, you will see that 10GB of your 10GB disk is used, but using du the individual folders only account for 5GB. Rather than randomly umounting partitions to &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[294],"class_list":["post-5449","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5449","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5449"}],"version-history":[{"count":3,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5449\/revisions"}],"predecessor-version":[{"id":10431,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5449\/revisions\/10431"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}