Bug 741593

Summary: partition table is reported as 'loop' instead of 'gpt'
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: partedAssignee: Brian Lane <bcl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: anaconda-maint-list, awilliam, bcl, hdegoede, jonathan, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-27 14:53:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kamil Páral 2011-09-27 11:42:13 UTC
Description of problem:
I was following this test case:
https://fedoraproject.org/wiki/QA:Testcase_Anaconda_autopart_(use_all_space)_install

I did a default install in KVM. In the booted system I run:

# parted
GNU Parted 3.0
Using /dev/mapper/VolGroup-lv_root
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p                                                                
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/VolGroup-lv_root: 7114MB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start  End     Size    File system  Flags
 1      0.00B  7114MB  7114MB  ext4


Please notice that there is "Partition Table: loop" instead of expected "Partition Table: gpt" as the test case requires. However, fdisk says:

# fdisk /dev/vda

WARNING: GPT (GUID Partition Table) detected on '/dev/vda'! The util fdisk doesn't support GPT. Use GNU Parted.


Command (m for help): p

Disk /dev/vda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders, total 20971520 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: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/vda1               1    20971519    10485759+  ee  GPT


That seems like GPT.

Either the test case needs to be corrected or there is something wrong in the GTP installation. I suppose the test case is wrong, but reporting here just to be sure.

Version-Release number of selected component (if applicable):
anaconda 16.19
Fedora 16 Beta RC3 Live x86_64

Comment 1 David Lehman 2011-09-27 14:53:05 UTC
(In reply to comment #0)
> Description of problem:
> I was following this test case:
> https://fedoraproject.org/wiki/QA:Testcase_Anaconda_autopart_(use_all_space)_install
> 
> I did a default install in KVM. In the booted system I run:
> 
> # parted
> GNU Parted 3.0
> Using /dev/mapper/VolGroup-lv_root
> Welcome to GNU Parted! Type 'help' to view a list of commands.
> (parted) p                                                                
> Model: Linux device-mapper (linear) (dm)
> Disk /dev/mapper/VolGroup-lv_root: 7114MB
> Sector size (logical/physical): 512B/512B
> Partition Table: loop
> 
> Number  Start  End     Size    File system  Flags
>  1      0.00B  7114MB  7114MB  ext4
> 
> 
> Please notice that there is "Partition Table: loop" instead of expected
> "Partition Table: gpt" as the test case requires. However, fdisk says:

You are not specifying a device when running parted and it is using your root logical volume which has no partition table, hence "loop".

Try running 'parted /dev/vda' instead.

Comment 2 Kamil Páral 2011-09-27 15:00:02 UTC
That works and reports "gpt". I'll fix the test case. Thanks.