Bug 492154 - Partition map has no partition map entry
Summary: Partition map has no partition map entry
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: ppc
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: anaconda_trace_hash:08a8a34e5640dc217...
: 494121 494386 494623 494760 497586 (view as bug list)
Depends On:
Blocks: F11AnacondaBlocker
TreeView+ depends on / blocked
 
Reported: 2009-03-25 16:40 UTC by Jesse Keating
Modified: 2013-01-10 03:28 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-11 19:39:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Attached traceback automatically from anaconda. (135.64 KB, text/plain)
2009-03-25 16:41 UTC, Jesse Keating
no flags Details
Attached traceback automatically from anaconda. (101.98 KB, text/plain)
2009-04-03 06:49 UTC, Jeremy Huddleston
no flags Details
traceback for failure at bootloader install step (122.37 KB, text/plain)
2009-04-06 19:23 UTC, Tom Lane
no flags Details
anaconda traceback during failure to reinstall over a previous installation (94.03 KB, text/plain)
2009-05-08 22:39 UTC, Tom Lane
no flags Details

Description Jesse Keating 2009-03-25 16:40:53 UTC
The following was filed automatically by anaconda:
anaconda 11.5.0.37 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.6/site-packages/parted/disk.py", line 154, in commit
    return self.__disk.commit()
  File "/usr/lib/anaconda/storage/devices.py", line 789, in commit
    self.partedDisk.commit()
  File "/usr/lib/anaconda/storage/devices.py", line 1188, in destroy
    self.disk.commit()
  File "/usr/lib/anaconda/storage/deviceaction.py", line 221, in execute
    self.device.destroy()
  File "/usr/lib/anaconda/storage/devicetree.py", line 659, in processActions
    action.execute(intf=self.intf)
  File "/usr/lib/anaconda/storage/__init__.py", line 210, in doIt
    self.devicetree.processActions()
  File "/usr/lib/anaconda/packages.py", line 115, in turnOnFilesystems
    anaconda.id.storage.doIt()
  File "/usr/lib/anaconda/dispatch.py", line 205, in moveStep
    rc = stepFunc(self.anaconda)
  File "/usr/lib/anaconda/dispatch.py", line 128, in gotoNext
    self.moveStep()
  File "/usr/lib/anaconda/gui.py", line 1317, in nextClicked
    self.anaconda.dispatch.gotoNext()
IOException: Partition map has no partition map entry!

Comment 1 Jesse Keating 2009-03-25 16:41:00 UTC
Created attachment 336671 [details]
Attached traceback automatically from anaconda.

Comment 2 Jeremy Huddleston 2009-04-03 06:49:02 UTC
Created attachment 337983 [details]
Attached traceback automatically from anaconda.

Comment 3 Jeremy Huddleston 2009-04-05 23:20:25 UTC
This only happens if the disk being installed on to is currently dedicated to OSX.  I booted off of F10 install media, formatted the disks, then went back to F11 media and it got past this point.

Comment 4 Chris Lumens 2009-04-06 14:04:30 UTC
*** Bug 494121 has been marked as a duplicate of this bug. ***

Comment 5 Chris Lumens 2009-04-06 17:04:27 UTC
*** Bug 494386 has been marked as a duplicate of this bug. ***

Comment 6 Tom Lane 2009-04-06 17:28:17 UTC
Sorry for not having spotted this dup beforehand.  I think that Jeremy's comment #3 is an incorrect analysis, because it still crashes for me even on repeat attempts (ie, after anaconda has already wiped the old partition table).  It very probably is related to Apple's partition tables somehow though.  I'll see if I can find a way to wipe the disk with something else.

Comment 7 Jeremy Huddleston 2009-04-06 17:38:37 UTC
tgl: Did you try wiping the partition table with the F10 installer?  I had absolutely no luck using the F11 installer.  I was able to wipe OSX/install F10 with the F10 dvd, then I did an upgrade using the F11 beta net install cd.

Comment 8 Tom Lane 2009-04-06 18:20:56 UTC
OK, I did a bit of further experimentation:

1. Use Disk Utility on the Tiger install DVD to reformat the whole disk as 1 partition, no OS 9 drivers.
Same result: anaconda crashes with same traceback.

2. Use Disk Utility to reformat with one OS X partition, but leaving half the disk free.  Then pick the
"use free space" option in anaconda.  This makes it get further: it seems to write the partition table okay, and format the new filesystems okay, but then it fails with "Unable to mount filesystem: An error occurred mounting device /dev/hda4 as /boot: mount failed: (2, None)."

I do not have any other PPC install media at the moment, so that's all the news for right now.

Comment 9 Tom Lane 2009-04-06 18:34:42 UTC
Oh, one other thing: postmortem examination of the disk after try 2 above shows two new partitions "disk0s4" of 200MB and "disk0s5" filling the remaining space.  So it does appear to have written an okay partition table.  Disk Utility doesn't recognize any filesystem in either partition, but I'm not sure it should be expected to.

Comment 10 Tom Lane 2009-04-06 18:47:16 UTC
Hah --- I found a workaround!

Use Tiger's Disk Utility to partition the drive as entirely empty (1 partition of type "free space").  It will give an error message but do it anyway.  Then run F-11's installer (which will also complain about the disk having to be reinitialized), select "use entire disk", and it works.  Or at least I'm on to the package retrieval step now.

So it seems fairly likely that it's presence of an OSX partition that is making it fail.

Comment 11 Tom Lane 2009-04-06 19:23:22 UTC
Created attachment 338384 [details]
traceback for failure at bootloader install step

Comment 12 Tom Lane 2009-04-06 19:24:30 UTC
Well, it "works" until it gets to the bootloader install step, that is.  Something wrong with creation of the boot partition, perhaps?

Comment 13 Chris Lumens 2009-04-07 18:29:29 UTC
*** Bug 494623 has been marked as a duplicate of this bug. ***

Comment 14 Chris Lumens 2009-04-08 14:16:54 UTC
*** Bug 494760 has been marked as a duplicate of this bug. ***

Comment 15 Chris Lumens 2009-04-24 20:55:31 UTC
*** Bug 497586 has been marked as a duplicate of this bug. ***

Comment 16 W. Michael Petullo 2009-04-24 20:58:21 UTC
I tried again with a newer version of anaconda:

The following was filed automatically by anaconda:
anaconda 11.5.0.47 exception report
Traceback (most recent call first):
  File "/usr/lib/python2.6/site-packages/parted/disk.py", line 162, in
commitToDevice
    return self.__disk.commit_to_dev()
  File "/usr/lib/python2.6/site-packages/parted/disk.py", line 152, in commit
    if not self.commitToDevice():
  File "/usr/lib/anaconda/storage/devices.py", line 808, in commit
    self.partedDisk.commit()
  File "/usr/lib/anaconda/storage/devices.py", line 1218, in destroy
    self.disk.commit()
  File "/usr/lib/anaconda/storage/deviceaction.py", line 218, in execute
    self.device.destroy()
  File "/usr/lib/anaconda/storage/devicetree.py", line 659, in processActions
    action.execute(intf=self.intf)
  File "/usr/lib/anaconda/storage/__init__.py", line 234, in doIt
    self.devicetree.processActions()
  File "/usr/lib/anaconda/packages.py", line 117, in turnOnFilesystems
    anaconda.id.storage.doIt()
IOException: Partition map has no partition map entry!

Comment 17 Nicholas Haggin 2009-04-28 20:48:14 UTC
Seeing the same problem, with identical traceback to previous commenters, on an Xserve G5 that had previously been installed with Fedora 10.

Comment 18 Chris Lumens 2009-05-07 20:46:10 UTC
This is starting to look like (1) we're deleting the special Mac partition table partition and then trying to commit that to disk, or (2) we're not making the special Mac partition table partition on a disk.

For my future reference, I've installed F10 on my G5 with two disks and anaconda proposes the following disk layout:

/dev/sda2 - Apple Bootstrap - 1-1
/dev/sda3 - /boot ext3 - 1-26
/dev/sda4 - LVM PV - 26-end

/dev/sdb2 - LVM PV - 1-end

By comparison, rawhide proposes the following:

/dev/sda1 - Apple Bootstrap
/dev/sda2 - /boot
/dev/sda3 - LVM PV

/dev/sdb1 - LVM PV

Comment 19 Chris Lumens 2009-05-07 23:01:49 UTC
Yep, removing the special partition table partition is what's causing this problem.  This should be fixed in the next build of anaconda.

Comment 20 Tom Lane 2009-05-08 22:38:44 UTC
Much better, but not there yet.  With boot.iso from today's rawhide (anaconda .51), I did this:

1. Starting from the wreckage of the previous attempt (with whatever it had left the partition table as),
I did an install using the "use whole disk" option in text mode install.  Seemed to work fine.

2. Then repartitioned the disk using OSX's Disk Utility, creating one partition and leaving half the disk as free space.  Installed OSX into the partition (worked fine).  Then installed rawhide, using the "use free space" option.  Seemed to work fine.

3. Then tried to reinstall using the "replace existing system" option.  Failed, with traceback that I'll attach now.

BTW, in case 2 shouldn't the boot loader have been configured to offer OSX as one of the options?
If so, whose bug is it that it didn't?  I can still get into the OSX install using the open firmware option-key method, but I'd have expected something easier.

Comment 21 Tom Lane 2009-05-08 22:39:52 UTC
Created attachment 343190 [details]
anaconda traceback during failure to reinstall over a previous installation

Comment 22 Chris Lumens 2009-05-09 14:26:48 UTC
Looks like you're hitting a different bug.  Please file it separately so we can track it independent of the fix for this issue.  It does seems like the bootloader should have been configured to offer that, yes, but I'd have to check the code to be sure.

Comment 23 Tom Lane 2009-05-09 14:41:08 UTC
Sorry, I'm confused --- you mean file a new bug for the traceback, or for the lack of a bootloader menu entry, or for each of these?

Comment 24 Jesse Keating 2009-05-09 15:47:32 UTC
Each I would say.  One distinct issue per bug report please.

Comment 25 Tom Lane 2009-05-09 16:10:36 UTC
OK, done at #499963 and #499964

Comment 26 Jesse Keating 2009-05-11 19:39:06 UTC
Closing this bug as the original issue appears to be fixed.


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