连接USB闪存盘时,“不存在缓存模式页面”


9

将USB闪存盘(格式化为NTFS)连接到装有Ubuntu Server 12.04的笔记本电脑时,出现以下消息:

[ 3572.355603] sd 2:0:0:0: [sdb] No Caching mode page present
[ 3572.355640] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 3572.361599] sd 2:0:0:0: [sdb] No Caching mode page present
[ 3572.361636] sd 2:0:0:0: [sdb] Assuming drive cache: write through

我在终端中将它们正确放置,因此应按Ctrl+C继续进行工作(输入命令)。
是正常的还是我必须以某种方式设置缓存模式?
谢谢。

Answers:


3

似乎为插入笔记本电脑的所有设备启用了写缓存,或者该/etc/fstab文件具有选项async。就像是:

[...]
/dev/sdb1    /media/USB    auto        async    0   0
/dev/sdb1    /media/USB    auto        default    0   0
[...]

(注:default选项是一样的rwsuiddevexecautonouser,和async

或在中激活hdparm

sudo /sbin/hdparm -I /dev/sdb

/dev/sdb:
[...]
Commands/features:
    Enabled Supported:
       *    SMART feature set
       *    Power Management feature set
       *    Write cache <-------
       *    Look-ahead
       *    WRITE_VERIFY command
[...]
Checksum: correct

这是默认选项。因此,看来您的USB不支持触发strout警告的此特性。您可以禁用它来替换fstab或发行中的行sudo hdparm -W 0 /dev/sdb

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.