Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jun 2005 13:44:13 +0200
From:      =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= <bkoenig@cs.tu-berlin.de>
To:        Per olof Ljungmark <peo@intersonic.se>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: sysinstall: label editor:unable to write data
Message-ID:  <42B2B78D.7000108@cs.tu-berlin.de>
In-Reply-To: <42B2B569.2060500@intersonic.se>
References:  <42B2B569.2060500@intersonic.se>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42B2B78D.7000108>