After you create the first partition starting from 0 sector, all subsequent partitions are created right after it, not after previous one. Also the third partition should be whole disk for SUN partition table but fdisk doesn't allow to create it so if there are partition at 0 sector already. Reproducible: Always Steps to Reproduce: 1. Run fdisk /dev/sdx. 2. Create new SUN partition table with command s. 3. Delete 3 default partitions with d. 4. Create the first partition from default to +10G with n. 5. Create the second partition from default to +8G. 6. Create the third partition from default to default. 7. Create the fourth partition from default to +30G. Actual Results: Device Start End Sectors Size Id Type Flags /dev/sdc1 0 20971519 20971520 10G 83 Linux native /dev/sdc2 20980890 37758105 16777216 8G 83 Linux native /dev/sdc3 20980890 976768064 955787175 455.8G 83 Linux native /dev/sdc4 20980890 83895449 62914560 30G 83 Linux native Expected Results: Device Start End Sectors Size Id Type Flags /dev/sdc1 0 20971519 20971520 10G 83 Linux native /dev/sdc2 20980890 37758105 16777216 8G 83 Linux native /dev/sdc3 0 976768064 976773168 465.8G 83 Whole disk /dev/sdc4 37758110 100672670 62914560 30G 83 Linux native This happens on both x86_64 and sparc64 machines. Also tested on =sys-apps/util-linux-2.30. The same behaviour.
Thank you for your report. To me it sounds like a bug in the software provided upstream or a misconfiguration in your system [3]. Does the same source work for you on another distribution? I suggest to discuss this problem on a related mailing list, forum or IRC channel. I have had very good experience on the gentoo IRC [1], of course there are also forums and mailing lists. [2] I will close this bug here, because I do not see a relation to the gentoo ebuild or the way gentoo handles this special software package. Please provide more information, if I am wrong. [1] https://www.gentoo.org/get-involved/irc-channels/ [2] https://www.gentoo.org/support/ [3] look up the upstream forums search in their bugtracker
Fixed in upstream: https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/commit/?id=27895be26074780aac5a849514b2a6f8560adfcd
Could you please explain your "major" rating? Was it working in <2.28.2 releases? At the moment this looks like a normal bug to me, not like a regression and we will probably wait for the next normal util-linux release. Feel free to use the live ebuild in the meantime.
(In reply to Thomas Deutschmann from comment #3) > Could you please explain your "major" rating? Was it working in <2.28.2 > releases? At the moment this looks like a normal bug to me, not like a > regression and we will probably wait for the next normal util-linux release. Maybe it's not major. There is workaround for creation of new partition table: don't delete default whole disk partition created for you or add it before any other one. For the existing table you can create whole disk only if the first sector is free or the entire disk is allocated. I don't know whether or not it worked before. Also it's fixed only for whole disk partition, not subsequent partitions.
Fixed in version 2.31.1. https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/tree/Documentation/releases/v2.31.1-ReleaseNotes?h=v2.31.1