D
D
Dmitriyshremzer2021-03-29 15:41:11
Arch Linux
Dmitriyshremzer, 2021-03-29 15:41:11

How to change fs on disk?

when I divide the disk cfdisk / dev / sda, a sign pops up: select Label type, if I select gpt, then there is no fs EFI (FAT-12/16/32) in the list, and if I choose dos, then FAT32 is in the list.
And I need to create a gpt partition table on the disk and create a partition on it with fs FAT32

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xotkot, 2021-03-29
@xotkot

# wipefs -a /dev/sda
# parted -s -a opt /dev/sda mklabel gpt mkpart "ESP" fat32 2MB 500MB set 1 esp on && sleep 1
# parted -s -a opt /dev/sda mkpart "ROOT" ext4 500MB 100% && sleep 1
# mkfs.fat -F32   /dev/sda1
# yes | mkfs.ext4 /dev/sda2 -L "Arch"

as a result, we get two partitions on the /dev/sda disk, one for EFI and the other for everything else

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question