Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Sep 2012 06:24:32 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Yuri <yuri@rawbw.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Why fdisk can't open root disk with MBR for writing?
Message-ID:  <alpine.BSF.2.00.1209150620130.40275@wonkity.com>
In-Reply-To: <50541103.6050608@rawbw.com>
References:  <5053C9A1.3030605@rawbw.com> <alpine.BSF.2.00.1209142016200.36584@wonkity.com> <50541103.6050608@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 14 Sep 2012, Yuri wrote:

> On 09/14/2012 19:23, Warren Block wrote:
>> Did you actually try gpart?  GEOM prevents writes to providers that are in 
>> use, but gpart should handle it correctly if the problem is just that fdisk 
>> doesn't understand GEOM.
>> 
>> # gpart set -a active -i 1 ada0
>> 
>> If that fails, the provider is in use, usually mounted.  The safety can be 
>> disabled, but it's better to figure out what has it in use. 
>
> Yes it is the hard drive with mounted /. But changing the active slice should 
> be safe in any case.
> gpart worked.
> This safety feature is protecting people from themselves. Sounds very 
> familiar.

gpart allowed it, so it's not the safety feature but merely that fdisk 
is aging and can't deal well with GEOM.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1209150620130.40275>