centos7 分区 格式化

本文详细介绍了如何在CentOS7系统中查看、分区和格式化磁盘,包括使用fdisk创建新的分区,用mkfs.ext3进行格式化,并且演示了如何挂载新分区以及设置开机自动挂载。
摘要由CSDN通过智能技术生成

1. 查看磁盘

[root@yzb-centos72-3 ~]# fdisk -l

Disk /dev/vda: 32.2 GB, 32212254720 bytes, 62914560 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0009680e

   Device Boot      Start         End      Blocks   Id  System
/dev/vda1            2048     4194303     2096128   82  Linux swap / Solaris
/dev/vda2   *     4194304    56623103    26214400   83  Linux

Disk /dev/vdb: 107.4 GB, 107374182400 bytes, 209715200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


发现/dev/vdb这块未分区、格式化

2. 分区

[root@yzb-centos72-3 ~]# fdisk /dev/vdb
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 0x20ea1593.

Command (m for help):
输入m 查看

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值