解決策をお探しの場合は、編集#3をご覧ください。
Xubuntu 16.04 LTSを実行していますが、システムモニター(rootとして)によると100%いっぱいの最大40GBのルートパーティションがあります。多くのプログラムが正しく機能していないので、それは間違いなくいっぱいです。
しかし、どういうわけか、何がスペースを使っているのかわからないようです!Baobab(ルートとして)は、ルートパーティションで使用された合計15.5 GBのみを報告します!
編集:また、ここに/ varがあります-人々はそれが大きいと言いました。Baobabは/ varに対して1GBしか報告せず、/ var / logは空です。走ってみましたsudo rm -R /var/log
が効果がありませんでした。
So, how do I find out what is using my disk space, and how do I prevent it from filling up my root partition? This is a huge problem, please help! Thank you in advance :)
EDIT 2: As posted in the answer section, sudo lsof / | awk '{if(\$7 > 1048576) print \$7/1048576 \"MB\" \" \" \$9 }' | sort -n -u
returns 11222.7MB /var/log/kern.log 11222.9MB /var/log/syslog
, however, I can't seem to figure out how to delete these files, and additionally, I would like to figure out how I can permanently prevent these files from growing this large. This answer to another question suggested that I look into the logs and see what's filling them up, so ideally I'd like some way to read the contents of these mystery files.
EDIT 3: I have temporarily fixed this issue by mounting /var/log on a separate partition.
ただし、これを引き起こしているある種のバグがまだあります。このバグを修正したい場合は、バグレポートに情報を提供してください(または少なくとも注意を払ってください):https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1643719およびhttps: //bugzilla.kernel.org/show_bug.cgi?id=188331ありがとうございます:)
ディスクスペースを使用するが、ツールには表示されないファイルアクセスには、削除された(ただし開いたままの)ファイルと書き込み中のファイルの2種類があります。
私はこれらの2つのエイリアスを定義していて、非常に便利だと思います。
# from http://www.certpal.com/blogs/2010/12/find-open-files-in-linux-using-lsof/
alias bigopenfiles="sudo lsof / | awk '{if(\$7 > 1048576) print \$7/1048576 \"MB\" \" \" \$9 }' | sort -n -u"
alias deletedfiles="sudo lsof / | egrep 'PID|\(deleted\)'"
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加