Bug 1288091 - parted cannot find any partition on my disk
Summary: parted cannot find any partition on my disk
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: parted
Version: 23
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Brian Lane
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1237284
TreeView+ depends on / blocked
 
Reported: 2015-12-03 13:46 UTC by Ting-Wei Lan
Modified: 2015-12-03 18:24 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-03 18:24:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
The first 62 sectors of my disk (31.00 KB, application/octet-stream)
2015-12-03 13:46 UTC, Ting-Wei Lan
no flags Details

Description Ting-Wei Lan 2015-12-03 13:46:34 UTC
Created attachment 1101803 [details]
The first 62 sectors of my disk

Description of problem:
parted thinks my disk doesn't have a partition table. This crashes blivet and Fedora installer.

Version-Release number of selected component (if applicable):
parted-3.2-11.fc23.x86_64

How reproducible:
Always on my machine

Steps to Reproduce:
1. Run 'parted /dev/sdb print' on my machine

Actual results:
Model: ATA Hitachi HDP72505 (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags: 

Number  Start  End    Size   File system  Flags
 1      0.00B  500GB  500GB  fat16

Expected results:
It should be able to find a partition table. Fedora installer should not crash. fdisk output:
Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 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
Disklabel type: dos
Disk identifier: 0xa5b43cc2

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1              63   4192964   4192902     2G  6 FAT16
/dev/sdb2         4192965   8385929   4192965     2G 16 Hidden FAT16
/dev/sdb3  *      8385930 113258249 104872320    50G 17 Hidden HPFS/NTFS
/dev/sdb4       113258250 976773167 863514918 411.8G  5 Extended
/dev/sdb5       113258313 742404095 629145783   300G  7 HPFS/NTFS/exFAT
/dev/sdb6       742406144 847268099 104861956    50G a5 FreeBSD
/dev/sdb7       847268163 976773119 129504957  61.8G 8e Linux LVM

Additional info:
This bug was reported to blivet:
https://github.com/rhinstaller/blivet/issues/288

The first 62 sectors of my disk is attached.

Comment 1 Brian Lane 2015-12-03 18:24:11 UTC
Parted supports reading loop mounted devices with the raw filesystem. It appears that at one time your disk had a FAT16 filesystem written to the start of it and it wasn't completely wiped when you repartitioned things.

What happens is that parted probes for msdos disklabel, but aborts because the disk looks like a FAT16 fs, and falls through into the loop probe code which detects it as a FAT16 loop device.

I don't think there's anything that can be done here other than using a different disk (or wiping this one using wipefs).


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