Date: Mon, 22 Aug 2011 19:45:03 +0400 From: "Andrey V. Elsukov" <bu7cher@yandex.ru> To: Nathan Whitehorn <nwhitehorn@freebsd.org> Cc: freebsd-current@freebsd.org, Marcel Moolenaar <marcel@xcllnt.net> Subject: Re: Well, there goes Windows! Message-ID: <4E52797F.6060100@yandex.ru> In-Reply-To: <alpine.BSF.2.00.1108220813300.87003@banshee.munuc.org> References: <CAGH67wRFP9nFQLr0Gh-h4rKWrndZSy=6Q%2BKLC_U5Fg4RD%2BJMCw@mail.gmail.com> <4E4DB9A7.4040404@freebsd.org> <CAGH67wQoXOju3=OTh%2B6JoKLxkp7Vzqu8vg%2BO9X=DPXB5EkBJtQ@mail.gmail.com> <4E517978.2020705@freebsd.org> <64622705-80AB-4FEF-91E9-8F3041818B4E@xcllnt.net> <4E519C13.4060700@freebsd.org> <4E51E019.4060206@yandex.ru> <alpine.BSF.2.00.1108220813300.87003@banshee.munuc.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 22.08.2011 17:13, Nathan Whitehorn wrote:
>> Actually you can destroy underlying MBR geom without committing, just
>> use "force" flag.
>> But there is another problem, the metadata of nested scheme will not
>> deleted and it might
>> appear again when you create new MBR and new partition in the same place.
>
> This isn't true for nested partitioning, at least in my experience.
You can try:
# mdconfig -s 100m
# gpart create -s mbr md0
# gpart add -t freebsd md0
# gpart create -s bsd md0s1
# gpart add -t freebsd-ufs md0s1
# gpart destroy -F -f x md0
But when you create MBR again:
# gpart create -f x -s mbr md0
# gpart add -f x -t fat32 md0
Now the old BSD scheme will be detected:
=> 9 204791 md0 MBR (100M)
9 204786 1 fat32 (100M)
204795 5 - free - (2.5k)
=> 0 204786 md0s1 BSD (100M)
0 204786 1 freebsd-ufs (100M)
----------------------------------------------
The forced destroying does not work for the case when you destroyed
nested scheme before MBR, e.g.
# gpart destroy -f x -F md0s1
# gpart destroy -f x -F md0
gpart: Device busy
It's because the first destroying is not committed and provider md0s1 is
still opened:
# gpart list md0s1 | grep Mode
Mode: r1w1e1 <-----
--
WBR, Andrey V. Elsukov
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E52797F.6060100>
