linux 分区 格式化 挂载 新硬盘
生活随笔
收集整理的這篇文章主要介紹了
linux 分区 格式化 挂载 新硬盘
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
2019獨角獸企業重金招聘Python工程師標準>>>
1、給硬盤分區
fdisk /dev/sda
Command (m for help): n
Command action
e extended
p primary partition (1-4)
輸入:e
Partition number (1-4): 1
First cylinder (1-9729, default 1):回車
Last cylinder or +size or +sizeM or +sizeK (1-9729, default 9729):回車
Command (m for help):w(保存退出)
2、格式化硬盤
fdisk -l
mkfs -t ext3 /dev/sda1
Writing superblocks and filesystem accounting information:直接回車。
3、掛載
?mkdir /test
mount -t ext3 /dev/sda1 /test
4、開機直接掛載
編輯/etc/fstab 文件
添加:/dev/sda1 /test ext3 defaults 1 1
轉載于:https://my.oschina.net/u/1176097/blog/680066
總結
以上是生活随笔為你收集整理的linux 分区 格式化 挂载 新硬盘的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: dbghelp.dll是什么
- 下一篇: 线阵相机行频和运动速度之间的关系