Bug 12176 - f,c,gdisk shows wrong values/infrormation on a GPT partitioned disk
Summary: f,c,gdisk shows wrong values/infrormation on a GPT partitioned disk
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-02 18:01 CET by Bit Twister
Modified: 2016-01-20 10:02 CET (History)
2 users (show)

See Also:
Source RPM: util-linux-2.24-2.mga4.src.rpm
CVE:
Status comment:


Attachments

Description Bit Twister 2014-01-02 18:01:31 CET
Description of problem:

fdisk shows wrong type on GPT partitioned disk.
Shows Microsoft basic data instead of ext4
fdisk shows correct value on a msdos partitioned disk.

Version-Release number of selected component (if applicable):


How reproducible: Always


Steps to Reproduce:
1. Use gparted to create a GPT partitioned disk
2. create/format an ext4 partition
3. install release 4
4. fdisk -l /dev/sda

Result should be something like the following snippet:

$ fdisk -l /dev/sda
Device           Start          End   Size Type
/dev/sda1         2048     83970047    40G Microsoft basic data
/dev/sda2     83970048    167938047    40G Microsoft basic data

Yet, a snippet from blkid shows:
$ blkid | sort -V
/dev/sda1: LABEL="mga3" UUID="..c09dd2" TYPE="ext4" PARTUUID="..049" 
/dev/sda2: LABEL="mga4" UUID="..2d99d" TYPE="ext4" PARTUUID="..1548" 


Reproducible: 

Steps to Reproduce:
Comment 1 Bit Twister 2014-01-02 18:53:42 CET
(In reply to Bit Twister from comment #0)
> Description of problem:
> 

cfdisk /dev/sda   is also broke.

$ blkid | grep /dev/sda | wc -l
9
shows I have 9 partitions, yet cfdisk only shows 1 partition.
Comment 2 Bit Twister 2014-01-02 22:04:44 CET
$ sfdisk /dev/sda   :(
   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1          0+  91201-  91202- 732574583+  ee  GPT
                start: (c,h,s) expected (0,0,2) found (0,0,1)
/dev/sda2          0       -       0          0    0  Empty
/dev/sda3          0       -       0          0    0  Empty
/dev/sda4          0       -       0          0    0  Empty
Comment 3 Manuel Hiebel 2014-01-02 22:17:47 CET
hum looks problematic, doesn't diskdrake use it too ?

CC: (none) => mageia, thierry.vignaud, tmb

Comment 4 Thierry Vignaud 2014-01-02 23:06:02 CET
No.

CC: thierry.vignaud => (none)

Comment 5 Bit Twister 2014-01-02 23:17:52 CET
gdisk is showing an incorrect (UUID) Partition GUID code:

Partition number (1-9): 3
Partition GUID code: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 (Microsoft basic data)
Partition unique GUID: 8C588466-9A09-429B-8801-451D258BE97A

$ blkid | grep 451D258BE97A
/dev/sda3: LABEL="mga5" UUID="04692322-363c-4fe4-8c52-3bcbc5c4c951" TYPE="ext4" PARTUUID="8c588466-9a09-429b-8801-451d258be97a"
Bit Twister 2014-01-04 15:55:41 CET

Summary: 4_b2: fdisk shows wrong type on GPT partitioned disk => 4_b2: f,c,gdisk shows wrong values/infrormation on a GPT partitioned disk

Comment 6 Rémi Verschelde 2015-09-10 16:41:38 CEST
Is this bug still valid in Mageia 5 or Cauldron?

Version: Cauldron => 4

Comment 7 Bit Twister 2015-09-10 17:29:22 CEST
(In reply to Rémi Verschelde from comment #6)
> Is this bug still valid in Mageia 5 or Cauldron?

Yes.

Version: 4 => 5

Rémi Verschelde 2015-09-10 18:20:34 CEST

Version: 5 => Cauldron
Whiteboard: (none) => MGA5TOO

Samuel Verschelde 2015-09-10 18:22:34 CEST

Summary: 4_b2: f,c,gdisk shows wrong values/infrormation on a GPT partitioned disk => f,c,gdisk shows wrong values/infrormation on a GPT partitioned disk
Whiteboard: MGA5TOO => MGA5TOO MGA4TOO

Comment 8 Bit Twister 2016-01-20 10:02:26 CET
Problem resolved on mga5 and Cauldron.

Status: NEW => RESOLVED
Resolution: (none) => FIXED
Whiteboard: MGA5TOO MGA4TOO => (none)


Note You need to log in before you can comment on or make changes to this bug.