[abrt] anaconda-13.21.186: ValueError: Cannot remove extended partition sda4. Logical partitions present.

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux 6
  • Pre-installed System

Issue

  • Installing Red Hat Enterprise Linux 6 on a pre-installed machine.
  • While selecting custom layout for partitioning and deleting a partition, abrt core appears and installation stops.
:The following was filed automatically by anaconda:
:anaconda 13.21.186 exception report
:Traceback (most recent call first):
:  File "/usr/lib/anaconda/storage/devicetree.py", line 767, in _removeDevice
:    "Logical partitions present." % dev.name)
:  File "/usr/lib/anaconda/storage/devicetree.py", line 812, in registerAction
:    self._removeDevice(action.device)
:  File "/usr/lib/anaconda/storage/__init__.py", line 871, in destroyDevice
:    self.devicetree.registerAction(action)
:  File "/usr/lib/anaconda/storage/partitioning.py", line 865, in updateExtendedPartitions
:    storage.destroyDevice(part)
:  File "/usr/lib/anaconda/storage/partitioning.py", line 965, in doPartitioning
:    updateExtendedPartitions(storage, disks)
:  File "/usr/lib/anaconda/iw/partition_gui.py", line 1612, in refresh
:    doPartitioning(self.storage)
:  File "/usr/lib/anaconda/iw/partition_gui.py", line 1722, in editPartition
:    if self.refresh(justRedraw=not actions):
:  File "/usr/lib/anaconda/iw/partition_gui.py", line 1566, in createCB
:    self.editPartition(device, isNew = True)
:  File "/usr/lib/anaconda/iw/partition_gui.py", line 1576, in _createCB
:    self.createCB(*args)
:ValueError: Cannot remove extended partition sda4.  Logical partitions present.

Resolution

  • Remove the partitions sda5/6/7 and onwards partitions first till sda4 is the highest number partition, and then try to remove it.

Root Cause

  • It seems that there were existing partitions on the pre-installed machine.
  • The error message appeared here is quite simple in understanding. It lets one know that the partition sda4 is an extended partition and there are some Logical Partitions on it.
  • Only only 4 primary partitions can be created on one disk, so last partition sda4 has been created as extended to get the next logical partitions.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments