From owner-freebsd-questions@FreeBSD.ORG Sat Jun 14 21:12:53 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDAD937B401 for ; Sat, 14 Jun 2003 21:12:53 -0700 (PDT) Received: from adsl-64-161-78-226.dsl.lsan03.pacbell.net (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 0076B43F3F for ; Sat, 14 Jun 2003 21:12:53 -0700 (PDT) (envelope-from oremanj@adsl-64-161-78-226.dsl.lsan03.pacbell.net) Received: (qmail 721 invoked by uid 1001); 15 Jun 2003 03:15:11 -0000 Date: Sat, 14 Jun 2003 20:15:11 -0700 From: Joshua Oreman To: kAlunya Message-ID: <20030615031511.GA681@webserver.get-linux.org> References: <200306150204.h5F24WAa014139@nick.en> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200306150204.h5F24WAa014139@nick.en> User-Agent: Mutt/1.4.1i cc: questions@freebsd.org Subject: Re: 5.1-Release: Write operation on enire ad{0,1,2,...} with mounted partition[s] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jun 2003 04:12:54 -0000 On Sun, Jun 15, 2003 at 05:04:32AM +0300 or thereabouts, kAlunya seemed to write: > Hello, Core-Team! This is the freebsd-questions mailing list. > > As shortly said in ${SUBJECT}, there is a question. > In 5.1 Release thereis a situation: > # whoami > root > # dd if=/dev/ad0 of=sect0_copy count=1 > ..........it is ok........ > # dd if=sect0_copy of=/dev/ad0 > dd: /dev/ad0: Operation not permitted That's at the device level. > # rm -rf / ????? :) That's at the filesystem level. There's an important difference. > > What is going on with permition to write my boot sector back on ad0? > So image repeats when I am in single mode with / mounted as RO > Is it ok with driver? > >From one side - it's ok, FreeBSD says: "Hm... Thereis mounted things on this device! ;( Go away from my ad0!!!" > >From other side... Am I r00t on 127.0.0.1??? :(( > I _DO WANT_ this operation. But Free doesn't... It's GEOM. Google the archives for allow_shooting_into_my_foot. There's a patch to make this a sysctl-configurable behavior. -- Josh > > Is it good with she? > ------------------------- > With best wishes, Nick. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"