On Tue, Jun 21, 2011 at 10:39:55AM +0100, keith wrote: > Hi, I have a 1TB USB disk that I want to auto mount to my OBSD 4.9 > server but I needed to encrypted the disk using softraid that works > but now I can't figure out how to make the disk auto mount. Can > someone help me ? > > The is where I am just now. > > Pluig in disk.......sd0 appears... > > umass0 at uhub3 port 2 configuration 1 interface 0 "FreeCom Freecom > MD Secure" rev 2.00/1.01 addr 5 > umass0: using SCSI over Bulk-Only > scsibus2 at umass0: 2 targets, initiator 0 > sd0 at scsibus2 targ 1 lun 0: <WDC WD10, TPVT-00U4RT1, > SCSI2 > 0/direct fixed > sd0: 953869MB, 512 bytes/sec, 1953525168 sec total > > #fdisk -iy sd0 > #printf "a\n\n\n\nRAID\nw\nq\n\n" | disklabel -E sd0 > #bioctl -c C -l /dev/sd0a softraid0 > > passphrase = sausages > > New disk appears... > > ###scsibus4 at softraid0: 1 targets > ###sd2 at scsibus4 targ 0 lun 0: <OPENBSD, SR CRYPTO, 004> SCSI2 > 0/direct fixed > ###sd2: 953866MB, 512 bytes/sec, 1953519473 sec total > > # dd if=/dev/zero of=/dev/sd1 bs=1m count=1 > # fdisk -iy sd1 > # printf "a\n\n\n\n4.2BSD\nw\nq\n\n" | disklabel -E sd1 > # newfs sd1a > > # mount /dev/rsd1a /mnt or is it.... > # mount /dev/sd1a /mnt > > Disk works fine. But if I reboot we need to issue the 'bioctl' line > again and I am not sure how to do this. > > Thanks > Keith
Dunno the anwser to your question, but mounts are always done on block devices, e.g. no 'r'. All other operations are done on char devices, but most commands are nice enough to accept short device names without 'r'. -Otto