linux格式化新硬盘并挂载并设置开机自动挂载(2)
1.关闭服务器加上新硬盘
2.启动服务器,以root用户登录
3.查看硬盘信息
#fdisk -l
Disk /dev/sda: 146.1 GB, 146163105792 bytes
255 heads, 63 sectors/track, 17769 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 5112 40957717+ 83 Linux
/dev/sda3 5113 5243 1052257+ 82 Linux swap /
Solaris
/dev/sda4 5244 17769 100615095 5 Extended
/dev/sda5 5244 17769 100615063+ 83 Linux
Disk /dev/sdb: 291.3 GB, 291331192320 bytes
255 heads, 63 sectors/track, 17769 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb1: 291.3 GB, 291331192320 bytes