Boot disk read-only?

Sam Zehr sam at athyriogames.com
Sun Jul 22 15:25:26 UTC 2012


Thanks Andreas

 

I read the section on NanoBSD, but did not find any reference to 'touch
/etc/diskless/

 

I also had advice to check to see what files are changing:

find / -mtime -1d -print

 

Returns changes in /dev, /tmp, and /var only

 

/tmp and /var are memory disks, I assume this is expected behavior.

 

Sam

 

From: Andreas Nilsson [mailto:andrnils at gmail.com] 
Sent: Sunday, July 22, 2012 5:02 AM



On Sat, Jul 21, 2012 at 2:05 AM, Sam Zehr <sam at athyriogames.com> wrote:

{edited for brevity}

How do I make a disk in FreeBSD 9.0 _completely_ read-only?
rc.initdiskless is working
1. Add noatime to fstab options
2. Add vfs.nfs.diskless_valid=1 to /boot/loader.conf
So far this is not working on BSD 9.0. It looks like something is changing
on the disk during boot
Sysctl vfs.nfs.diskless_valid returns 0 once booted up
Please note that I am not just concerned about files - the entire disk needs
to be locked, like ROM.
Or perhaps a reason why setting vfs.nfs.diskless_valid=1 in
/boot/loader.conf does not appear to work?



 

Perhaps start by reading
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/nanobsd/index.html which
should contain the basics plus some nice extra features.

 

Short version: did you do 'touch /etc/diskless' ?

 

Best regards

Andreas



More information about the freebsd-fs mailing list