我用我妈妈的电脑运行着Ubuntu 12.04 LTS。一直都很正常,但突然间syslog开始填满了。我刚刚删除了一个大小为400GB的/var/log/syslog文件。是的,就是千兆字节。
虽然我相信其中可能有一些有用的信息,但我不确定要筛选400GB的信息是否明智。更令人惊讶的是,这发生在8个小时内——中午左右我运行了df命令,从那时到现在,她的硬盘使用量从接近70%增加到100%,增加了30%。
是什么原因导致这种情况,我该如何解决?
编辑: 看起来USB设备是罪魁祸首。
虽然我相信其中可能有一些有用的信息,但我不确定要筛选400GB的信息是否明智。更令人惊讶的是,这发生在8个小时内——中午左右我运行了df命令,从那时到现在,她的硬盘使用量从接近70%增加到100%,增加了30%。
是什么原因导致这种情况,我该如何解决?
编辑: 看起来USB设备是罪魁祸首。
Sep 8 08:52:10 pamela-desktop kernel: [ 6198.157829] usb 1-3: usbfs: process 1500 (demond_nscan) did not claim interface 3 before use
Sep 8 08:52:10 pamela-desktop kernel: [ 6198.157836] usb 1-3: usbfs: process 1500 (demond_nscan) did not claim interface 3 before use
Sep 8 08:52:10 pamela-desktop kernel: [ 6198.157842] usb 1-3: usbfs: process 1500 (demond_nscan) did not claim interface 3 before use
Sep 8 08:52:10 pamela-desktop kernel: [ 6198.157849] usb 1-3: usbfs: process 1500 (demond_nscan) did not claim interface 3 before use
Sep 8 08:52:10 pamela-desktop kernel: [ 6198.157857] usb 1-3: usbfs: process 1500 (demond_nscan) did not claim interface 3 before use
Sep 8 08:52:10 pamela-desktop kernel: [ 6198.157863] usb 1-3: usbfs: process 1500 (demond_nscan) did not claim interface 3 before use
Sep 8 08:52:10 pamela-desktop kernel: [ 6198.157870] usb 1-3: usbfs: process 1500 (demond_nscan) did not claim interface 3 before use
Sep 8 08:52:10 pamela-desktop kernel: [ 6198.157877] usb 1-3: usbfs: process 1500 (demond_nscan) did not claim interface 3 before use
Sep 8 08:52:10 pamela-desktop kernel: [ 6198.157884] usb 1-3: usbfs: process 1500 (demond_nscan) did not claim interface 3 before use
Sep 8 08:52:10 pamela-desktop kernel: [ 6198.157891] usb 1-3: usbfs: process 1500 (demond_nscan) did not claim interface 3 before use
tail -n20 /var/log/syslog
来查看最后20行。 - mikewhatevernscan
是一个端口扫描应用程序,所以这可能是某人对它的修改(但这只是我的猜测)。如果这不是你明确要运行的应用程序,我建议尝试找到可执行文件(类似于find / -iname demond_nscan
),并将其重命名/更改权限,使其无法执行。(这样,如果它实际上对某些东西很重要,你就没有丢失它,而如果它被其他东西启动,你可能会注意到。另外,检查一下crontab -l
?) - Steve Kroon