mount root partition - noatime,ro

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

mount root partition - noatime,ro

3,343 次查看
joštnovak
Contributor II

Hello,

I'm trying to mount root partition as read-only and with option noatime to avoid write cycles on SD card (on similar platform as sabresd).

setting bootargs this way:

bootargs_mmc=setenv bootargs ${bootargs} root=${cur_root_part} rootwait ro rootflags=noatime

gives me error: Unrecognized mount option "notime" or missing value

setting bootargs the way:

bootargs_mmc=setenv bootargs ${bootargs} root=${cur_root_part} rootwait ro,noatime

ignores the noatime option.

If any one can give me some thoughts on my problem, i would appreciate it very much!

Regards,

Novak Jost

标签 (2)
标记 (5)
0 项奖励
回复
1 回复

2,444 次查看
OtavioSalvador
Senior Contributor II

Hello,

This should be done, in the target filesystem, in the /etc/fstab file. You can pass the 'ro' option but not 'noatime' in the kernel command line.

By the way, please check the 'relatime' filesystem option as it may be more appropriate for your use/or not.

Regards,

0 项奖励
回复