2014-01-13 89 views
1

我收到此錯誤:UBIFS通過fstab文件中busybox的安裝,當我嘗試安裝我UBIFS filesytem不承認relatime選項

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

我的fstab文件的內容是:

[email protected]:~# 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 

而且當我鍵入安裝的結果是:

[email protected]:~# 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)多重調用二進制文件。

回答

0

這些選項依賴於Linux內核版本。 relatime是一般的掛載選項。 relatime是較新的Linux內核的默認值。其他文件系統可能會安靜地忽略未知選項,而ubifs則失敗。你可以試試mount -o remount,rw,noatime,norelatime /config。您的mount命令顯示/config目錄安裝有relatime;這是信息,busybox安裝小程序收集。

使用getmntent_r()函數收集此信息。如果busybox是動態鏈接的,則'C'庫可能會將此信息作爲* mnt_opts *字符串的一部分。

mount -o remount,rw,noatime,norelatime /config這個想法是嘗試和超越這個信息,以便UbiFs將滿足其掛載選項。另一種方法是再次手動簡單地umount然後mount

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

這樣以前的裝載信息將不會被檢索。

相關問題