使用fdisk给新增加硬盘分区

1.使用fdisk创建6个分区[1P+1E(5L)] //dev/sdb1 /dev/sdb5 /dev/sdb6 /dev/sdb7 /dev/sdb8 /deb/sdb9

--------------------------------------------------------------------
注:如果你对python感兴趣,我这有个学习Python基地,里面有很多学习资料,感兴趣的+Q群:895817687
--------------------------------------------------------------------

1 [root@server ~]# fdisk -l
 2 
 3 Disk /dev/sda: 8589 MB, 8589934592 bytes
 4 255 heads, 63 sectors/track, 1044 cylinders
 5 Units = cylinders of 16065 * 512 = 8225280 bytes
 6 Sector size (logical/physical): 512 bytes / 512 bytes
 7 I/O size (minimum/optimal): 512 bytes / 512 bytes
 8 Disk identifier: 0x000aec72
 9 
10    Device Boot      Start         End      Blocks   Id  System
11 /dev/sda1   *           1          26      204800   83  Linux
12 Partition 1 does not end on cylinder boundary.
13 /dev/sda2              26          91      524288   82  Linux swap / Solaris
14 Partition 2 does not end on cylinder boundary.
15 /dev/sda3              91        1045     7658496   83  Linux
16 
17 Disk /dev/sdb: 1073 MB, 1073741824 bytes
18 255 heads, 63 sectors/track, 130 cylinders
19 Units = cylinders of 16065 * 512 = 8225280 bytes
20 Sector size (logical/physical): 512 bytes / 512 bytes
21 I/O size (minimum/optimal): 512 bytes / 512 bytes
22 Disk identifier: 0x00000000

2.fdisk -cu /dev/sdb开始分区

1 [root@server ~]# fdisk -cu /dev/sdb   //-c:表示丢弃DOS兼容模式,切换到mode模式; -u:表示从柱面分区改为扇区分区
2 Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
3 Building a new DOS disklabel with disk identifier 0x94c5ab35.
4 Changes will remain in memory only, until you decide to write them.
5 After that, of course, the previous content won't be recoverable.
6 
7 Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
8 
9 Command (m for help):

3.输入m查看帮助

1 Command (m for help): m
 2 Command action
 
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值