================Fri  2.Aug'13 at 18:07:17 +0200, Erling 
Westenvik================
> Not sure how to express myself here, but consider preparing a physical
> disk (sd0) for FDE. We initialize the disk:
> 
> # fdisk -iy sd0
> # printf "a\n\n\n\nRAID\nw\nq\n\n" | disklabel -E sd0
> # bioctl -c C -l /dev/sd0a softraid0
> 
> This yields a virtual disk sd1 with an "a" partition of type RAID that
> has an offset of 64 sectors. We initialize sd1 to contain just one big
> "a" partition of type 4.2BSD that spans the whole disk:
> 
> # fdisk -iy sd1
> # printf "a\n\n\n\n4.2BSD\nw\nq\n\n" | disklabel -E sd1
 
Sorry to digress - these fdisk/printf one-liners are very cool.

Jamie
-- 


James Griffin: jmz at kontrol.kode5.net 

A4B9 E875 A18C 6E11 F46D  B788 BEE6 1251 1D31 DC38

Reply via email to