Amey
2011-May-16 13:12 UTC
How to mount ext3 root partition with noatime and ro options at boot-time
Hi all, I was trying to mount root-partition which is ext3 partition with noatime and ro option. I included "ro" in the kernel command line But for mounting it with "noatime" option when I searched for some solution I came across a patch http://lkml.org/lkml/2007/8/5/38 But after applying this patch and including option "noatime" in kernel command line , kernel by default mounts all the partition with "noatime" option which is not my requirement. I just want to mount root partition with ro and noatime option and other partitions with atime option at boottime only. So please help me in this regard. Thanking you all in advance. Cheers, AM -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/ext3-users/attachments/20110516/a2f8f0b5/attachment.htm>
Christian Kujau
2011-May-17 20:10 UTC
How to mount ext3 root partition with noatime and ro options at boot-time
On Mon, 16 May 2011 at 18:42, Amey wrote:> I was trying to mount root-partition which is ext3 partition with > noatime and ro option. I included "ro" in the kernel command line But for > mounting it with "noatime" option when I searched for some solution I cameUse tune2fs(8) to set default mount options for this partition. Or use the "rootflags=" bootparameter, e.g. rootflags=noatime,ro for setting noatime & readonly for the root filesystem. HTH, Christian. -- BOFH excuse #110: The rolling stones concert down the road caused a brown out