惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Check Point Blog
Microsoft Security Blog
Microsoft Security Blog
aimingoo的专栏
aimingoo的专栏
V
V2EX
博客园 - 【当耐特】
T
Tailwind CSS Blog
Apple Machine Learning Research
Apple Machine Learning Research
量子位
MyScale Blog
MyScale Blog
Hugging Face - Blog
Hugging Face - Blog
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog
月光博客
月光博客
I
InfoQ
WordPress大学
WordPress大学
Martin Fowler
Martin Fowler
T
The Blog of Author Tim Ferriss
爱范儿
爱范儿
小众软件
小众软件
罗磊的独立博客
Recent Announcements
Recent Announcements
Blog — PlanetScale
Blog — PlanetScale
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

博客园 - 黄尚

年前辞职,年后找工作 airport 抓包 配置ssh使用socks代理 配置git使用socks5代理 bash 相关的一些小代码片断 MacOS changed System Integrity Protection status CMakeLists.txt for nginx 构建最小的docker容器 rsync 通过 ssh 上传文件 php-fpm 在centos 7下的安装配置 在osx下通过vmware无GUI方式运行centos 7 ruby on rails 在centos 7下的安装配置 Mariadb 在centos 7下的安装配置 PostgreSQL 在centos 7下的安装配置 osx 编译安装配置 ruby on rails tls/ssl证书生成和格式转换 nginx相关的一些记录 用systemd脚本自动启动node js程序 SSH Tunneling
centos 7 挂载大硬盘
黄尚 · 2016-03-17 · via 博客园 - 黄尚

对硬盘sdb进行分区

parted -a optimal /dev/sdb

使用GPT格式

mklabel gpt

建立一个主分区

mkpart primary 1 -1

显示分区信息

print

退出

quit

格式化为xfs格式

mkfs.xfs /dev/sdb1

加入自动挂载

echo "/dev/sdb1               /opt                    xfs     defaults        0 0" >> /etc/fstab

挂载分区

mount -a

查看磁盘信息

df -h

posted on 2016-03-17 22:54  黄尚  阅读(6531)  评论(0)    收藏  举报