[Bug 545966] Re: [util-linux] cfdisk cannot read 1MiB-aligned partition tables
Bug Watch Updater
545966 at bugs.launchpad.net
Wed Mar 25 02:54:52 UTC 2026
Launchpad has imported 5 comments from the remote bug at
https://bugs.gentoo.org/show_bug.cgi?id=328103.
If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.
------------------------------------------------------------------------
On 2010-07-13T13:17:05+00:00 jarausch wrote:
I have partioned a disk using fdisk without the DOS Compatibility flag.
fdisk -l /dev/sdd displays
fdisk -l /dev/sdd
Disk /dev/sdd: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 identifier: 0x41ffc810
Device Boot Start End Blocks Id System
/dev/sdd1 2048 314574847 157286400 83 Linux
/dev/sdd2 314574848 625142447 155283800 83 Linux
Invoking cfdisk for the same disk gives
FATAL ERROR: Bad primary partition 1: Partition ends in the final partial cylind
Press any key to exit cfdisk
Reproducible: Always
Reply at:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/545966/comments/9
------------------------------------------------------------------------
On 2010-07-19T15:32:17+00:00 jer wrote:
Please post your `emerge --info' too. Also, is this a regression wrt the
previous stable version of util-linux?
Reply at:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/545966/comments/10
------------------------------------------------------------------------
On 2010-07-19T16:02:40+00:00 jarausch wrote:
(In reply to comment #1)
> Please post your `emerge --info' too. Also, is this a regression wrt the
> previous stable version of util-linux?
>
I've never used the stable version. I've used cfdisk for the first time
since a very long time. Furthermore I've repartitioned my hard disks
with fdisk -c=nondos -u to be compatible with modern drivers using
a larger sector size.
emerge --info '=sys-apps/util-linux-2.18'
Portage 2.2_rc67 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34-ck-r1 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-2.6.34-ck-r1-x86_64-AMD_Phenom-tm-_II_X4_940_Processor-with-gentoo-2.0.1
Timestamp of tree: Mon, 19 Jul 2010 13:15:01 +0000
ccache version 2.4 [disabled]
app-shells/bash: 4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python: 2.6.5-r3, 3.1.2-r4
dev-util/ccache: 2.4-r8
dev-util/cmake: 2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc: 0.6.1-r1
sys-apps/sandbox: 2.2
sys-devel/autoconf: 2.13, 2.65-r1
sys-devel/automake: 1.6.3-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1-r1
sys-devel/gcc: 4.4.4-r1, 4.5.0, 4.6.0_pre9999
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.10
virtual/os-headers: 2.6.34
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -O2 -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-mtune=native -O2 -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LDFLAGS="-Wl,-O1"
LINGUAS="en de"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/layman/sunrise"
SYNC="rsync://rsync.informatik.RWTH-Aachen.de/gentoo-portage"
USE="3dnow 3dnowext 3dnowprefetch X a52 aac acl acpi alsa amd64 atm avahi berkdb branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg fftw firefox flac fortran fuse gdbm gfortran gif gimp gnome gpm gtk gtk2 hal iconv ipv6 jpeg kde lapack lcms libnotify mad mikmod mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt qt3support qt4 readline reflection sdl session smp spell spl sqlite sqlite3 sse sse2 sse3 sse4a ssl startup-notification svg sysfs tcl tcpd threads tiff tk truetype unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeonhd" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
=================================================================
Package Settings
=================================================================
sys-apps/util-linux-2.18 was built with the following:
USE="crypt (multilib) nls perl unicode -loop-aes -old-linux (-selinux) -slang (-uclibc)"
Reply at: https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/545966/comments/11
------------------------------------------------------------------------
On 2010-08-25T16:48:40+00:00 marti wrote:
> /dev/sdd1 2048 314574847 157286400 83 Linux
> FATAL ERROR: Bad primary partition 1: Partition ends in the final partial
AFAICT this is cfdisk's unability to cope with partition tables that are
1MiB-aligned, as that number does not fall on the cylinder boundary (56
sectors).
I'm also seeing this problem with newer Linux installations.
Reply at: https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/545966/comments/13
------------------------------------------------------------------------
On 2026-03-24T18:07:26+00:00 floppym wrote:
I suspect this is no longer an issue for modern versions of cfdisk.
Reply at:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/545966/comments/27
** Changed in: gentoo
Status: Confirmed => Expired
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubiquity in Ubuntu.
https://bugs.launchpad.net/bugs/545966
Title:
[util-linux] cfdisk cannot read 1MiB-aligned partition tables
Status in partman-base package in Ubuntu:
Invalid
Status in ubiquity package in Ubuntu:
Invalid
Status in util-linux package in Ubuntu:
Fix Released
Status in util-linux package in Fedora:
Fix Released
Status in Gentoo Linux:
Expired
Bug description:
I installed lucid from CD on a spare laptop. I chose the "Use entire
disk" option.
The problem is that the created partition cannot be read by cfdisk:
# cfdisk /dev/sda
FATAL ERROR: Bad primary partition 1: Partition ends in the final partial cylinder
Press any key to exit cfdisk
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/partman-base/+bug/545966/+subscriptions
More information about the foundations-bugs
mailing list