FREEBsd

FreeBSD分区描述符为从"a"到"h"的8个字母。根据惯例,分区"c"被保留用作描述整个磁盘,"a"用作标识根分区,"b"用作标识交换分区。对于新添加的硬盘,我们常常只建立一个分区,标识为"e"。
IDE硬盘标记为ad,而SCSI硬盘标记为da,从0开始计数

dmesg 查看是否找到新硬件

/stand/sysinstall

configure--fdisk 设置好保存退出后
configure--lable


mount /dev/ad1s1 /disk1/ (挂载硬盘1到/disk1/目录下,该目录必须存在)
vi /etc/fstab (加入/dev/ad1s1 /disk1 ufs rw 1 1,这样开机重启就可以自动挂载了)
dmesg 查看硬件信息
# disklabel -I -i sd2
# partition> ?
partition> ?
? print this menu
C make partitions contiguous
E print disk label and current partition table
I change label information
N name the label
P print current partition table
Q quit
R rounding (c)ylinders (s)ectors
W write the current partition table
[a-p] define named partition
partition>

partition> p
Filesystem type [?] [unused]: ?
Supported file system types:
4.1BSD ccd jfs System V
4.2BSD Eighth Edition Linux Ext2 unknown
4.4LFS FILECORE MSDOS unused
ADOS HFS NTFS Version 6
Apple UFS HPFS RAID Version 7
boot ISO9660 swap vinum
Filesystem type [?] [unused]: 4.2BSD
Start offset ('x' to start after partition 'x') [0c, 0s, 0M]: 0
Partition size ('$' for all remaining) [20778.9c, 35843670s, 17501.8M]: $
p: 35843670 0 4.2BSD 0 0 0 # (Cyl. 0 - 20778*)
partition> N
Label name :sd2a
# partition> W
# Label disk [n] Y 完成后
# newfs /dev/sd2a















NetBsd

































