Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627728 - sys-apps/util-linux-2.28.2 fdisk: wrong behaviour for SUN partition table
Summary: sys-apps/util-linux-2.28.2 fdisk: wrong behaviour for SUN partition table
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://git.kernel.org/pub/scm/utils/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-12 22:13 UTC by silver_ghost
Modified: 2018-03-02 01:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description silver_ghost 2017-08-12 22:13:49 UTC
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.
Comment 1 Jonas Stein gentoo-dev 2017-08-25 19:37:18 UTC
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
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2017-11-02 18:56:41 UTC
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.
Comment 4 silver_ghost 2017-11-03 00:05:18 UTC
(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.