On 2018/01/14 18:19, Jason Green wrote: > Sorry, I'm a noob but in the default install, the disklabel displays sectors, > -h in my opinion > does not work.
disklabel has several modes: display (no extra flag), write (-w), edit with $EDITOR (-e), edit interactively (-E), restore (-R). "SYNOPSIS" in the manual page shows which options are available for the various modes of disklabel. "-h" and "-p g" are only documented as working for "display" and do work there: disklabel -h sd0 disklabel -p g sd0 The interactive mode (-E) does not support these on the command line, and is not documented as supporting these on the command line. The interactive mode does support typing "p g" as shown in the table of commands for this mode. See the paragraph starting "The built-in label editor (fourth form) provides a simple interactive label editor" and the paragraphs and table of commands following. > Partitioning in Archlinux is easy. When I install OpenBSD everything seems ok > until I get to installblocks and the computer timeouts. I get "ioctl > DIOCWDINFO" error. I used > -E with -p g and it displays sector only. > > Also I disabled uefi and it installed cleanly. > > I used the amd64 distribution Sounds like it's somehow related to UEFI then - I've readded [email protected] to CC's because I've not used this on x86 and maybe someone else will have an idea. Would be good to include a dmesg. > > > On Jan 14, 2018, Stuart Henderson <[email protected]> wrote: > > On 2018/01/14 14:02, Jason Green wrote: > > I've been running into some problems with a feature. I'm not looking > for technical > support, however, it is in the program called disklabel. There are > issues with the > installer also and I'm not sure if it is a feature or a bug. In the > installer, when > disklabel is called it displays it in kilobytes, but when when you > enter "p" for print > it prints it as sectors. So I'm confused what exactly is being > displayed when I hit > "p". > > > You can use "p k", "p m", "p g", etc. from disklabel's interactive mode. > > > When I drop to a shell (control C) and manually call "disklabel -E -p > g sd0" the > formatting for "p" displays sectors also. If possible, I would > appreciate an individual > response. > > > See SYNOPSIS in the manpage - "-p g" is for this one which just prints > the disklabel: > > disklabel [-Acdtv] [-h | -p unit] [-T file] disk > > The interactive mode (-E) only takes these flags: > > disklabel -E [-Acdnv] [-F|-f file] [-T file] disk > >
