From owner-freebsd-questions@freebsd.org Sun Jan 21 12:58:42 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6301BEC9E09 for ; Sun, 21 Jan 2018 12:58:42 +0000 (UTC) (envelope-from marek@mky.waw.pl) Received: from poczta.mky.waw.pl (poczta.mky.waw.pl [IPv6:2001:41d0:604:159::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2A5C86ADB3 for ; Sun, 21 Jan 2018 12:58:42 +0000 (UTC) (envelope-from marek@mky.waw.pl) Received: from poczta.mky.waw.pl (localhost [193.70.126.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by poczta.mky.waw.pl (Postfix) with ESMTPSA id 9796643ED2C; Sun, 21 Jan 2018 13:58:31 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Sun, 21 Jan 2018 13:58:31 +0100 From: Marek Krawczyk To: Christos Chatzaras Cc: freebsd-questions@freebsd.org Subject: Re: gpart and differences in FreeBSD 10 and 11 In-Reply-To: References: Message-ID: X-Sender: marek@mky.waw.pl User-Agent: Roundcube Webmail/1.3.3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jan 2018 12:58:42 -0000 W dniu 2018-01-21 10:37, Christos Chatzaras napisaƂ(a): > The first disk created with gpart on FreeBSD 11 and the second with > gpart on FreeBSD 10. > > gpart show > => 40 7814037088 ada0 GPT (3.6T) > 40 88 - free - (44K) > 128 128 1 freebsd-boot (64K) > 256 8388608 2 freebsd-ufs (4.0G) > 8388864 134217728 3 freebsd-swap (64G) > 142606592 33554432 4 freebsd-ufs (16G) > 176161024 134217728 5 freebsd-ufs (64G) > 310378752 33554432 6 freebsd-ufs (16G) > 343933184 7470103944 7 freebsd-ufs (3.5T) > > => 34 7814037101 ada1 GPT (3.6T) > 34 94 - free - (47K) > 128 128 1 freebsd-boot (64K) > 256 8388608 2 freebsd-ufs (4.0G) > 8388864 134217728 3 freebsd-swap (64G) > 142606592 33554432 4 freebsd-ufs (16G) > 176161024 134217728 5 freebsd-ufs (64G) > 310378752 33554432 6 freebsd-ufs (16G) > 343933184 7470103944 7 freebsd-ufs (3.5T) > 7814037128 7 - free - (3.5K) > > Any idea why it shows as first sector 40 in first case and 34 in second > case? First partition scheme (from ada0) looks like auto aligned for 4K sectors on the disk. Probably gpart from FreeBSD 11 mind the sector size when creating partitions. Regards, Marek Krawczyk