From owner-freebsd-questions@FreeBSD.ORG Fri Jun 17 11:45:48 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 5383316A41C for ; Fri, 17 Jun 2005 11:45:48 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from mail.efacilitas.de (efacilitas.de [213.133.110.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F4A743D53 for ; Fri, 17 Jun 2005 11:45:47 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from eurystheus.local (port-212-202-169-37.dynamic.qsc.de [212.202.169.37]) by mail.efacilitas.de (Postfix) with ESMTP id 9DC11123A4A; Fri, 17 Jun 2005 13:44:10 +0200 (CEST) Received: from localhost (eurystheus.local [192.168.1.67]) by eurystheus.local (Postfix) with ESMTP id 0535212B096; Fri, 17 Jun 2005 13:44:20 +0200 (CEST) Received: from eurystheus.local ([192.168.1.67]) by localhost (eurystheus.locaL [192.168.1.67]) (amavisd-new, port 10024) with ESMTP id 28965-09; Fri, 17 Jun 2005 13:44:13 +0200 (CEST) Received: from [192.168.1.67] (eurystheus.local [192.168.1.67]) by eurystheus.local (Postfix) with ESMTP id B610012B02A; Fri, 17 Jun 2005 13:44:13 +0200 (CEST) Message-ID: <42B2B78D.7000108@cs.tu-berlin.de> Date: Fri, 17 Jun 2005 13:44:13 +0200 From: =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050517 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Per olof Ljungmark References: <42B2B569.2060500@intersonic.se> In-Reply-To: <42B2B569.2060500@intersonic.se> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at example.com Cc: freebsd-questions@freebsd.org Subject: Re: sysinstall: label editor:unable to write data X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2005 11:45:48 -0000 Per olof Ljungmark wrote: > I am trying to modify the da0s1 slices on a harddisk under 5.4 using > /usr/sbin/sysinstall. > I delete an existing slice and create two new ones in the old freed > space. When writing the changes I get: > > ERROR: Unable to write data to disk da0! Partitions (slices) will be written to the first sector of the hard disk which is called the MBR as you probably know. FreeBSD has a mechanism to prevent that you overwrite, change or destroy your MBR accidentally. You need to run sysctl kern.geom.debugflags=16 to deactivate this mechanism temprorarily. Another way would be to boot from a Live CD, e.g. disc1 (disc2 for 5.3 and older) and then make the changes. Björn