龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > 操作系统 > LINUX系统 >

linux格式化新硬盘并挂载并设置开机自动挂载(2)

时间:2014-06-22 15:08来源:网络整理 作者:网络 点击:
分享到:
1.关闭服务器加上新硬盘 2.启动服务器,以root用户登录 3.查看硬盘信息 #fdisk -l Disk /dev/sda: 146.1 GB, 146163105792 bytes 255 heads, 63 sectors/track, 17769 cylinders Units =

 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

精彩图集

赞助商链接