博客
关于我
centos7挂载磁盘
阅读量:502 次
发布时间:2019-03-06

本文共 329 字,大约阅读时间需要 1 分钟。

硬盘分区与格式化配置指南

新安装的硬盘默认不可用,需先进行分区处理后再格式化。使用fdisk命令进行分区设置,分区号和起始扇区可使用默认值即可。

分区完成后,需对硬盘进行格式化处理。使用fdisk -l命令查看已创建的分区列表,再使用mkfs命令对目标分区进行格式化。

格式化完成后,将已格式化的分区挂载至服务器,实现硬盘的实际使用。可参考下图确认挂载状态。

新创建的分区无法设置开机自动挂载,需手动操作。为实现自动挂载,可编辑/etc/fstab文件,在文件末尾添加指定内容即可。

另一种方法是将硬盘信息直接写入/etc/fstab文件中。使用命令echo "上图中红色标记的部分" > /etc/fstab完成设置,确保系统每次开机后新挂载硬盘自动可用。

转载地址:http://fdabz.baihongyu.com/

你可能感兴趣的文章
prometheus 安装node_exporter, node_exporter 安装最新版 普罗米修思安装监控服务器client
查看>>
Prometheus 安装部署实战
查看>>
prometheus 持久化存储方案
查看>>
Prometheus 监控系统企业级实战
查看>>
Prometheus 监控系统简介
查看>>
Prometheus 配置详解
查看>>
Prometheus 采集器使用详解
查看>>
Prometheus 黑盒监控实战
查看>>
prometheus+alertmanager+grafana监控部署教程
查看>>
Prometheus+Grafana构建智能化Kubernetes监控系统实战
查看>>
Prometheus+SpringBoot应用监控全过程详解
查看>>
Prometheus+SpringBoot应用监控全过程详解
查看>>
prometheus安装
查看>>
Prometheus实战教程:监控Kafka消息
查看>>
Prometheus实战教程:监控mysql数据库
查看>>
Prometheus实战教程:监控Nginx状态
查看>>
prometheus常用exporter下载地址大全
查看>>
Prometheus快速搭建与监控Linux系统实战
查看>>
prometheus报警与恢复告警的格式
查看>>
Pytorch中安装 torch_geometric 详细图文操作(全)
查看>>