bizzu
09-06-2005, 22:36
Ho questo strano problema: nonostante abbia una partizione di root di 5 giga con una debian leggera leggera, ho esaurito lo spazio su disco!
Dopo aver cercato con du qual è la cartella che occupa così tanto, ho scoperto che è var/log:
debian:/var/log# ls -li
totale 4899435
13604 -rw-r----- 1 root adm 17761 2005-06-08 23:17 auth.log
16793 -rw-r--r-- 1 root root 230349 2005-04-20 20:15 base-config.log
16770 -rw-r--r-- 1 root root 5681 2005-04-20 20:15 base-config.timings
9739 -rw-rw-r-- 1 root utmp 768 2005-04-21 21:22 btmp
16748 -rw-r--r-- 1 root root 4317 2005-06-09 22:20 daemon.log
16759 drwxr-xr-x 3 root root 200 2005-04-20 20:01 debian-installer
200 -rw-r--r-- 1 root root 1668890644 2005-06-08 23:10 debug
9716 -rw-r--r-- 1 root root 15454 2005-06-09 21:54 dmesg
13605 drwxr-s--- 2 Debian-exim adm 96 2005-04-21 08:12 exim4
28009 -rw-r--r-- 1 root root 972 2005-04-21 22:07 fontconfig.log
1807 -rw-r--r-- 1 root root 91100 2005-06-09 22:20 kdm.log
170 -rw-r--r-- 1 root root 1669969566 2005-06-08 23:10 kern.log
3724 drwxr-xr-x 2 root root 48 2005-04-20 19:59 ksymoops
9740 -rw-rw-r-- 1 root utmp 292292 2005-06-09 22:20 lastlog
16773 -rw-r--r-- 1 root root 0 2005-04-20 20:02 lpr.log
16779 -rw-r--r-- 1 root root 0 2005-04-24 17:04 mail.err
16777 -rw-r--r-- 1 root root 0 2005-04-24 17:04 mail.info
16774 -rw-r--r-- 1 root root 0 2005-04-24 17:04 mail.log
16778 -rw-r--r-- 1 root root 0 2005-04-24 17:04 mail.warn
16784 -rw-r--r-- 1 root root 2358365 2005-06-08 23:10 messages
13595 drwxr-sr-x 2 news news 136 2005-04-20 20:02 news
75 -rw-r--r-- 1 root root 1669978760 2005-06-08 23:10 syslog
16775 -rw-r--r-- 1 root root 3361 2005-04-25 12:37 user.log
16776 -rw-r--r-- 1 root root 0 2005-04-20 20:02 uucp.log
9738 -rw-rw-r-- 1 root utmp 428544 2005-06-09 22:20 wtmp
1311 -rw-r--r-- 1 root root 48253 2005-06-08 22:31 XFree86.0.log
515 -rw-r--r-- 1 root root 36107 2005-04-25 12:37 XFree86.0.log.old
Che sono quei file che occupano UN GIGA?? Posso cancellarli?
Dopo aver cercato con du qual è la cartella che occupa così tanto, ho scoperto che è var/log:
debian:/var/log# ls -li
totale 4899435
13604 -rw-r----- 1 root adm 17761 2005-06-08 23:17 auth.log
16793 -rw-r--r-- 1 root root 230349 2005-04-20 20:15 base-config.log
16770 -rw-r--r-- 1 root root 5681 2005-04-20 20:15 base-config.timings
9739 -rw-rw-r-- 1 root utmp 768 2005-04-21 21:22 btmp
16748 -rw-r--r-- 1 root root 4317 2005-06-09 22:20 daemon.log
16759 drwxr-xr-x 3 root root 200 2005-04-20 20:01 debian-installer
200 -rw-r--r-- 1 root root 1668890644 2005-06-08 23:10 debug
9716 -rw-r--r-- 1 root root 15454 2005-06-09 21:54 dmesg
13605 drwxr-s--- 2 Debian-exim adm 96 2005-04-21 08:12 exim4
28009 -rw-r--r-- 1 root root 972 2005-04-21 22:07 fontconfig.log
1807 -rw-r--r-- 1 root root 91100 2005-06-09 22:20 kdm.log
170 -rw-r--r-- 1 root root 1669969566 2005-06-08 23:10 kern.log
3724 drwxr-xr-x 2 root root 48 2005-04-20 19:59 ksymoops
9740 -rw-rw-r-- 1 root utmp 292292 2005-06-09 22:20 lastlog
16773 -rw-r--r-- 1 root root 0 2005-04-20 20:02 lpr.log
16779 -rw-r--r-- 1 root root 0 2005-04-24 17:04 mail.err
16777 -rw-r--r-- 1 root root 0 2005-04-24 17:04 mail.info
16774 -rw-r--r-- 1 root root 0 2005-04-24 17:04 mail.log
16778 -rw-r--r-- 1 root root 0 2005-04-24 17:04 mail.warn
16784 -rw-r--r-- 1 root root 2358365 2005-06-08 23:10 messages
13595 drwxr-sr-x 2 news news 136 2005-04-20 20:02 news
75 -rw-r--r-- 1 root root 1669978760 2005-06-08 23:10 syslog
16775 -rw-r--r-- 1 root root 3361 2005-04-25 12:37 user.log
16776 -rw-r--r-- 1 root root 0 2005-04-20 20:02 uucp.log
9738 -rw-rw-r-- 1 root utmp 428544 2005-06-09 22:20 wtmp
1311 -rw-r--r-- 1 root root 48253 2005-06-08 22:31 XFree86.0.log
515 -rw-r--r-- 1 root root 36107 2005-04-25 12:37 XFree86.0.log.old
Che sono quei file che occupano UN GIGA?? Posso cancellarli?