#[SOLVED] parted misbehaving, not creating filesystem

6 messages · Page 1 of 1 (latest)

candid current
#

so i want to format & partition my drive with parted. [running on Artix with runit @ Legacy BIOS in the live installation enviroment]
i want to create 2 partitions, /dev/sda1 for boot and /dev/sda2 for a lvm container. but all that is probably besides the point because parted doesnt really create the filesystems is tell it to or not at all.

my commands:

parted -s /dev/sda mklabel msdos

parted -s -a optimal /dev/sda mkpart "primary" "fat32" "0%" "1024MiB"
parted -s /dev/sda set 1 boot on

parted -s -a optimal /dev/sda mkpart "primary" "ext4" "1024MiB" "100%"
parted -s /dev/sda set 2 lvm on

parted -s /dev/sda print

so its nothing fancy, just basic partitioning but when printing to verify the end result the filesystem is often missing, or one time i created ext4 for boot instead of fat32
when i create a filesystem with mkfs to make the missing one, it will also show up when i [parted -s /dev/sda print] afterwards.

i dont really know what the reason for this could be, the web showed not usefull stuff regarding this problem and this makes me think parted is broken for me

note that i had to install parted first with pacman as it isnt available in the live enviroment first
also dont get confused why i use fat32 for legacy bios, it doesnt make a difference to ext4 and i simply want compatibility with uefi if necessairy

hope someone knows more than me, thanks in advance!

candid current
#

@worthy snow fdisk is not as good as parted with optimal alignment. theres a reason all the tutorials for my specific task use parted and not fdisk

spark coral
candid current
#

mkpart part-type [fs-type] start end
Make a part-type partition with filesystem fs-type (if specified), beginning at start and ending at end (by default in megabytes). fs-type can be one of "fat16", "fat32", "ext2", "HFS", "linux-swap", "NTFS", "reiserfs", or "ufs". part-type should be one of "primary", "logical", or "extended".

candid current
#

solved, from arch wiki:
"fs-type is an identifier chosen among those listed by entering help mkpart as the closest match to the file system that you will use. The mkpart command does not actually create the file system: the fs-type parameter will simply be used by parted to set partition type GUID for GPT partitions or partition type ID for MBR partitions."