[Bug 861884] [NEW] search for UUID fails, when grub is installed with grub-install

wrigley wrigleyster at gmail.com
Wed Sep 28 22:19:46 UTC 2011


Public bug reported:

running grub2 version 1.99~rc1-13ubuntu3.

imagine the setup:
harddisk: sda, usb: sdb

# mount /dev/sdb1 /mnt
# grub-install --root-directory=/mnt /dev/sdb
Installation finished. No error reported.

Trying to boot from the usb, grub fails: claims it can't find any drive
with the appropriate UUID. I have double checked the UUID with "blkid
/dev/sdb1", and it is correct.

if you don't have a spare usb to test on I have discovered the same
error when doing:

$ qemu-img create -f raw disk.img 80M
$ printf "x\nc\n1024\nr\nn\np\n1\n\n\na\n1\nw\n" |fdisk disk.img
# losetup /dev/loop0 disk.img
# losetup /dev/loop1 disk.img -o 32256
# mkdosfs /dev/loop1
# mount /dev/loop1 /mnt
# grub-install --root-directory=/mnt /dev/loop0
# sync
$ qemu -hda disk.img

/wrigley

** Affects: grub2 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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/861884

Title:
  search for UUID fails, when grub is installed with grub-install

Status in “grub2” package in Ubuntu:
  New

Bug description:
  running grub2 version 1.99~rc1-13ubuntu3.

  imagine the setup:
  harddisk: sda, usb: sdb

  # mount /dev/sdb1 /mnt
  # grub-install --root-directory=/mnt /dev/sdb
  Installation finished. No error reported.

  Trying to boot from the usb, grub fails: claims it can't find any
  drive with the appropriate UUID. I have double checked the UUID with
  "blkid /dev/sdb1", and it is correct.

  if you don't have a spare usb to test on I have discovered the same
  error when doing:

  $ qemu-img create -f raw disk.img 80M
  $ printf "x\nc\n1024\nr\nn\np\n1\n\n\na\n1\nw\n" |fdisk disk.img
  # losetup /dev/loop0 disk.img
  # losetup /dev/loop1 disk.img -o 32256
  # mkdosfs /dev/loop1
  # mount /dev/loop1 /mnt
  # grub-install --root-directory=/mnt /dev/loop0
  # sync
  $ qemu -hda disk.img

  /wrigley

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/861884/+subscriptions




More information about the foundations-bugs mailing list