Subject: cgd on NetBSD/sparc32: dislabel problems
To: None <port-sparc@netbsd.org>
From: Tillman Hodgson <tillman@seekingfire.com>
List: port-sparc
Date: 04/08/2005 10:19:18
[reposting from talk@lists.nycbug.org]

Howdy folks,

I'm attempting to set up a small (1G) encrypted filesystem using cgd on
a Sun SparcStation 10 with a DEC JBOD SCSI tower (makes a great NFS
server with a Sun Swift card). I'm following both the cgd chapter of the
NetBSD Guide and the netbsdcgd.html file from nycbug.org.

The issue I'm running into is that I can't write a disklabel to the cgd0
device after creating the virtual device:

#        size    offset     fstype [fsize bsize cpg/sgs]
 c:   2099820         0     4.2BSD      0     0     0  # (Cyl.      0 -
1025*)
 e:   2099820         0     4.2BSD      0     0     0  # (Cyl.      0 -
1025*)
partition> W
Label disk [n]? y
write: Read-only file system
Label not written

Disklabel on a Sun box is weird in general (the '-r' thing and the
requirements for offset to be an even multiple of s/c, for example) and
I don't understand the differences very well. Has anyone else run into
this and could give me a pointer?

-T


-- 
"The truly paranoid administrator may wish to place motion detectors in the
 air ducts."
    -- Practical UNIX & Internet Security, 2nd Edition