Gentoo下使用U盘拷贝数据导致/var/log/message过大的问题

Gentoo下使用U盘拷贝数据导致/var/log/message过大的问题


发布日期: 1970-01-01 更新日期: 2015-02-05 编辑:giser 浏览次数: 4377

标签:

摘要: 这已经是一个时间非常长的问题了,在我的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.

_

关注公众号
获取免费资源

随机推荐


Copyright © Since 2014. 开源地理空间基金会中文分会 吉ICP备05002032号

Powered by TorCMS

OSGeo 中国中心 邮件列表

问题讨论 : 要订阅或者退订列表,请点击 订阅

发言 : 请写信给: osgeo-china@lists.osgeo.org