There are several problems with util-linux's fdisk on sparc, starting from version 2.24. Reproducible: Always Steps to Reproduce: 1. boot install-sparc64-minimal-20141201.iso 2. fdisk /dev/sda 3. s 4. p Actual Results: livecd ~ # fdisk /dev/sda Welcome to fdisk (util-linux 2.24.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): s Created a new partition 1 of type 'Linux native' and of size 512 B. Created a new partition 2 of type 'Linux swap' and of size 512 B. Created a new partition 3 of type 'Whole disk' and of size 512 B. Created a new Sun disklabel. Command (m for help): p Disk /dev/sda: 68.4 GiB, 73407865856 bytes, 143374738 sectors Geometry: 255 heads, 270582939648 sectors/track, 0 cylinders Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: sun Command (m for help): n Incomplete geometry setting. Expected Results: livecd util-linux # fdisk /dev/sda Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): s Building a new Sun disklabel. Partition 1 of type Linux native and of size 68.3 GiB is set Partition 2 of type Linux swap and of size 47.1 MiB is set Partition 3 of type Whole disk and of size 68.4 GiB is set Command (m for help): p Disk /dev/sda (Sun disk label): 255 heads, 63 sectors, 8924 cylinders Units = sectors of 1 * 512 bytes Device Flag Start End Blocks Id System /dev/sda1 0 143267670 71633835 83 Linux native /dev/sda2 u 143267670 143364060 48195 82 Linux swap /dev/sda3 0 143364060 71682030 5 Whole disk Command (m for help): n Partition number (4-8, default 4): Works fine in 2.23.2, I suspect something went wrong with the fdisk refactoring in util-linux 2.24. Also tested 2.25.2-r2 and 2.26.2, they have the same problem. This bug makes it hard to install Gentoo on sparc systems, so please add 2.23.2 back to the portage tree for now, and please make sure that autobuild picks up the change and creates a fixed ISO. emerge --info: Portage 2.2.8-r2 (default/linux/sparc/13.0, gcc-4.7.3, glibc-2.19-r1, 3.14.14-gentoo sparc64) ================================================================= System uname: Linux-3.14.14-gentoo-sparc64-sun4u-with-gentoo-2.2 KiB Mem: 2047160 total, 112240 free KiB Swap: 0 total, 0 free Timestamp of tree: Fri, 03 Jul 2015 00:45:01 +0000 ld GNU ld (Gentoo 2.24 p1.4) 2.24 app-shells/bash: 4.2_p53 dev-lang/perl: 5.18.2-r2 dev-lang/python: 2.7.7, 3.3.5-r1, 3.4.1 dev-util/pkgconfig: 0.28-r1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.69 sys-devel/automake: 1.13.4 sys-devel/binutils: 2.24-r3 sys-devel/gcc: 4.7.3-r1 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2-r1 sys-devel/make: 4.0-r1 sys-kernel/linux-headers: 3.16 (virtual/os-headers) sys-libs/glibc: 2.19-r1 Repositories: gentoo x-misc ACCEPT_KEYWORDS="sparc" ACCEPT_LICENSE="* -@EULA" CBUILD="sparc-unknown-linux-gnu" CFLAGS="-O2 -mcpu=ultrasparc3 -pipe" CHOST="sparc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -mcpu=ultrasparc3 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/misc" USE="acl berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gcc64 gdbm iconv ipv6 modules ncurses nls nptl openmp pam pcre readline session sparc ssl tcpd unicode zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga r128 radeon sunbw2 suncg14 suncg3 suncg6 sunffb sunleo tdfx dummy v4l" 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, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
does it fail
looks like it was already reported upstream: http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/11195 can you try the latest git to see if it's fixed ?
Latest upstream git works.
looks like the fix was included as part of a large rework. guess we'll just wait for util-linux 2.30 rather than try to backport it.
I'll try to take one of the old sparc systems that's in my parents' attic to my place when I'm going back home later this month, and do some testing.
@Dakon: I assume this is fixed long ago now?
2.36.2 works at least.