Subject: bin/37252: dk/dkctl unclear on partition types resulting in newfs failures
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <roskens@elfin.net>
List: netbsd-bugs
Date: 10/31/2007 13:40:00
>Number:         37252
>Category:       bin
>Synopsis:       dk/dkctl unclear on partition types resulting in newfs failures
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 31 13:40:00 +0000 2007
>Originator:     Ron Roskens
>Release:        NetBSD 4.0RC3
>Organization:
>Environment:
NetBSD  4.0_RC3 NetBSD 4.0_RC3 (GENERIC) #0: Tue Oct 16 01:14:06 PDT 2007  builds@wb34:/home/builds/ab/netbsd-4-0-RC3/i386/200710160011Z-obj/home/builds/ab/netbsd-4-0-RC3/src/sys/arch/i386/compile/GENERIC i386
>Description:
The documentation for dk(4), dkctl(8), newfs(8), newfs_lfs(8) is unclear on what exact partition types could be used for manually creating a wedge.
>How-To-Repeat:
man dkctl and read that under the 'addwedge' option that you need to specify a partition type.

Create a partition with a type of 4.2BSD:
# dkctl /dev/raid0d addwedge raid0w0 0 4194304 4.2BSD

Newfs fails to run:
# newfs /dev/dk0                                      
newfs: /dev/dk0 partition type is not `4.2BSD'
>Fix:
Document which partition types (as strings) are acceptable arguments for dkctl so that newfs{,_lfs}(8) will create the filesystem.