From owner-freebsd-sysinstall@FreeBSD.ORG Tue Oct 25 13:40:05 2011 Return-Path: Delivered-To: freebsd-sysinstall@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4365106566B for ; Tue, 25 Oct 2011 13:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A41868FC08 for ; Tue, 25 Oct 2011 13:40:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9PDe5qX050112 for ; Tue, 25 Oct 2011 13:40:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9PDe5bZ050106; Tue, 25 Oct 2011 13:40:05 GMT (envelope-from gnats) Date: Tue, 25 Oct 2011 13:40:05 GMT Message-Id: <201110251340.p9PDe5bZ050106@freefall.freebsd.org> To: freebsd-sysinstall@FreeBSD.org From: Dennis Yusupoff Cc: Subject: Re: bin/161720: bsdinstall(8): partition editor does not put partitions on even 4K boundaries X-BeenThere: freebsd-sysinstall@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dennis Yusupoff List-Id: Sysinstall Work List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2011 13:40:05 -0000 The following reply was made to PR bin/161720; it has been noted by GNATS. From: Dennis Yusupoff To: Warren Block Cc: bug-followup@FreeBSD.org Subject: Re: bin/161720: bsdinstall(8): partition editor does not put partitions on even 4K boundaries Date: Tue, 25 Oct 2011 17:36:44 +0400 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigCDBAE30B5EF5AC81BFBEC70E Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 25.10.2011 17:17, Warren Block =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > The -b option to 'gpart add' also accepts a size like "1M", so 'gpart > add -t freebsd-ufs -b 1M ...' should work on any drive with a block > size all the way up to 1M. Tested and works on 512-byte drives, but I > have not tested it on a 4K drive. > > There's also the -a option, which attempts to align partitions to the > value given. '-a 4096' should work on both 512-byte and 4k-byte drives.= I haven't knew it, thanks. > >> Moreover, I don't see why freebsd-boot partition should be more than >> 512K, if even 64K are currently just enough for FreeBSD. Looks like ol= d >> and famous Bill Gates's sentence, I know, but however :) > > FreeBSD bootcode has problems with a freebsd-boot partition larger > than 512K, so that's the current limit. > > However, starting the first filesystem partition at 1M works for both > alignment and compatibility with other systems. From the -current > mailing list: > [...skipped...] Yeah, I agree with you, but aligning shift size hasn't relation with partition size - so works with aligned partition doesn't need to increase freebsd-boot partition larger 512K since it's work. P.S. My home server: =3D=3D=3D [dyr@server ~]$ gpart show ada0 =3D> 34 3907029101 ada0 GPT (1.8T) 34 2014 - free - (1M) 2048 128 1 freebsd-boot (64k) 2176 8388608 2 freebsd-swap (4.0G) 8390784 41943040 3 freebsd-zfs (20G) 50333824 3856695311 4 freebsd-zfs (1.8T) [dyr@server ~]$ =3D=3D=3D Works fine... --=20 With best regards, Dennis Yusupoff, network engineer of Smart-Telecom ISP Russia, Saint-Petersburg=20 --------------enigCDBAE30B5EF5AC81BFBEC70E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJOprtsAAoJEBUTaqBS2NB4q+QH/0HJHGUox2G21x8z2HTnnPyz WxQbOp0PoaUpjgrxbrEKU6Sc7CNGM+N10ADGSOw2hVYVh/yyB4ZI/TQNKsdolLI9 w7/tE5P/bOz/6DZHzNKrDD3E7sA6UN77DBK84thWb9qp4F2CCl3ZfAkzwWo1Ap/v EJ7xk8INsDUDLrG2r00w/uIDNoXNSJnBdy8g9hT1ZYO1kWgdE0Gq7CORl1VEPBGe fKutOMoAj4OtTnN1+pscMH84ZkBodv7l/6/f7QRMkGTw/SWdCp0rE2y6rKCwxT0B ra7bnCOIiNj0ywl0xBSfvzKNoYck8A2H7mKxNtq0e7bF9Uqd49iIo/l1dSOyp8U= =Aibh -----END PGP SIGNATURE----- --------------enigCDBAE30B5EF5AC81BFBEC70E--