[英]UBIFS mount in busybox via fstab does not recognize relatime option
I am getting this error when I try to mount my UBIFS filesytem: 尝试挂载UBIFS文件系统时出现此错误:
mount -o remount,rw /config
UBIFS error (pid 1265): ubifs_parse_options: unrecognized mount option "relatime" or
missing value
The content of my fstab is : 我的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
And when I type mount the result is : 当我键入mount时,结果是:
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)
I do not understand why I have the option relatime since that one is not present in my fstab! 我不明白为什么我有relatime选项,因为fstab中不存在该选项!
I am using BusyBox v1.11.2 (2014-01-13 09:35:41 CET) multi-call binary. 我正在使用BusyBox v1.11.2(2014-01-13 09:35:41 CET)多调用二进制文件。
These options are dependent on the Linux kernel version. 这些选项取决于Linux内核版本。 relatime is a general mount options.
relatime是一般的安装选项。 relatime is the default for newer Linux kernels.
relatime是较新的Linux内核的默认设置。 Other filesystems may quietly ignore unknown options, whereas ubifs is failing.
其他文件系统可能会悄悄地忽略未知选项,而ubifs则会失败。 You can try
mount -o remount,rw,noatime,norelatime /config
. 您可以尝试
mount -o remount,rw,noatime,norelatime /config
。 Your mount
command shows the /config directory is mounted with relatime ; 您的
mount
命令显示/ config目录已通过relatime挂载; this is information that busybox mount applet collected. 这是busybox安装小程序收集的信息。
This information is collected with the getmntent_r()
function. 此信息是使用
getmntent_r()
函数收集的。 If busybox is dynamically linked, then the 'C' library may be giving this information as part of the *mnt_opts* string. 如果busybox是动态链接的,则“ C”库可能会将此信息作为* mnt_opts *字符串的一部分提供。
The idea with mount -o remount,rw,noatime,norelatime /config
is to try and over-ride this information so that UbiFs will be happy with its mount options. 使用
mount -o remount,rw,noatime,norelatime /config
的想法是尝试覆盖此信息,以便UbiF对其安装选项感到满意。 The other way is to simply umount
and then mount
again manually. 另一种方法是简单地
umount
,然后mount
手动一次。
umount /config
mount -t ubifs /dev/ubi0_0 /config
This way previous mount information will not be retrieved. 这样,将不会检索以前的安装信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.