Subject: cgdconfig: can't open "cgd0" ...
To: None <netbsd-help@netbsd.org>
From: Andy Ruhl <acruhl@gmail.com>
List: netbsd-help
Date: 06/20/2004 20:36:34
I recently installed NetBSD 2.0E from the i386 snapshot to try some
new features. One of which is creating a cgd.
I followed the manual almost to the letter. When I come to this command:
# cgdconfig -V none cgd0 /dev/wd0e
This is my result (although I created a /dev/wd0e instead of h as in
the manual):
cgdconfig: can't open cgd "cgd0", "/dev/rcgd0d"
Here is some related info:
# ls -l /dev/cgd0
ls: /dev/cgd0: No such file or directory
# ls -l /dev/rcgd0d
crw-r----- 1 root operator 93, 3 Jun 19 02:01 /dev/rcgd0d
# cat /etc/cgd/wd0e
algorithm blowfish-cbc;
iv-method encblkno;
keylength 128;
verify_method ffs;
keygen pkcs5_pbkdf2/sha1 {
iterations 5097;
salt AAAAgOD2LS67Byuksw3+VjKe/qo=;
};
# disklabel -r wd0
# /dev/rwd0d:
type: unknown
disk: ad0s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 29660
total sectors: 29897280
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 5094432 63 4.2BSD 1024 8192 46320 # (Cyl. 0*- 5054*)
b: 1050273 5094495 swap # (Cyl. 5054*- 6095)
c: 6144705 63 unused 0 0 # (Cyl. 0*- 6095)
d: 29897280 0 unused 0 0 # (Cyl. 0 - 29659)
e: 1024000 6144768 4.2BSD 1024 8192 46552 # (Cyl. 6096 - 7111*)
(I'm not sure about the ad0s1 thing, but this did used to be a FreeBSD disk.)
I did some quick searching and can't find anything similar.
Thanks.
Andy