centos7扫描新硬盘_【CentOS】CentOS7 添加新硬盘

本文详细介绍了如何在 CentOS7 中扫描新硬盘并进行分区、格式化及挂载操作。通过 `fdisk` 命令创建新分区,`mkfs.ext3` 进行格式化,然后创建挂载点并使用 `mount` 挂载硬盘。最后,配置 `/etc/fstab` 实现开机自动挂载。
摘要由CSDN通过智能技术生成

参考文章: https://www.it610.com/article/520586.htm(亲测可用,因没有及时存档,故用该文章调整作为记录)

1、查看硬盘

# fdisk -l

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes

255 heads, 63 sectors/track, 243201 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

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

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

Disk identifier: 0x97d16691

Device Boot Start End Blocks Id System

b1c6ee913509ecfd8eb28b00fa7cca9a.png

2、硬盘新建分区

使用fdisk命令对新增的sdb硬盘进行操作

# fdisk /dev/sdb

The device presents a logical sector size that is smaller than

the physical sector size. Aligning to a physical sector (or optimal

I/O) size boundary is recommended, or performance may be i

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值