Date: Sun, 26 Jan 2003 14:28:41 +0100
From: Daniel Lang <langd-freebsd-hackers@leo.org>
To: George Hartzell <hartzell@kestrel.alerce.com>
Cc: freebsd-hackers@freebsd.org
Subject: Re: Problem opening /dev/ad0{,s2} O_RDWR (also disklabel, grub) on 5.0.
Message-ID: <20030126132841.GA84216@atrbg11.informatik.tu-muenchen.de>
In-Reply-To: <15923.18959.507300.156728@rosebud.alerce.com>
References: <15923.18959.507300.156728@rosebud.alerce.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
HTH,
Daniel
--
IRCnet: Mr-Spock - "I hear that, if you play the WindowsXP CD
backwards, you get a Satanic message!"
- "That's nothing. If you play it forward, it installs WindowsXP!"
Daniel Lang * dl@leo.org * +49 89 289 18532 * http://www.leo.org/~dl/
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?20030126132841.GA84216>
