Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #206936 > unrolled thread

How did relatime get set on my Wheezy system?

Started byrhkramer@gmail.com
First post2019-04-04 01:40 +0200
Last post2019-04-04 16:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  How did relatime get set on my Wheezy system? rhkramer@gmail.com - 2019-04-04 01:40 +0200
    Re: How did relatime get set on my Wheezy system? Markus Schönhaber <debian-user@list-post.mks-mail.de> - 2019-04-04 16:10 +0200

#206936 — How did relatime get set on my Wheezy system?

Fromrhkramer@gmail.com
Date2019-04-04 01:40 +0200
SubjectHow did relatime get set on my Wheezy system?
Message-ID<xIXE6-2fr-3@gated-at.bofh.it>
Background: When I set up my Wheezy system, I reserved (and formatted) a FAT32 
partition on one of my disks for a possible installation of Windows.  I now 
want to reformat that partition to ext4 to use for other purposes.

What puzzles me is this -- when I look at /etc/fstab for some of the other 
partitions that are already ext4 I see entries like this:

# /var was on /dev/sdb8 during installation
UUID=874304c9-36c6-4572-909b-c4c75d13269a /var            ext4    defaults        
0       2

When I look at the same partition in /etc/mtab, I see this:

/dev/sdb8 /var ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0

What I don't understand, for example, is where and how relatime got set (and 
maybe some of the other parameters).  


(Aside: I'd prefer to set noatime for the reformatted partition as it is on an 
SSD, and will be used for data, not executables.)

I plan to reformat the disk with mkfs.ext4.  Initially, when I set up the 
system, I used the Wheezy installer to partition and format the disks.  I'm 
assuming that it used mkfs.ext4 to do the formatting.

I looked at /etc/mke2fs.conf and did not see any reference to relatime.

Finally (well, I have another question that I'll post separately), I'm 
assuming that I can include noatime in the /etc/fstab file I change the entry 
for the partition I am reformatting?  (That is where noatime is set on my 
Jessie system.)

[toc] | [next] | [standalone]


#206958

FromMarkus Schönhaber <debian-user@list-post.mks-mail.de>
Date2019-04-04 16:10 +0200
Message-ID<xJbe1-2kx-3@gated-at.bofh.it>
In reply to#206936
Rhkramer, 4.4.2019 01:38 +0200:

> What puzzles me is this -- when I look at /etc/fstab for some of the other 
> partitions that are already ext4 I see entries like this:
> 
> # /var was on /dev/sdb8 during installation
> UUID=874304c9-36c6-4572-909b-c4c75d13269a /var            ext4    defaults        
> 0       2
> 
> When I look at the same partition in /etc/mtab, I see this:
> 
> /dev/sdb8 /var ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0
> 
> What I don't understand, for example, is where and how relatime got set (and 
> maybe some of the other parameters).  

relatime is the default (unless you specify otherwise)
man mount contains this:
>   relatime
>       [...]
>       Since  Linux  2.6.30,  the  kernel defaults to the behavior provided by
>       this option (unless noatime was specified), and the strictatime option
>       is required to obtain traditional semantics.  In addition, since
>       Linux 2.6.30, the file's last access time is always updated if it is
>       more than 1 day old.

-- 
Regards
  mks

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web