android8.1新建分区并挂载,实验:新增硬盘、MBR分区、制作文件系统并挂载使用...

前期准备:Vmware workstaton虚拟机软件及可用的Centos7系统

1、在虚拟机中新添一块120G的硬盘,已备分区使用,重启系统即可进行分区操作。

2、查看系统上是否识别出的新增的硬盘:

[root@centos7 ~]# lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT

sda 8:0 0 200G 0 disk

├─sda1 8:1 0 1G 0 part /boot

├─sda2 8:2 0 50G 0 part /

├─sda3 8:3 0 2G 0 part [SWAP]

├─sda4 8:4 0 1K 0 part

└─sda5 8:5 0 10G 0 part /data

sdb 8:16 0 120G 0 disk

sr0 11:0 1 10G 0 rom

3、下面对/dev/sdb硬盘进行分区,硬盘一共120G要求分3个分区,第一个分区为40G,第二个分区为50G,第三个分区为30G:

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

Welcome to fdisk (util-linux 2.23.2).

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

Be careful before using the write command.

Device does not contain a recognized partition table

Building a new DOS disklabel with disk identifier 0x15c20061.

Command (m for help): n

Partition type:

p primary (0 primary, 0 extended, 4 free)

e extended

Select (default p):

Using default response p

Partition number (1-4, default 1):

First sector (2048-251658239, default 2048):

Using default value 2048

Last sector, +sectors or +size{K,M,G} (2048-251658239, default 251658239): +40G

Partition 1 of type Linux and of size 40 GiB is set

Command (m for help): N

Partition type:

p primary (1 primary, 0 extended, 3 free)

e extended

Select (default p):

Using default response p

Partition number (2-4, default 2):

First sector (83888128-251658239, default 83888128):

Using default value 83888128

Last sector, +sectors or +size{K,M,G} (83888128-251658239, default 251658239): +50G

Partitio

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值