自从我更新到 11.10 后,我的主分区就一直被填满,但我不知道是什么原因造成的。我设法删除了大约 28gb(分区上有 35gb 容量),但它一直被填满,我什么也没做!
这给我带来了问题,因为我无法听任何音乐,甚至如果我再次注销也无法重新登录系统。我没有收到 Ubuntu 分区已满的警告,所以我的系统突然变得迟缓。
无论如何,磁盘使用情况分析器并没有给我任何可疑的提示,即磁盘使用率正在上升。
编辑:运行命令后
du -sch $HOME/.[a-z]*
我刚刚注意到一个相当大的文件......
26G /home/tom/.xsession-errors
这肯定不应该那么大!
编辑2:我做到了
cat .xsession-errors | less
在文件上,它充满了如下行:
11:15:10.436 I [fsevents:287] got event 2 with cookie 0 on 1748: /home/tom//.xsession-errors
11:15:10.436 I [fsevents:287] got event 2 with cookie 0 on 1748: /home/tom//.xsession-errors
11:15:10.436 I [fsevents:287] got event 2 with cookie 0 on 1748: /home/tom//.xsession-errors
11:15:10.436 I [fsevents:287] got event 2 with cookie 0 on 1748: /home/tom//.xsession-errors
11:15:10.436 I [fsevents:287] got event 2 with cookie 0 on 1748: /home/tom//.xsession-errors
11:15:10.436 I [fsevents:287] got event 2 with cookie 0 on 1748: /home/tom//.xsession-errors
11:15:10.436 I [fsevents:287] got event 2 with cookie 0 on 1748: /home/tom//.xsession-errors
11:15:10.436 I [fsevents:287] got event 2 with cookie 0 on 1748: /home/tom//.xsession-errors
11:15:10.437 I [fsevents:287] got event 2 with cookie 0 on 1748: /home/tom//.xsession-errors
11:15:10.437 I [fsevents:287] got event 2 with cookie 0 on 1748: /home/tom//.xsession-errors
11:15:10.437 I [fsevents:287] got event 2 with cookie 0 on 1748: /home/tom//.xsession-errors
11:15:10.437 I [fsevents:287] got event 2 with cookie 0 on 1748: /home/tom//.xsession-errors
11:15:10.437 I [fsevents:287] got event 2 with cookie 0 on 1748: /home/tom//.xsession-errors
11:15:10.437 I [fsevents:287] got event 2 with cookie 0 on 1748: /home/tom//.xsession-errors
11:15:10.437 I [fsevents:287] got event 2 with cookie 0 on 1748: /home/tom//.xsession-errors
11:15:10.437 I [fsevents:287] got event 2 with cookie 0 on 1748: /home/tom//.xsession-errors
编辑3:问题似乎出在 Spotify 本机客户端写入 .xsession-errors 文件时。我已在此处报告此错误:http://getsatisfaction.com/spotify/topics/spotify_is_writing_an_obscene_amount_of_information_to_error_file
答案1
运行iotop -o
显示 spotify 以恒定的 6.53mb/s 写入。某些原因导致 spotify 引发错误并写入 .xsession-errors 日志文件。
此处已向 spotify 报告错误: http://getsatisfaction.com/spotify/topics/spotify_is_writing_an_obscene_amount_of_information_to_error_file