mount root partition - noatime,ro

cancel
Showing results for 
Search instead for 
Did you mean: 

mount root partition - noatime,ro

963 Views
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

Labels (2)
0 Kudos
1 Reply

64 Views
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 Kudos