freebsd
- Partition automation in bsdinstall auto script in FreeBSD | Amitabh Kant
- Manually Install FreeBSD 9.0 Release on GPT and Gmirror
清除所有資料
1 |
gpart destroy -F ada1 |
來源 FreeBSD 系統分割情況
將新硬碟分割
1 2 3 4 5 |
gpart create -s gpt da1 gpart add -t freebsd-boot -l gpboot -s 64K da1 gpart add -t freebsd-ufs -l gprootfs -s 196g da1 gpart add -t freebsd-swap -l gpswap -s 4G da1 gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 da1 |
格式化及複製系統
1 2 3 4 5 |
newfs -U /dev/da1p2 mkdir /mnt/usbhd mount /dev/da1p2 /mnt/usbhd/ cd /mnt/usbhd dump -f- / | restore -f- -r |
--
4,601 total views, 1 views today