Solved What is the difference between the two formatting methods?

Solved issue

solidsnake

New Member
Joined
Oct 6, 2021
Messages
18
Reaction score
1
Credits
316
Is there an advantage of the first method over direct formatting?

I will fully utilize the size of my disk


Code:
parted /dev/mapper/mpatha mklabel gpt
parted /dev/mapper/mpatha -s -- mkpart primary 2048s -0
parted /dev/mapper/mpatha unit s print
mkfs.ext4 /dev/mapper/mpatha1

I usually use this directly.
Code:
mkfs.ext4 /dev/mapper/mpatha
 


There is no difference to the final outcome.

First method is useful when you want a partition of different size than what currently is or if you want additional space for more partitions.
Another use case of first method is to convert MBR partition to GPT.

In short first method deals with partitions and partition table, the rest is formatting with mkfs.ext4 which produces same outcome.
 
There is no difference to the final outcome.

First method is useful when you want a partition of different size than what currently is or if you want additional space for more partitions.
Another use case of first method is to convert MBR partition to GPT.

In short first method deals with partitions and partition table, the rest is formatting with mkfs.ext4 which produces same outcome.
Thanks @CaffeineAddict
 

Staff online


Top