public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
From: Theodore Tso <tytso@MIT.EDU>
To: Lee Davis <l.davis37@ymail.com>
Cc: "linux-ext4@vger.kernel.org" <linux-ext4@vger.kernel.org>
Subject: Re: EXT4 partition changes every time it's mounted. (How to stop this?)
Date: Sun, 22 May 2011 07:47:49 -0400	[thread overview]
Message-ID: <A129F9FD-E914-408C-8997-FD145AA2A697@mit.edu> (raw)
In-Reply-To: <476510.14310.qm@web125206.mail.ne1.yahoo.com>


On May 21, 2011, at 3:45 PM, Lee Davis wrote:

> I'm setting up a Linux system with full disk encryption. I've written a script (to run on every boot) which will verify that neither the MBR or /boot partition (ext4) has been modified.
> 
> Problem is that every time I boot up the system, my /boot partition hashes differently.
> 
> I'm guessing there is something behind the scenes which is changed/updated each time the filesystem is mounted? If so, can it be disabled?

Yes, there is a last mounted time in the superblock.   If you mount the file system read-only, then not only will that field not be changed, but you can guarantee that nothing else will change...

-- Ted


  reply	other threads:[~2011-05-22 11:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-21 19:45 EXT4 partition changes every time it's mounted. (How to stop this?) Lee Davis
2011-05-22 11:47 ` Theodore Tso [this message]
2011-05-23  4:39   ` Lee Davis
2011-05-26  6:15     ` Lee Davis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A129F9FD-E914-408C-8997-FD145AA2A697@mit.edu \
    --to=tytso@mit.edu \
    --cc=l.davis37@ymail.com \
    --cc=linux-ext4@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox