Date: Wed, 20 Jun 2012 16:55:14 +0400 From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: John Baldwin <jhb@freebsd.org> Cc: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: Re: svn commit: r237294 - user/ae/bootcode/sys/boot/i386/pmbr Message-ID: <4FE1C832.7000805@FreeBSD.org> In-Reply-To: <201206200744.57808.jhb@freebsd.org> References: <201206200829.q5K8TPcK028907@svn.freebsd.org> <201206200744.57808.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig77C56D2D75F794C3D5B406AE Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 20.06.2012 15:44, John Baldwin wrote: >> Add one partition record to the PMBR image. It covers all space afte= r >> the LBA 0. It is better to have one partially correct record, than >> have nothing. >=20 > This latter part is not true. :( >=20 > boot1 has a hardcoded partition in it (for use in dangerously dedicated= mode). > This has a mixed history. At one point the table entry it used caused = certain > SCSI BIOSes to crash due to a divide by zero (the SCSI BIOS read the MB= R to=20 > try to guess what C/H/S geometry the rest of the system was expecting).= I=20 > think having a hardcoded entry here can only really result in problems.= I=20 > would rather you add some sort of 'restore' functionality to gpart that= =20 > allowed it to build a PMBR 'from scratch' with a proper partition entry= than=20 > to resort to this hack. AFAIK, DD mode is not supported now. As another solution we can remove checking for PMBR partition type existe= nce when detecting GPT (like the kernel does). --=20 WBR, Andrey V. Elsukov --------------enig77C56D2D75F794C3D5B406AE 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) iQEcBAEBAgAGBQJP4cg2AAoJEAHF6gQQyKF6abUH/RKp1q4gan+iOtmdHlepPgO6 IpqUy/VG2Q2DZlqckT5beQYTW9QYa19NeoxSfVwpCMdQRpHssKN5uE/NAhsWUF1F Zr534VohXONjgAIFhYGxduI3DpiFHFONaaNqTWo7d9eQR1m9LnCqI9GMzEC/9J7z CgsJNS7p8RkjS3e5kdXBhSNtKzTImKbJXuPMNBjab7nJ6vtrzvTMUL5FYyQeICy1 495DwyaqNf01zjGUUaGkAfl6H1+bfwnynjMrXcGQP6UuPpB84XqrxFwk1DS2wp44 EfZVU08w+I/uVZu/SrHEyoI+rselDqu3n2syQX/o5FHi3nwymCUeK8LKBn8nqpc= =WBuk -----END PGP SIGNATURE----- --------------enig77C56D2D75F794C3D5B406AE--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FE1C832.7000805>