Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 May 2000 17:16:02 -0700 (PDT)
From:      Scott Hess <scott@avantgo.com>
To:        Udo Schweigert <ust@cert.siemens.de>
Cc:        Fabrizzio Batista <Fabrizzio.Batista@lojasobino.com.br>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Read-Only File Systems
Message-ID:  <Pine.LNX.4.21.0005311715130.5626-100000@river.avantgo.com>
In-Reply-To: <20000531151805.A70766@alaska.cert.siemens.de>

next in thread | previous in thread | raw e-mail | index | archive | help
As an alternative, you could boot the system, and do 'mount -u -o rw
/dev/da0s1a /' and the same for /usr, to remount the filesystems
read-write.

Later,
scott

On Wed, 31 May 2000, Udo Schweigert wrote:
> On Wed, May 31, 2000 at 09:17:20 -0300, Fabrizzio Batista wrote:
> >     I've harden my FreeBSD Firewall at the filesystem layer. I modified /
> > and /usr in /etc/fstab to read-only (ro). Is There
> > some way to undo this changes in fstab ?
> > 
> >     I've tried boot in single user mode,but system mount / and /usr
> > read-only.
> 
> Say you have in /etc/fstab:
> 
> /dev/da0s1a		/		ufs	ro		1	1
> /dev/da0s1e		/usr		ufs	ro		2	2
> 
> Boot into single user mode and type in:
> 
> # mount -o rw /dev/da0s1a /
> # mount -o rw /dev/da0s1e /usr
> 
> That`s it. 
>
> The commands
> 
> # mount /
> # mount /usr
> 
> won't do it, because they read the settings from /etc/fstab.
> 
> Regards
> 
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0005311715130.5626-100000>