摘要: 这已经是一个时间非常长的问题了,在我的Thinkpad T410下(Gentoo系统),当使用U盘拷贝数据时,经常会导致/var/log/message文件非常大,从而使得/var分区没有空间。 因为其他的机器都没有此问题,所以一直没有着手解决。中间也偶尔查过...
这已经是一个时间非常长的问题了,在我的Thinkpad T410下(Gentoo系统),当使用U盘拷贝数据时,经常会导致/var/log/message文件非常大,从而使得/var分区没有空间。 因为其他的机器都没有此问题,所以一直没有着手解决。中间也偶尔查过一些资料,涉及到日志的处理,因为我这机器是作为桌面工作使用,所有也没特别处理,一般是直接使用:echo ""> /var/log/message 完事。 今天因为有大量的数据要进行拷贝,中间可以查资料的时间长一些,所以又上网开始解决这个问题。果然找到一些。
_ Each time after boot, the /va/log/message file keeps increasing due to following repeating messages. The only way to stop this seems to be just deleting the /var/log/message file. Is there any better way that can stop the output of the repeating messages from kernel to /var/log/message? Thanks.Sep 24 01:58:28 hp kernel: usb-storage: -- transport indicates command failure
Sep 24 01:58:28 hp kernel: usb-storage: Issuing auto-REQUEST_SENSE
Sep 24 01:58:28 hp kernel: usb-storage: Bulk Command S 0x43425355 T 0x96c L 18 F 128 Trg 0 LUN 3 CL 6
.................. _
下面是解决方法:
_ did you activate usb debugging in the kernel.I have an external hard drive connected through a usb port, but the problem seemed always there whether I had the external hard drive connected or disconnected. The external hard drive was turned off all the time.
from .config for kernel:
CONFIG_USB_STORAGE_DEBUG=y
I have unset that option and rebuilt kernel. The problem has now gone.
_