From owner-freebsd-current@FreeBSD.ORG Sun Sep 30 19:07:05 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D285106566B; Sun, 30 Sep 2012 19:07:05 +0000 (UTC) (envelope-from root@free.fr) Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [IPv6:2a01:e0c:1:1599::14]) by mx1.freebsd.org (Postfix) with ESMTP id 0D7CE8FC08; Sun, 30 Sep 2012 19:07:02 +0000 (UTC) Received: from free.fr (unknown [82.235.65.2]) by smtp5-g21.free.fr (Postfix) with ESMTP id 82A69D480FF; Sun, 30 Sep 2012 21:06:58 +0200 (CEST) To: "Andrey V. Elsukov" From: Raoul MEGELAS Date: Sun, 30 Sep 2012 21:06:57 +0200 Sender: root@free.fr Message-Id: <20120930190658.82A69D480FF@smtp5-g21.free.fr> Cc: freebsd-current@freebsd.org Subject: Re: gpart on macbook air X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Sep 2012 19:07:05 -0000 On Sun, 30 Sep 2012 21:43:50 +0400 "Andrey V. Elsukov" wrote: > On 30.09.2012 20:37, Raoul MEGELAS wrote: > > i installed CURRENT on a macbook air > > (internal ssd as you know): > > i noticed the following: > > > > 1. on freebsd, deleting a partition with gpart: say > > gpart delete -i 4 ada0 > > dammage the osx boot. > > of cours, booting with a backup disk and repairing the disk > > make it functional again. > > any light woukd be appreciated on this topic. > > Hi, > > When you are deleting a partition, the kernel completely overwrites the > partition table and PMBR area. You can compare first 34 blocks before > deletion and after to see what is going on. > > -- > WBR, Andrey V. Elsukov Hi Andrey, I can understand that, but i would have thought that the deletion of the concerned partition was written preserving others??? something like: - read the gpt table - find the offset - zeroes the partition entry - rewrites the table? is not that logic? if it is not so, i does not understand this behaviour. Thanks. raoul rmgls@free.fr