[Bug 1523637] Re: grub-installer fails due to alternate disk partition error - 14.04.3

Timo Aaltonen tjaalton at ubuntu.com
Fri Feb 5 14:19:57 UTC 2016


Hello bugproxy, or anyone else affected,

Accepted libdebian-installer into trusty-proposed. The package will
build now and be available at https://launchpad.net/ubuntu/+source
/libdebian-installer/0.88ubuntu5.2 in a few hours, and then in the
-proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed.  Your feedback will aid us getting this update
out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, and change the tag
from verification-needed to verification-done. If it does not fix the
bug for you, please add a comment stating that, and change the tag to
verification-failed.  In either case, details of your testing will help
us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Changed in: libdebian-installer (Ubuntu Trusty)
       Status: In Progress => Fix Committed

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1523637

Title:
  grub-installer fails due to alternate disk partition error - 14.04.3

Status in libdebian-installer package in Ubuntu:
  Fix Released
Status in libdebian-installer source package in Trusty:
  Fix Committed

Bug description:
  ---Problem Description---
  This is the Habanero NV system.
  Try to install Ubuntu 14043.
  It fails to install the GRUB boot loader at the very end of the process.

  ---boot type---
  Network boot
   
  == Comment: #3 - Kevin W. Rudd - 2015-12-02 16:48:46 ==
  This looks to be an issue very similar to the one originally reported
  in Bug 120779 (LP1415918)

  In this case, the install is being done to /dev/sdj, but the
  grub-installer script is finding a PReP partition on /dev/sdr that it
  wants to remove.  It fails because /dev/sdr1 has not been mapped and
  does not exist in /dev

  Dec  2 15:45:46 grub-installer: info: Identified partition label for
  /dev/sdj2: gpt
  Dec  2 15:45:47 grub-installer: info: Wiping PReP partition /dev/sdr1
  Dec  2 15:45:47 grub-installer: dd: invalid number ''
  ...
  Dec  2 15:45:47 main-menu[835]: (process:28150): blockdev: can't open
  '/dev/sdr1': No such file or directory

  /var/log # ls -l /dev/sdj*
  brw-------    1 root     root        8, 144 Dec  2 18:31 /dev/sdj
  brw-------    1 root     root        8, 145 Dec  2 18:24 /dev/sdj1
  brw-------    1 root     root        8, 146 Dec  2 18:24 /dev/sdj2
  brw-------    1 root     root        8, 147 Dec  2 18:24 /dev/sdj3

  /var/log # ls -l /dev/sdr*
  brw-------    1 root     root       65,  16 Dec  2 18:42 /dev/sdr

  One big question I have is:

  Does it make sense to remove a PReP partition on a *different* disk
  than the one being used for the install?  It seems rather heinous to
  be destroying data on a non-install disk.

  == Comment: #4 - Kevin W. Rudd - 2015-12-02 18:17:19 ==
  Hmmm.  This may be key information for replicating this behavior.  It might explain why the partition device entries are not being auto-created for the problem /dev/sdr drive:

  # parted /dev/sdr print
  Warning: /dev/sdr contains GPT signatures, indicating that it has a GPT table.
  However, it does not have a valid fake msdos partition table, as it should.
  Perhaps it was corrupted -- possibly by a program that doesn't understand GPT
  partition tables.  Or perhaps you deleted the GPT table, and are now using an
  msdos partition table.  Is this a GPT partition table?
  Yes/No? Yes                                                               
  Model: ATA ST1000NM0033 (scsi)
  Disk /dev/sdr: 1000GB
  Sector size (logical/physical): 512B/512B
  Partition Table: gpt

  Number  Start   End     Size    File system     Name  Flags
   1      1049kB  8389kB  7340kB                        prep
   2      8389kB  975GB   975GB   ext4
   3      975GB   1000GB  25.1GB  linux-swap(v1)

  == Comment: #7 - Kevin W. Rudd -  2015-12-03 16:11:11 ==
  After a bit more research on this system, it appears that the
  problem drive was previously used for Trusty testing within a
  PowerKVM environment.  To avoid further blocking the test team,
  I temporarily removed the problem drive from the installer's view,
  and the grub-installer was able to continue without further error.

  The primary reason for the failure was that the installer did not
  like the partition on that other drive.  In addition to the parted
  warning listed in comment 4, kpartx also complained:

    Warning: Disk has a valid GPT signature but invalid PMBR.

  Either this partition was slightly corrupted, or this is just a side
  effect of the earlier PowerKVM storage mapping to the /dev/vdb device.

  This still begs the question:

  ? Should the grub-installer really be touching other drives ?

  It seems to me that a multi-boot environment is still valid, and
  destroying partitions on alternate drives could really mess up the
  testing on a shared resource.

  == Comment: #12 - Paulo Flabiano Smorigo - 2015-12-07 13:15:01 ==
  Even if Ubuntu overwrite PReP from other disk you can still boot the older system because grub-mkconfig (using os-prober) seeks for other systems and add them to the config file.

  The problem with this approach is that old system can overwrite PReP
  partition for some reason (i.e. an update) and its grub-mkconfig has
  the OS seeker disabled.

  For me, the safer approach is to have PReP in the same disk as Kevin
  is suggesting.

  I believe that we should have ask Canonical for an option about it
  since grub-installer is a Debian/Ubuntu tool.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libdebian-installer/+bug/1523637/+subscriptions



More information about the Ubuntu-sponsors mailing list