通过 fstab 安装在繁忙框中的 UBIFS 无法识别相关时间选项



当我尝试挂载我的 UBIFS 文件时,我收到此错误ytem:

mount -o remount,rw /config
UBIFS error (pid 1265): ubifs_parse_options: unrecognized mount option "relatime" or
 missing value  

我的fstab的内容是:

root@drgos:~# cat /etc/fstab                                                        
# WARNING: this is an auto generated file, please use uci to set static filesystems 
/dev/ubi0_0     /config ubifs   ro    0       0 

当我键入挂载时,结果是:

root@drgos:~# mount                                                                 
rootfs on / type rootfs (rw)                                                        
none on /proc type proc (rw,relatime)                                               
none on /sys type sysfs (rw,relatime)                                               
tmpfs on /dev type tmpfs (rw,relatime,size=512k)                                    
none on /dev/pts type devpts (rw,relatime,mode=600)                                 
/dev/ubi0_0 on /config type ubifs (ro,relatime)                                     
none on /proc/bus/usb type usbfs (rw,relatime)  

我不明白为什么我有 relatime 选项,因为那个选项在我的 fstab 中不存在!

我正在使用 BusyBox v1.11.2 (2014-01-13 09:35:41 CET) 多呼叫二进制文件。

这些选项取决于 Linux 内核版本。 Relatime是一般的安装选项。 relatime 是较新的 Linux 内核的默认值。 其他文件系统可能会悄悄地忽略未知选项,而 ubifs 正在失败。 你可以试试mount -o remount,rw,noatime,norelatime /config。 您的mount命令显示 /config 目录已使用 relatime 挂载;这是 Busybox Mount 小程序收集的信息。

此信息通过getmntent_r()功能收集。 如果 busybox 是动态链接的,则"C"库可能会将此信息作为 *mnt_opts* 字符串的一部分提供。

mount -o remount,rw,noatime,norelatime /config的想法是尝试覆盖此信息,以便 UbiF 对其挂载选项感到满意。 另一种方法是简单地umount然后手动再次mount

 umount /config
 mount -t ubifs /dev/ubi0_0 /config

这样就不会检索以前的装载信息。

最新更新