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、挂载
mount /dev/sda1 /test

4、开机直接挂载
编辑/etc/fstab 文件
添加:/dev/sda1 /test ext3 defaults 1 1

相关文章:

  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2021-04-26
  • 2022-12-23
  • 2022-02-22
  • 2021-12-04
猜你喜欢
  • 2021-04-19
  • 2021-09-04
  • 2021-07-16
  • 2021-10-01
  • 2021-12-16
  • 2021-12-15
  • 2022-12-23
相关资源
相似解决方案