Der Ubuntu-Server zeigt mir, dass ich fast alle Festplatten benutze:
Usage of /: 95.5% of 118.12GB
Und ich versuche, große Ordner und Dateien zu finden, und führe ncdu aus:
ncdu 1.8 ~ Use the arrow keys to navigate, press ? for help
--- / ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5.5GiB [##########] /root
2.3GiB [#### ] /var
628.6MiB [# ] /usr
209.9MiB [ ] /lib
28.2MiB [ ] /boot
8.6MiB [ ] /bin
7.7MiB [ ] /sbin
6.6MiB [ ] /etc
208.0KiB [ ] /run
112.0KiB [ ] /tmp
48.0KiB [ ] /opt
e 16.0KiB [ ] /lost+found
8.0KiB [ ] /dev
8.0KiB [ ] /media
4.0KiB [ ] /lib64
e 4.0KiB [ ] /srv
e 4.0KiB [ ] /selinux
e 4.0KiB [ ] /mnt
e 4.0KiB [ ] /home
0.0 B [ ] /proc
0.0 B [ ] /sys
@ 0.0 B [ ] initrd.img
@ 0.0 B [ ] vmlinuz
Entsprechend ncdubenutze ich ungefähr 10 GiBvon 128 GiB- es geht um 10 %. Widerspruch.
Wie reinige ich meine, ubutntu serverohne neu zu starten?
Ich dachte das ncdulüge und benutzte andere Apps um große Dateien und Ordner zu finden. Alle zeigen das gleiche Ergebnis wie ncdu.
Und df -hBefehl zeigt, dass die Festplatte voll ist.
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda 119G 113G 0 100% /
udev 2.0G 8.0K 2.0G 1% /dev
tmpfs 788M 212K 788M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 0 2.0G 0% /run/shm
Aktualisieren
sudo du -sch /* Ergebnis:
/# sudo du -sch /*
8.7M /bin
29M /boot
8.0K /dev
6.6M /etc
4.0K /home
0 /initrd.img
210M /lib
4.0K /lib64
16K /lost+found
8.0K /media
4.0K /mnt
48K /opt
du: cannot access `/proc/4470/task/4470/fd/4': No such file or directory
du: cannot access `/proc/4470/task/4470/fdinfo/4': No such file or directory
du: cannot access `/proc/4470/fd/4': No such file or directory
du: cannot access `/proc/4470/fdinfo/4': No such file or directory
0 /proc
5.0G /root
212K /run
7.8M /sbin
4.0K /selinux
4.0K /srv
0 /sys
112K /tmp
629M /usr
2.3G /var
0 /vmlinuz
8.1G total
8.1G total wie immer. Aber ich sehe cannot accessReihen, vielleicht ein Problem wegen ihnen.
Dann habe ich den größten Ordner eingecheckt /. Es ist /root:
/# sudo du -sch /root/*
96K /root/Downloads
2.5G /root/Dropbox
36K /root/nohup.out
4.0K /root/npm-debug.log
4.0K /root/readonly
980K /root/redis-2.6.16.tar.gz
228M /root/tmp
2.7G total
du -sch /*, welche Stammverzeichnisse den meisten Speicherplatz belegen, und steigen Sie von dort zu den Orten ab, die den meisten Speicherplatz belegen.
8.1 GiBvoll (fügte dies zu aktualisieren). Kann nicht herausfinden, wo der Rest ist100 GiB