> On Nov 4, 2017, at 9:39 AM, Tom Rosso <t...@oioioioo.org> wrote:
> 
> On 2017-11-04 09:28, Implausibility wrote:
>> I simply want to create a single partition encompassing all of the
>> available space.
>> I've searched the web, plus read searched the last 11k+ messages on
>> misc@ -- but I can't seem to find any examples of defining a disk with
>> disklabel non-interactively.
>>> # disklabel -w sd1 'disk'
>>> disklabel: unknown disk type: disk
> 
> You need to create an entry in /etc/disktab for the disk type "disk", which 
> defines all of the variables that go into the disklabel that will be created. 
>  man 5 disktab
> 
> It's easier to create a disklabel interactively.
> 

The snag here is that I want this to work for any size disk that I connect to 
an OpenBSD instance.  It seems like the definitions in disktab are rather 
inflexible (the man page only mentions numeric sizes, not percentages or 
wildcards).

It seems weird that something so common critical (adding storage) is so 
cryptic.  I don't have to create a termcap entry for every new user, so it 
seems weird to have to create a similar record for every disk I want to format 
on the command line for OpenBSD.

Reply via email to