From nobody Sat Apr 06 08:47:56 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VBTXF13G0z5G9jX for ; Sat, 6 Apr 2024 08:48:13 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from mail.sermon-archive.info (sermon-archive.info [47.181.130.121]) by mx1.freebsd.org (Postfix) with ESMTP id 4VBTXD5cL6z4D6G for ; Sat, 6 Apr 2024 08:48:12 +0000 (UTC) (envelope-from bc979@lafn.org) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (unknown [10.0.1.251]) by mail.sermon-archive.info (Postfix) with ESMTPSA id 4VBTX624Mpz2fjSs; Sat, 6 Apr 2024 01:48:06 -0700 (PDT) Content-Type: text/plain; charset=us-ascii List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\)) Subject: Re: understanding the output of: gpart list da0 From: Doug Hardie In-Reply-To: Date: Sat, 6 Apr 2024 01:47:56 -0700 Cc: freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <0FF9EEDD-93F0-4963-8586-2D3395B5E96A@sermon-archive.info> References: To: Matthias Apitz X-Mailer: Apple Mail (2.3774.500.171.1.1) X-Virus-Scanned: clamav-milter 1.2.1 at mail X-Virus-Status: Clean X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:5650, ipnet:47.181.128.0/18, country:US] X-Rspamd-Queue-Id: 4VBTXD5cL6z4D6G > On Apr 5, 2024, at 23:52, Matthias Apitz wrote: >=20 >=20 > Hello, >=20 > I have here the output (a bit shorted and with added calculations) > of 'gpart list da0': >=20 > 1. Name: da0p1 > Mediasize: 524288 (512K) 512K =3D 512*1024 =3D 524288 =3D length > index: 1 > start: 1953523712 > end: 1953524735 > length: 524288 >=20 > 2. Name: da0p2 > Mediasize: 274877906944 (256G) 256G =3D 256*1024*1024*1024 =3D = 274877906944 =3D length > index: 2 > start: 2048 > end: 536872959 > length: 274877906944 >=20 > 3. Name: da0p3 > Mediasize: 41943040 (40M) 40M =3D 40*1024*1024 =3D 41943040 =3D = length > index: 3 > start: 536872960 > end: 536954879 > length: 41943040 >=20 > 4. Name: da0p4 > Mediasize: 723177701376 (674G) 674G =3D 674*1024*1024*1024 =3D = 723701989376 !=3D length > index: 4 > start: 541067264 > end: 1953523711 > length: 723177701376 >=20 >=20 > What I do not understand is: >=20 > 1) Why differs the 'length' of da0p4 from the real value for 674G? 723177701376 / 1024 / 1024 / 1024 =3D 673.51171875 which rounds up to = 674 G. > 2) All the values for 'start', 'end' and 'length' does not make any > sense to me. (end - start + 1) *512 =3D length >=20 > Can someone enlighten me a bit. -- Doug