Re: A gpart(8) mystery on 10.3-RELEASE

2016-04-09 Thread Andrey V. Elsukov
On 05.04.16 12:30, Trond Endrestøl wrote: > What am I doing wrong? Can't gpart(8) write both the pmbr and the efi > image as a single command? Is it an off-by-one error in gpart(8)? Hi, it looks like the problem is related to VTOC8 bootcode writing. I will fix this after weekend. Thanks for the

Re: A gpart(8) mystery on 10.3-RELEASE

2016-04-05 Thread Steven Hartland
On 05/04/2016 23:09, Warren Block wrote: On Tue, 5 Apr 2016, Steven Hartland wrote: On 05/04/2016 20:48, Warren Block wrote: Actually, the more I think about it, using bootcode -p to write the entire EFI partition seems dangerous. Unless it is surprisingly smart, it will wipe out any

Re: A gpart(8) mystery on 10.3-RELEASE

2016-04-05 Thread Warren Block
On Tue, 5 Apr 2016, Steven Hartland wrote: On 05/04/2016 20:48, Warren Block wrote: Actually, the more I think about it, using bootcode -p to write the entire EFI partition seems dangerous. Unless it is surprisingly smart, it will wipe out any existing stuff on that EFI partition, which

Re: A gpart(8) mystery on 10.3-RELEASE

2016-04-05 Thread Steven Hartland
On 05/04/2016 20:48, Warren Block wrote: On Tue, 5 Apr 2016, Boris Samorodov wrote: 05.04.16 12:30, Trond Endrestøl пишет: What am I doing wrong? Can't gpart(8) write both the pmbr and the efi image as a single command? Is it an off-by-one error in gpart(8)? gpart bootcode -b /boot/pmbr

Re: A gpart(8) mystery on 10.3-RELEASE

2016-04-05 Thread Warren Block
On Tue, 5 Apr 2016, Boris Samorodov wrote: 05.04.16 12:30, Trond Endrestøl пишет: What am I doing wrong? Can't gpart(8) write both the pmbr and the efi image as a single command? Is it an off-by-one error in gpart(8)? gpart bootcode -b /boot/pmbr -p /boot/boot1.efifat -i 1 ada0 gpart:

Re: A gpart(8) mystery on 10.3-RELEASE

2016-04-05 Thread Trond Endrestøl
On Tue, 5 Apr 2016 15:34+0300, Boris Samorodov wrote: > 05.04.16 12:30, Trond Endrestøl пишет: > > > What am I doing wrong? Can't gpart(8) write both the pmbr and the efi > > image as a single command? Is it an off-by-one error in gpart(8)? > > Should it? Yes, then it would complement the

Re: A gpart(8) mystery on 10.3-RELEASE

2016-04-05 Thread Boris Samorodov
05.04.16 12:30, Trond Endrestøl пишет: > What am I doing wrong? Can't gpart(8) write both the pmbr and the efi > image as a single command? Is it an off-by-one error in gpart(8)? Should it? > uname -a > FreeBSD 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 02:10:02 > UTC 2016

Re: A gpart(8) mystery on 10.3-RELEASE

2016-04-05 Thread Trond Endrestøl
On Tue, 5 Apr 2016 12:07+0200, martin.amb...@tudc.cz wrote: > Trond Endrestøl píše v út 05. 04. 2016 v 11:30 +0200: > > What am I doing wrong? Can't gpart(8) write both the pmbr and the efi > image as a single command? Is it an off-by-one error in gpart(8)? > > uname -a

Re: A gpart(8) mystery on 10.3-RELEASE

2016-04-05 Thread Martin.Ambroz
Try "dd if=/boot/boot1.efifat of=/dev/ada0p1" instead. Trond Endrestøl píše v út 05. 04. 2016 v 11:30 +0200: What am I doing wrong? Can't gpart(8) write both the pmbr and the efi image as a single command? Is it an off-by-one error in gpart(8)? uname -a

A gpart(8) mystery on 10.3-RELEASE

2016-04-05 Thread Trond Endrestøl
What am I doing wrong? Can't gpart(8) write both the pmbr and the efi image as a single command? Is it an off-by-one error in gpart(8)? uname -a FreeBSD 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 02:10:02 UTC 2016 r...@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC