1、fdisk -l或parted /dev/sdb print检查硬盘加载成功了没有,有哪些分区。
例如:
Disk /dev/sda: 600.1 GB, 600127266816 bytes
255 heads, 63 sectors/track, 72961 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 72961 586059201 83 Linux
Disk /dev/sdb: 1199.1 GB, 1199101181952 bytes
255 heads, 63 sectors/track, 145782 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13054 104856223+ 83 Linux
/dev/sdb2 13055 17231 33551752+ 82 Linux
/dev/sdb3 17232 145782 1032585907+ 83 Linux
2、创建目录mkdir /data1 /data2
3、加载
mount /dev/sdb1 /data1
mount /dev/sdb2 /data2
4、检查分区
df -h
5、为了重启仍然可以加载/dev/sdb1
vi /etc/fstab
/dev/sdb1 /data1 ext3 defaults 1 2