Bug 723352
| Summary: | cfdisk cannot read default installer partitioning | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Ivan Pablo Anauati <ianauati> |
| Component: | util-linux-ng | Assignee: | Karel Zak <kzak> |
| Status: | CLOSED ERRATA | QA Contact: | qe-baseos-daemons |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.1 | CC: | azelinka, jmarko, kvolny, lmendez |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-12-06 17:11:17 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
Ivan Pablo Anauati
2011-07-19 21:15:22 UTC
This bug is already fixed in Fedora (bug #630340) and upstream. I guess I'd need some help verifying this ... how to create disk schema which triggers the bug? - I mean, is there any easier method than going through the actual install? I've tried to create two partitions across the whole disk (just 16 MiB for testing purposes) by both fdisk and parted, and cfdisk haven't complained about that ...
# modprobe scsi_debug dev_size_mb=512 sector_size=512
(or try to use loop device, not sure)
# fdisk -c -u /dev/sdb
(create one partition on whole disk (default sectors: first=2048, last=1048575)
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xb06e6c19.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First sector (2048-1048575, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-1048575, default 1048575):
Using default value 1048575
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
# cfdisk /dev/sdb <--- ERROR without the patch
fdisk doesn't seem to like loop devices ... it seems that sector_size doesn't need to be specified dev_size_mb=512 is what matters - it doesn't work (reproduce the bug) with 513 ... and more important, it doesn't work with anything smaller than 512, which would make it a bit troublesome to test but there seems to be a workaround - size 1024 triggers the bug too ... so creating the device of the same size with virtual_gb=1 does the job without consuming so much memory Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2011-1691.html |