From owner-freebsd-hackers Sun Jan 26 5:28:46 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB8DA37B401 for ; Sun, 26 Jan 2003 05:28:44 -0800 (PST) Received: from mailout.informatik.tu-muenchen.de (mailout.informatik.tu-muenchen.de [131.159.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7896A43E4A for ; Sun, 26 Jan 2003 05:28:43 -0800 (PST) (envelope-from langd@informatik.tu-muenchen.de) Received: from mailrelay2.informatik.tu-muenchen.de (mailrelay2.informatik.tu-muenchen.de [131.159.254.8]) by mailout.informatik.tu-muenchen.de (Postfix) with ESMTP id 5BF506371; Sun, 26 Jan 2003 14:28:42 +0100 (MET) Received: from atrbg11.informatik.tu-muenchen.de (atrbg11.informatik.tu-muenchen.de [131.159.42.129]) by mailrelay2.informatik.tu-muenchen.de (Postfix) with ESMTP id 44E9C47444; Sun, 26 Jan 2003 14:28:42 +0100 (MET) Received: by atrbg11.informatik.tu-muenchen.de (Postfix, from userid 20455) id C717D139AA; Sun, 26 Jan 2003 14:28:41 +0100 (CET) Date: Sun, 26 Jan 2003 14:28:41 +0100 From: Daniel Lang To: George Hartzell 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> References: <15923.18959.507300.156728@rosebud.alerce.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15923.18959.507300.156728@rosebud.alerce.com> X-Geek: GCS/CC d-- s: a- C++$ UBS++++$ P+++$ L- E-(---) W+++(--) N++ o K w--- O? M? V? PS+(++) PE--(+) Y+ PGP+ t++ 5+++ X R+(-) tv+ b+ DI++ D++ G++ e+++ h---(-) r++>+++ y+ User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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