1、启动4.8系统盘
代码: 全选
(I)nstall, (U)pgrade or (S)hell? S(RETURN)
代码: 全选
# cd /dev && sh /dev/MAKEDEV wd1 && cd /
# for i in wd0 wd1; do fdisk -yi $i; done
Writing MBR at offset 0.
Writing MBR at offset 0.
# disklabel -E wd0
Label editor (enter '?' for help at any prompt
> a a
offset: [63] (RETURN)
size: [2097152] (RETURN)
FS type: [4.2BSD] (RETURN)
> a b
offset: [2097215] (RETURN)
size: [2598016] (RETURN)
FS type: [swap] (RETURN)
> a d
offset: [2097215] (RETURN)
size: [2097215] (RETURN)
FS type: [4.2BSD] RAID(RETURN)
> q
Write new label?: [y] (RETURN)
# disklabel wd0 > disklabel.wd1
# disklabel -R wd1 disklabel.wd1
代码: 全选
# bioctl -c 1 -l /dev/wd0d,/dev/wd1d softraid0
# dd if=/dev/zero of=/dev/rsd0c bs=1m count=1
4、安装正常安装
代码: 全选
# exit
(I)nstall, (U)pgrade or (S)hell? I(RETURN)
5、重启后,设置每天同步
代码: 全选
# echo "/dev/wd1a /altroot ffs xx 0 0" >> /etc/fstab
# echo "ROOTBACKUP=1" >> /etc/daily.local
# sh /etc/daily
# mount /dev/wd1a /altroot
# /usr/mdec/installboot -v /altboot/boot /usr/mdec/biosboot wd1
# umount /altroot