cfdisk: Partition ends in the final partial cylinder

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
gnopak

cfdisk: Partition ends in the final partial cylinder

Post by gnopak »

I just installed Linux Mint 9 KDE. During install I performed a simple manual partitioning: 4 GB swap, 15 GB /, 730 GB home. Then I run cfdisk to look at the partitions. cfdisk refuses to run. It says "FATAL ERROR: Bad primary partition 1: Partition ends in the final partial cylinder. Press any key to exit cfdisk."

I can run fdisk. Here is the output of fdisk command 'p':
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0008619a

Device Boot Start End Blocks Id System
/dev/sda1 * 1 498 3998720 82 Linux swap / Solaris
Partition 1 does not end on cylinder boundary.
/dev/sda2 499 91202 728572929 5 Extended
/dev/sda5 499 2322 14647296 83 Linux
/dev/sda6 2322 91202 713924608 83 Linux

It is disappointing that the installation created invalid partition. But reinstalling now would be very costly in terms of time. It is a live server. Should I be worried about this parition problem? Could the swap on sda1 overwrite the data on sda5 and trash the whole filesystem?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
piratesmack

Re: cfdisk: Partition ends in the final partial cylinder

Post by piratesmack »

Nah, nothing to worry about.
Your partition table looks fine.

Cfdisk is a very picky program that has strict requirements on the partition tables it accepts.
Just use fdisk or parted if you need to modify your partitions.

I get similar errors if I create any partitions from Windows 7.
gnopak

Re: cfdisk: Partition ends in the final partial cylinder

Post by gnopak »

piratesmack wrote:Nah, nothing to worry about.
I was still worried, so I pressed "u" in fdisk to switch to cylinders mode. Here is the result:

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 7999487 3998720 82 Linux swap / Solaris
Partition 1 does not end on cylinder boundary.
/dev/sda2 8001534 1465147391 728572929 5 Extended
/dev/sda5 8001536 37296127 14647296 83 Linux
/dev/sda6 37298176 1465147391 713924608 83 Linux

and a "v", partition verificatin command in fdisk printed:
Partition 1 does not end on cylinder boundary.
Remaining 7917 unallocated 512-byte sectors

Does this look like there is no overlap, so partitions cannot overwrite each other?
Locked

Return to “Installation & Boot”