Is it possible convert 'Primary' partition to 'Extend' partition?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I'm using CentOS 7 mini version. I'm still learning Linux. As you may know Linux can create 4 'Primary' partitions maximum. I tried to create 4 'Primary' partitions on a physical disk. I'm curious is it possible to change a 'Primary' partition to 'Extend' partition w/o delete the partition?



Following is my fdisk output:



Disk /dev/sdb: 107.4 GB, 107374182400 bytes, 209715200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x98e83b49

Device Boot Start End Blocks Id System
/dev/sdb1 2048 52430847 26214400 83 Linux
/dev/sdb2 52430848 104859647 26214400 83 Linux
/dev/sdb3 104859648 146802687 20971520 83 Linux
/dev/sdb4 146802688 188745727 20971520 0 Empty


Any help is appreciated.







share|improve this question



















  • Is there anything in your “empty” partition 4?
    – Stephen Kitt
    Jul 3 at 16:43










  • No data. It's for testing purpose. I only created 'extend' partition 4. Not yet create any 'logical' partition.
    – Wu Zheng
    Jul 4 at 6:11














up vote
1
down vote

favorite












I'm using CentOS 7 mini version. I'm still learning Linux. As you may know Linux can create 4 'Primary' partitions maximum. I tried to create 4 'Primary' partitions on a physical disk. I'm curious is it possible to change a 'Primary' partition to 'Extend' partition w/o delete the partition?



Following is my fdisk output:



Disk /dev/sdb: 107.4 GB, 107374182400 bytes, 209715200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x98e83b49

Device Boot Start End Blocks Id System
/dev/sdb1 2048 52430847 26214400 83 Linux
/dev/sdb2 52430848 104859647 26214400 83 Linux
/dev/sdb3 104859648 146802687 20971520 83 Linux
/dev/sdb4 146802688 188745727 20971520 0 Empty


Any help is appreciated.







share|improve this question



















  • Is there anything in your “empty” partition 4?
    – Stephen Kitt
    Jul 3 at 16:43










  • No data. It's for testing purpose. I only created 'extend' partition 4. Not yet create any 'logical' partition.
    – Wu Zheng
    Jul 4 at 6:11












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I'm using CentOS 7 mini version. I'm still learning Linux. As you may know Linux can create 4 'Primary' partitions maximum. I tried to create 4 'Primary' partitions on a physical disk. I'm curious is it possible to change a 'Primary' partition to 'Extend' partition w/o delete the partition?



Following is my fdisk output:



Disk /dev/sdb: 107.4 GB, 107374182400 bytes, 209715200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x98e83b49

Device Boot Start End Blocks Id System
/dev/sdb1 2048 52430847 26214400 83 Linux
/dev/sdb2 52430848 104859647 26214400 83 Linux
/dev/sdb3 104859648 146802687 20971520 83 Linux
/dev/sdb4 146802688 188745727 20971520 0 Empty


Any help is appreciated.







share|improve this question











I'm using CentOS 7 mini version. I'm still learning Linux. As you may know Linux can create 4 'Primary' partitions maximum. I tried to create 4 'Primary' partitions on a physical disk. I'm curious is it possible to change a 'Primary' partition to 'Extend' partition w/o delete the partition?



Following is my fdisk output:



Disk /dev/sdb: 107.4 GB, 107374182400 bytes, 209715200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x98e83b49

Device Boot Start End Blocks Id System
/dev/sdb1 2048 52430847 26214400 83 Linux
/dev/sdb2 52430848 104859647 26214400 83 Linux
/dev/sdb3 104859648 146802687 20971520 83 Linux
/dev/sdb4 146802688 188745727 20971520 0 Empty


Any help is appreciated.









share|improve this question










share|improve this question




share|improve this question









asked Jul 3 at 16:42









Wu Zheng

83




83











  • Is there anything in your “empty” partition 4?
    – Stephen Kitt
    Jul 3 at 16:43










  • No data. It's for testing purpose. I only created 'extend' partition 4. Not yet create any 'logical' partition.
    – Wu Zheng
    Jul 4 at 6:11
















  • Is there anything in your “empty” partition 4?
    – Stephen Kitt
    Jul 3 at 16:43










  • No data. It's for testing purpose. I only created 'extend' partition 4. Not yet create any 'logical' partition.
    – Wu Zheng
    Jul 4 at 6:11















Is there anything in your “empty” partition 4?
– Stephen Kitt
Jul 3 at 16:43




Is there anything in your “empty” partition 4?
– Stephen Kitt
Jul 3 at 16:43












No data. It's for testing purpose. I only created 'extend' partition 4. Not yet create any 'logical' partition.
– Wu Zheng
Jul 4 at 6:11




No data. It's for testing purpose. I only created 'extend' partition 4. Not yet create any 'logical' partition.
– Wu Zheng
Jul 4 at 6:11










1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










No, it is not. An extended partition is simply an enumeration of logical partitions and contains no user data itself.



Any tool that purports to convert primary partitions into logical (not extended) partitions does so by moving the data before changing all the structures, since it is not as simple as simply flipping a bit to change the type.



Also, the 4-partition limit is part of the MBR partition scheme, not any particular OS; GPT supports many more partitions without any "extended" partitions, but requires a modern BIOS in order to be used (or a bootloader that can take over where the BIOS leaves off).






share|improve this answer





















  • Actually, if there is enough room, one can rewrite the structures around the disc slices without having to relocate them. Rod Smith's fixparts does this. There isn't enough room in this case.
    – JdeBP
    Jul 3 at 17:09










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f453264%2fis-it-possible-convert-primary-partition-to-extend-partition%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
2
down vote



accepted










No, it is not. An extended partition is simply an enumeration of logical partitions and contains no user data itself.



Any tool that purports to convert primary partitions into logical (not extended) partitions does so by moving the data before changing all the structures, since it is not as simple as simply flipping a bit to change the type.



Also, the 4-partition limit is part of the MBR partition scheme, not any particular OS; GPT supports many more partitions without any "extended" partitions, but requires a modern BIOS in order to be used (or a bootloader that can take over where the BIOS leaves off).






share|improve this answer





















  • Actually, if there is enough room, one can rewrite the structures around the disc slices without having to relocate them. Rod Smith's fixparts does this. There isn't enough room in this case.
    – JdeBP
    Jul 3 at 17:09














up vote
2
down vote



accepted










No, it is not. An extended partition is simply an enumeration of logical partitions and contains no user data itself.



Any tool that purports to convert primary partitions into logical (not extended) partitions does so by moving the data before changing all the structures, since it is not as simple as simply flipping a bit to change the type.



Also, the 4-partition limit is part of the MBR partition scheme, not any particular OS; GPT supports many more partitions without any "extended" partitions, but requires a modern BIOS in order to be used (or a bootloader that can take over where the BIOS leaves off).






share|improve this answer





















  • Actually, if there is enough room, one can rewrite the structures around the disc slices without having to relocate them. Rod Smith's fixparts does this. There isn't enough room in this case.
    – JdeBP
    Jul 3 at 17:09












up vote
2
down vote



accepted







up vote
2
down vote



accepted






No, it is not. An extended partition is simply an enumeration of logical partitions and contains no user data itself.



Any tool that purports to convert primary partitions into logical (not extended) partitions does so by moving the data before changing all the structures, since it is not as simple as simply flipping a bit to change the type.



Also, the 4-partition limit is part of the MBR partition scheme, not any particular OS; GPT supports many more partitions without any "extended" partitions, but requires a modern BIOS in order to be used (or a bootloader that can take over where the BIOS leaves off).






share|improve this answer













No, it is not. An extended partition is simply an enumeration of logical partitions and contains no user data itself.



Any tool that purports to convert primary partitions into logical (not extended) partitions does so by moving the data before changing all the structures, since it is not as simple as simply flipping a bit to change the type.



Also, the 4-partition limit is part of the MBR partition scheme, not any particular OS; GPT supports many more partitions without any "extended" partitions, but requires a modern BIOS in order to be used (or a bootloader that can take over where the BIOS leaves off).







share|improve this answer













share|improve this answer



share|improve this answer











answered Jul 3 at 16:51









Ignacio Vazquez-Abrams

31.9k66680




31.9k66680











  • Actually, if there is enough room, one can rewrite the structures around the disc slices without having to relocate them. Rod Smith's fixparts does this. There isn't enough room in this case.
    – JdeBP
    Jul 3 at 17:09
















  • Actually, if there is enough room, one can rewrite the structures around the disc slices without having to relocate them. Rod Smith's fixparts does this. There isn't enough room in this case.
    – JdeBP
    Jul 3 at 17:09















Actually, if there is enough room, one can rewrite the structures around the disc slices without having to relocate them. Rod Smith's fixparts does this. There isn't enough room in this case.
– JdeBP
Jul 3 at 17:09




Actually, if there is enough room, one can rewrite the structures around the disc slices without having to relocate them. Rod Smith's fixparts does this. There isn't enough room in this case.
– JdeBP
Jul 3 at 17:09












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f453264%2fis-it-possible-convert-primary-partition-to-extend-partition%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?