Would the remount command do it if I add the option in /etc/fstab?

Is this this a good idea?

link|improve this question

2  
Good idea? Not always. Prefer relatime where available. – Ignacio Vazquez-Abrams Jan 4 at 2:38
feedback

3 Answers

up vote 3 down vote accepted

Not anymore. -o remount,noatime was an effective method of disabling atime without a reboot.

I don't know that I'd say it's a good idea, but if you intend to turn atime off, I don't see what it would be a bad idea either if you have an old enough kernel. According to the man page for mount:

MS_REMOUNT

The following mountflags can be changed: MS_RDONLY, MS_SYNCHRONOUS, MS_MANDLOCK; before kernel 2.6.16, the following could also be changed: MS_NOATIME and MS_NODIRATIME; and, additionally, before kernel 2.4.10, the following could also be changed: MS_NOSUID, MS_NODEV, MS_NOEXEC.

link|improve this answer
Thanks for the input - would I be able to remount and add "relatime" or will that require a reboot? – ckliborn Feb 23 at 20:12
1  
@ckliborn I believe you will have to reboot, but there is no harm in testing a remount just to see. – Jeff Ferland Feb 23 at 20:16
feedback

Yes, it would work.
Or you can manually add it like:

mount -o remount,noatime /dev/sd0 /mnt
link|improve this answer
2  
With many versions of mount you can omit either the device or the mount point (your choice) and it will lookup the other. – tylerl Jan 4 at 2:37
feedback

Edit /etc/fstab and add the proper noatime entry to your / filesystem entry.

Remount the / filesystem with:

mount -o remount,noatime /

link|improve this answer
How can I verify that the noatime functionality is in place after the remount? Also do I need to worry about anything when remounting /? – ckliborn Jan 4 at 5:56
1  
You can look at /proc/mounts to see the flags currently in effect. – Simon Richter Jan 4 at 7:18
Type mount. It will show the mount parameters. – ewwhite Jan 4 at 9:38
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.