mount root partition - noatime,ro

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

mount root partition - noatime,ro

3,340件の閲覧回数
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,441件の閲覧回数
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 件の賞賛
返信