Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jul 2012 11:06:13 -0500
From:      "Sam Zehr" <sam@athyriogames.com>
To:        <freebsd-fs@freebsd.org>
Subject:   Make disk completely read-only?
Message-ID:  <02b201cd69b6$413ea000$c3bbe000$@com>
In-Reply-To: <CAPS9%2BStQY%2B3W3aYHaXsqOeFGus18Mt0x1pGV1OTYOvRc1Wf=vw@mail.gmail.com>
References:  <01bf01cd66d4$84756b40$8d6041c0$@com> <CAPS9%2BStQY%2B3W3aYHaXsqOeFGus18Mt0x1pGV1OTYOvRc1Wf=vw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi, this is Sam again, working on making a USB flash drive in FreeBSD 9.0
_completely_ read-only.

Disk is mounted read-only - fstab has ro,noatime

Following some advice from the list, I've done some binary compares to see
what is going on. It looks like only a few bytes are changing every time I
reboot, they seem to correspond with the superblock locations - I would
guess a timestamp of mount time?

I executed the dumpfs command after a few boots, and checked for
differences. The only thing that is changing is from the first line

Pass 1:
magic	19540119 (UFS2)	time	Mon Jul 23 11:12:06 2012
superblock location	65536	id	[ 4fe363f7 e7fd3a99 ]

Pass 2:
magic	19540119 (UFS2)	time	Mon Jul 23 11:28:35 2012
superblock location	65536	id	[ 4fe363f7 e7fd3a99 ]

Does anyone know of a way to stop this timestamp from occurring?

Sam





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?02b201cd69b6$413ea000$c3bbe000$>