How to insert noatime in /etc/fstab CentOS 7?

1.4k views Asked by At

this is my /etc/fstab file:

proc /proc proc defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/md/0 none swap sw 0 0
/dev/md/1 /boot ext3 defaults 0 0
/dev/md/2   /   ext4    usrjquota=quota.user,jqfmt=vfsv0    0   0

How to enable noatime? I do not know exactly where to insert the string. I think that is:

/dev/md/1 /boot ext3 defaults,noatime 0 0

That´s right? or Is in dev/md/2?

Many thanks.

1

There are 1 answers

2
J_H On

Yes, that would work. But it makes more sense to delete the defaults placeholder when you add it:

/dev/md/1 /boot ext3 noatime 0 0

You probably care more about adding that mount option to slash, though:

/dev/md/2   /   ext4    usrjquota=quota.user,jqfmt=vfsv0,noatime    0   0