- Prepare a GPT partition table (I have observed stability issues when using a dospartition)
$ sudo parted /dev/sd<x> (parted) mklabel gpt (parted) mkpart primary xfs 0 100% (parted) quit
if parted complains about alignment issues (“Warning: The resulting partition is not properly aligned for best performance”), check this two links to find a solution: 1 and2.
- Format the disk with xfs (you might need to install xfs tools with
sudo apt-get install xfsprogs)$ sudo mkfs.xfs /dev/sd<x>1
- Create a Journal partition (raw/unformatted)
$ sudo parted /dev/sd<y> (parted) mklabel gpt (parted) mkpart primary 0 100%
fdisk /dev/vdb
n
p
1
w
-----------------------------------------------------------
mkfs.xfs -f /dev/vdb
n
p
1
w
-----------------------------------------------------------
mkfs.xfs -f /dev/vdb
本文介绍如何使用 parted 工具准备 GPT 分区表,并解决可能出现的对齐问题。同时,提供了格式化磁盘为 XFS 文件系统及创建原始分区的方法。
1566

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



