Re: missleading msg by disklabel

brad <[email protected]>
Newsgroups gmane.os.openbsd.misc
Message-ID <[email protected]>
On 8/7/26 09:06, dan wrote:
> Hello,
>
> When I try to disklabel on a partition instead of a disk I get an i/o 
> error msg just like the disk is in readonly mode for any reason (maybe 
> locked by securelevel, maybe locked by the usb enclousur, and so forth).
>
> Is it possible to improve the msg to avoid missunderstandings and 
> loses of time ?

disklabel doesn't expect a partition. It expects a disk. The name itself 
sort of suggests that.

The best thing to do is to read the man page, and examine how you ran 
disklabel. It doesn't take that much time and you'll learn more about 
disklabel and become a better sysadmin.

Brad
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.