03.11.2020 23:31, Istvan Gabor пишет:
Hello:
I have a 250 GB SSD I want to partition with cfdisk. It is from util-linux 2.33.1, default on openSUSE Leap 15.1 I have.
I've set a DOS compatible msdos partition scheme.
No, you have not. fdisk has "DOS compatibility" flag (fdisk -c=dos) which changes default partition alignment. You partitions are aligned on 1MiB which means they were created in "nondos" compatibility mode. Defaults changed over time. Or you need to explain what exactly you mean with "set a DOS compatible msdos partition scheme". It is always better to show actual command you used instead of describing what you intended (or believed this command would do).
The created partitions in cfdisk are:
Device Boot Start End Sectors Size Id Type /dev/sdb1 2048 8390655 8388608 4G 83 Linux /dev/sdb2 8390656 92276735 83886080 40G 83 Linux /dev/sdb3 92276736 176162815 83886080 40G 83 Linux /dev/sdb4 176162816 488397167 312234352 148.9G 5 Extended ├─/dev/sdb5 176164864 218107903 41943040 20G 83 Linux
├─/dev/sdb6 218109952 260052991 41943040 20G 83 Linux ├─/dev/sdb7 260055040 301998079 41943040 20G 83 Linux └─Free space 302000128 488397167 186397040 88.9G
The primary partitions are aligned right after each other. Eg sdb1 ends at sector 8390655 and sdb starts at 8390656.
But between logical partitions cfdisk inserts 2048 empty sectors. Eg sdb4 starts at sector 176162816 but sdb5 starts at 176164864. There are 2048 unused sectors between the two. Similarly, sdb5 ends at 218107903 but sdb6 starts at 218109952. Again there are 2048 unused sectors between the two.
1. Why does cfdisk insert these unused spaces between partitions?
2. If I used parted and aligned the extended partitions right after each other (like the primary partitions) would it cause any problem?
Thanks in advance,
Istvan
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org