bin/161720: bsdinstall(8): partition editor does not put partitions on even 4K boundaries

Dennis Yusupoff dyr at smartspb.net
Tue Oct 25 13:40:05 UTC 2011


The following reply was made to PR bin/161720; it has been noted by GNATS.

From: Dennis Yusupoff <dyr at smartspb.net>
To: Warren Block <wblock at wonkity.com>
Cc: bug-followup at 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 at 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 at 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--


More information about the freebsd-sysinstall mailing list