If you want to create more than four partitions, you must replace a primary partition with an extended partition first.

myakan

New Member
Joined
Dec 19, 2020
Messages
1
Reaction score
0
Credits
16
Hi there,

We use Centos7 minimal 3.10.0-957.10.1.el7.x86_64

I extend my disk, diffrent times one more than,

Now, i try extend disk, i see this error;

"
If you want to create more than four partitions, you must replace a
primary partition with an extended partition first.
"
when i understand, ı must last sda4 delete and recreate extend disk partition but my server availibile disk ;

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 342G 305G 37G 90% /


my question;
when i delete last partition and recreate partition, i lost my data?

my fdisk output;
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 2099199 1048576 83 Linux
/dev/sda2 2099200 419430399 208665600 8e Linux LVM
/dev/sda3 419430400 524287999 52428800 83 Linux
/dev/sda4 524288000 734003199 104857600 83 Linux
 


The data won't be lost until new data is written over it, but when you delete a partition and create a new one the start and end blocks of the disk are different so when doing this data could become inaccessible to you so be sure to ALWAYS make backups before doing so. I would just backup(to an external disk) the data of the last partition, delete it, create a new extended partition and from there you you can create secondary partitions. With the GPT partition table you not have a limit as in how many partitions you can make per disk.
 

Members online


Latest posts

Top