目录
1.使用fdisk对/dev/nvme0n1剩余空间进行分区
2.新添加一块儿磁盘使用gdisk,设置gpt分区表,新建分区先去添加一块SATA硬盘,然后开机查看是否加载到新的硬盘,如果检测到再进行管理操作
4.使用parted对/dev/nvme0n1新增分区(命令式)
1.使用fdisk对/dev/nvme0n1剩余空间进行分区
[root@localhost ~]# fdisk /dev/nvme0n1
Command (m for help): n
Partition type
p primary (2 primary, 0 extended, 2 free)
e extended (container for logical partitions)
Select (default p):Using default response p.
Partition number (3,4, default 3):
First sector (68675584-83886079, default 68675584): #从当前68675584扇区开始分区
Last sector, +sectors or +size{K,M,G,T,P} (68675584-83886079, default 83886079): +500MCreated a new partition 3 of type 'Linux' and of size 500 MiB.
Command (m for help): n
Partition type
p primary (3 primary, 0 extended, 1 free)
e extended (container for logical partitions)
Select (default e):Using default response e.
Selected partition 4
First sector (69699584-83886079, default 69699584): +500M
First sector (69699584-83886079, default 69699584):
Last sector, +sectors or +size{K,M,G,T,P} (69699584-83886079, default 83886079): +500MCreated a new partition 4 of type 'Extended' and of size 500 MiB.
...
Command (m for help): w
The partition table has been altered.
Syncing disks.

本文介绍了如何在Linux中使用fdisk、gdisk和parted工具对NVMe和SATA硬盘进行分区操作,包括创建GPT分区表,新建分区,以及格式化和挂载分区的步骤。
最低0.47元/天 解锁文章
7510

被折叠的 条评论
为什么被折叠?



