Re: FAQ 14.9: installboot example parameters reversed
On 02/26/15 05:44, Rolf Sommerhalder wrote: Hi, While salvaging a CompactFlash with a corrupt partition table, I noticed that the example in http://www.openbsd.org/faq/faq14.html#InstBoot appears to be outdated: # cd /usr/mdec; ./installboot /boot biosboot sd0 According to installboot(8), the syntax is: installboot [-nv] [-r root] disk [stage1 [stage2]] e.g. the example should read: # cd /usr/mdec; ./installboot sd0 biosboot /boot or: installboot -v sd0 /usr/mdec/biosboot /boot or finally, if sd0a is mounted on /mnt: installboot -v -r /mnt/ sd0 /usr/mdec/biosboot /mnt/boot Thanks, Rolf yes, that section is wrong, but your correction is wrong and incomplete. The whole point of the rework of installboot was to de-platform-specific it, and to have sane defaults, thus the new syntax will be just installboot sd0, and (current) installboot is not in /usr/mdec anymore. I got to think about this...I'm not sure there's even any merit to this section anymore. Proper answer might be delete it. Nick.
FAQ 14.9: installboot example parameters reversed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, While salvaging a CompactFlash with a corrupt partition table, I noticed that the example in http://www.openbsd.org/faq/faq14.html#InstBoot appears to be outdated: # cd /usr/mdec; ./installboot /boot biosboot sd0 According to installboot(8), the syntax is: installboot [-nv] [-r root] disk [stage1 [stage2]] e.g. the example should read: # cd /usr/mdec; ./installboot sd0 biosboot /boot or: installboot -v sd0 /usr/mdec/biosboot /boot or finally, if sd0a is mounted on /mnt: installboot -v -r /mnt/ sd0 /usr/mdec/biosboot /mnt/boot Thanks, Rolf -BEGIN PGP SIGNATURE- Version: GnuPG v1 iQEcBAEBAgAGBQJU7vkWAAoJEEFJy0CVh/JsUCsIAJiI/om+YD6wsqqrPbK2zBWy vurLWytOrEFIwAvobjb6kzsniPOdy7+73JLSAEm4v66dDuU0tbpdl63pc7AQtq5P BrhpCOLWj/QGf0f9dkadjvxvDneTgkZ2HL6Mja2M/dzWLD3Ew06Js9A+luiM/JxG +RChmFoaUk31/L7E6/FYbXgox7QotePhYY45d9gEQmRickkebJmfXp08XtaXl4ru 6y9D7B+uABJ9yJF953a2Gu9jDBRrxo3tepytg7950R4ULuDh48g9GLPjd2URX2Hg W4dmBrZWTnNsfPWp8s+hAly/JtFHOg5uVNhd+ce8zkou/mhD27SjtMBl9W1FNFA= =jcvG -END PGP SIGNATURE-
Re: FAQ 14.9: installboot example parameters reversed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ... and there is a second example further down in 14.10: # cp /usr/mdec/boot /mnt/boot # /usr/mdec/installboot -v /mnt/boot /usr/mdec/biosboot sd0 which should probably read: # cp /usr/mdec/boot /mnt/boot # /usr/mdec/installboot -v -r /mnt/ sd0 /usr/mdec/biosboot /mnt/boot -BEGIN PGP SIGNATURE- Version: GnuPG v1 iQEcBAEBAgAGBQJU7vx1AAoJEEFJy0CVh/JsJRkIAKWFLL1wYns1sAXls/+NdNiz 0uYTH1sCp2MhfmBOVJ0BGuuJBdDwVy+n0YNurQ4tcdb2lzf1Y4764KoPhcTgGT88 VP62u29ZkqmdkXGr8RLBlq8+5edk8Ogc62JOGZOJOXOu8LhKTNnrAiI+AI1pPTGd 3b7hzqh6cGmefOofIYgHOsgKya0GeF923hNqOkgn98FgJv67jYZT+0FSYmYkc9Jb mQ28B34dzmIWaRWDDG39it1tY6Ll7IiTusrabjwYtYy7ZbNLPgypLwfmpS5uf5kl cwz4kecEyk4/lz4VgDxOJKRYXFt7PZ48OlHEwU1c+bsCVyKBZ7CBpQ663Atn5PU= =oAzj -END PGP SIGNATURE-