centos 6.4 fdisk分区、格式化、挂载新硬盘


 

 

 

1、# fdisk -l
查看当前磁盘信息,就会发现最下面显示新加入的硬盘不是有效分区,如下:

[root@mfsdata02 ~]# fdisk -l

 

Disk /dev/sda: 10.7 GB, 10737418240 bytes

255 heads, 63 sectors/track, 1305 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x000601be

 

   DeviceBoot      Start         End      Blocks  Id  System

/dev/sda1  *           1          26      204800  83  Linux

Partition 1 does not end on cylinder boundary.

/dev/sda2              26          91      524288  82  Linux swap / Solaris

Partition 2 does not end on cylinder boundary.

/dev/sda3              91        1306    9755648   83  Linux

 

Disk /dev/sdb: 2147 MB, 2147483648 bytes

255 heads, 63 sectors/track, 261 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00000000

 

 

2、# fdisk /dev/sdb

对新硬盘分区,并根据提示进一步操作:

[root@mfsdata02 ~]# fdisk /dev/sdb

Device contains neither a valid DOS partitiontable, nor Sun, SGI or OSF disklabel

Building a new DOS disklabel with disk identifier0x0467cb4f.

Changes will remain in memory only, until youdecide to write them.

After that, of course, the previous content won'tbe recoverable.

 

Warning: invalid flag 0x0000 of partition table 4will be corrected by w(rite)

 

WARNING: DOS-compatible mode is deprecated. It'sstrongly recommended to

        switch off the mode (command 'c')

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值