[Bug 816475] Re: package grub-pc 1.99~rc1-13ubuntu3 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 139
Pedro Monteiro
816475 at bugs.launchpad.net
Mon Sep 12 16:18:48 UTC 2011
Found the reason for the problem and a workaround.
The problem:
The problem is having a RAID partition as the last partition of the device. Because the superblock location of a partition that is the last on the device and the superblock location of an entire device is the same (both on the end of the device) the superblock metadata should be used to find which RAID device it's related to.
Apparently grub-probe misunderstands this info. In my case it was assuming I had a full hard drive RAID device instead of a single partition at the end.
The workaround:
Having found this erratic behavior, I changed my disk partition layout so that the RAID partition wouldn't be at the end of the disk. Now, the last partition was the swap partition.
That change itself didn't work because the mkswap command didn't erase the raid superblock data still in the partition at the end of the drive. I had to do a "mdadm --zero-superblock" at the disk device so that the only valid superblock would be the RAID partition superblock.
After all this, I finally got grub-probe to detect my configuration
successfully.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/816475
Title:
package grub-pc 1.99~rc1-13ubuntu3 failed to install/upgrade:
ErrorMessage: subprocess installed post-installation script returned
error exit status 139
Status in “grub2” package in Ubuntu:
New
Bug description:
I just upgraded from maverick to natty. Before the upgrade, update-
grub was working, but now it fails with:
error: superfluous RAID member (2 found).
error: superfluous RAID member (3 found).
error: superfluous RAID member (3 found).
error: superfluous RAID member (3 found).
error: superfluous RAID member (3 found).
error: superfluous RAID member (3 found).
error: superfluous RAID member (2 found).
Segmentation fault
ProblemType: Package
DistroRelease: Ubuntu 11.04
Package: grub-pc 1.99~rc1-13ubuntu3
ProcVersionSignature: Ubuntu 2.6.35-30.56-generic 2.6.35.13
Uname: Linux 2.6.35-30-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Tue Jul 26 18:11:25 2011
ErrorMessage: ErrorMessage: subprocess installed post-installation script returned error exit status 139
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.35-30-generic root=UUID=632f9a08-e68c-4de4-9702-4bc1a16b1519 ro quiet splash
SourcePackage: grub2
Title: package grub-pc 1.99~rc1-13ubuntu3 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 139
UpgradeStatus: Upgraded to natty on 2011-07-26 (0 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/816475/+subscriptions
More information about the foundations-bugs
mailing list