Date: Sun, 26 Jan 2003 09:28:33 -0800
From: George Hartzell <hartzell@kestrel.alerce.com>
To: Daniel Lang <langd-freebsd-hackers@leo.org>
Cc: freebsd-hackers@freebsd.org
Subject: Re: Problem opening /dev/ad0{,s2} O_RDWR (also disklabel, grub) on 5.0.
Message-ID: <15924.6849.193023.512666@rosebud.alerce.com>
In-Reply-To: <20030126132841.GA84216@atrbg11.informatik.tu-muenchen.de>
References: <15923.18959.507300.156728@rosebud.alerce.com> <20030126132841.GA84216@atrbg11.informatik.tu-muenchen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Daniel Lang writes:
> Hi George,
>
> George Hartzell wrote on Sat, Jan 25, 2003 at 06:38:07PM -0800:
> [..]
> > open("/dev/ad0", 1)', and 'call open("/dev/ad0", 2)' made it clear
> > that anything that would write to the disk was failing.
> [..]
> > disklabel: /dev/ad0s2: Operation not permitted
> [..]
> > So, my questions are:
> >
> > 1) does this ring a bell with anyone?
> >
> > 2) Is there something in 5.0 that requires special magic to write to
> > the raw disk devices?
> >
> You need to run in securelevel < 1.
>
> Check "sysctl kern.securelevel", and read init(8).
>
> I guess you have some rc.conf entry that raises
> your securelevel, most probably resulting from the sysinstall.
That's not it,
kern.securelevel is -1
and this is in /etc/rc.conf
kern_securelevel_enable="NO".
Any other thoughts?
g.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15924.6849.193023.512666>
