【问题标题】:Debian Wheezy : how to set noatime parameter for root FS?Debian Wheezy:如何为 root FS 设置 noatime 参数?
【发布时间】:2013-08-27 22:51:42
【问题描述】:

我有一个使用 Debian Wheezy 的嵌入式 ARM 系统。我想用“noatime”选项挂载 SD root fs。我通常只是将它添加到 /etc/fstab,但是在我的系统上 /etc/fstab 是空的,但是根 fs 肯定是由内核安装的。

有谁知道在这种情况下在哪里设置 noatime 选项? RFS 的安装发生在 Debian 的某个地方,因为我在启动时看到了这条消息。

[14.442749] EXT4-fs (mmcblk0p2):重新安装。选项:(空)

【问题讨论】:

  • 你有一个压缩的初始文件系统来挂载真实的吗?您是否有通过内核命令行的引导加载程序,例如 uboot 或 grub?

标签: linux filesystems embedded debian


【解决方案1】:

您可以在系统启动后使用 noatime 选项重新安装它。

在我的例子中,使用 noatime 重新挂载根文件系统:

sudo mount -o remount -o noatime /

您可以使用命令 mount 查看当前选项并检查显示 on /

的行
/dev/disk/by-uuid/3984fee6-c70a-4fee-96a0-6d4a4103abc6 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)

【讨论】:

    猜你喜欢
    • 2014-07-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-28
    • 2017-07-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多