[Bug 1198846] Re: [efi boot to unexpected media] plug in live usb and DVD at the same time, try to boot from DVD but it comes to usb

Phillip Susi psusi at ubuntu.com
Tue Jul 9 02:17:34 UTC 2013


This isn't really a bug.  Given two identical install images on
different media, the system can't figure out which one you intended to
use.  Instead of giving it both, just give it the one you intend to use.


** Changed in: grub2 (Ubuntu)
       Status: New => Won't Fix

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

Title:
  [efi boot to unexpected media] plug in live usb and DVD at the same
  time, try to boot from DVD but it comes to usb

Status in OEM Priority Project:
  New
Status in OEM Priority Project precise series:
  New
Status in “grub2” package in Ubuntu:
  Won't Fix

Bug description:
  Description:
  efi boot application of live media (e.g. usb and DVD) will boot to unexpected media or partitions with (device)/.disk/info
  Here shows one of the way to reproduce this bug by live usb and live DVD plug in the same laptop together

  System configuration:
  OS: ubuntu 12.04.2
  Kernel: 3.8.0-19-generic #29
  Bios and Hardware info:
      I tested this bug on different machine and make sure it is directly related to grub2
      Prepare a machine with uefi bootable is enough

  Steps to reproduce this bug:
  1. prepare live usb and live DVD with image ubuntu 12.04.2 64bit [1]
  2. make show there is no more something like live media or recovery partitions of hard disks on your laptop. More precisely, make sure there is no such file and directory (some devices)/.disk/info except those media prepared in step 1.
  3. make sure the bios of the laptop we are going to use has set the uefi enable
  4. plug in the live usb and DVD together on the same laptop
  5. power on the laptop
  6. open the uefi boot menu entry - it may be hot key F9 (for HP) or something like DEL, depending on your laptop bios support
  7. select the boot efi application of efi/bootx64.efi under DVD manually
  8. wait at least 5 seconds, and select "Try Ubuntu without installing" at the grub prompt menu [2]
  9. when booting to desktop, open the terminal (for example by "ctrl + alt + t") and use the command "df"

  Expected result:
  /dev/sr0 (or any of your DVD rom device number with the live DVD) mounted on /cdrom

  Actual result:
  /dev/sdb1 (or any of your USB device number with the live usb) mounted on /cdrom

  Additional information:
  [1]
  in fact, both of ubuntu 12.04.2 64bit and 13.04 64bit could reproduce this bug as well.
  You can make a live usb or dvd with one of the images.
  That is, there are 4 kinds of usb-dvd combinations could reproduce this bug.

  
  [2]
  If this bug could not be reproduced, it may be blocked by another issue:
  Casper missing to access usb at the scanning the /sys/block
   
  Please make sure you were not blocked by this issue by
  1. at the grub prompt menu entry, press "e" on the entry "Try Ubuntu without installing"
  2. append "debug" at the end of this statement "linux /casper/vmlinuz.efi ...... splash --"
  3. press F10 to boot from this modified grub boot entry
  4. after booting to desktop, open the terminal (for example by "ctrl + alt + t")
  5. check whether /dev/sdb1(or any of your live usb device number) was raised by the following casper script in /dev/.initramfs/initramfs.debug

  script/casper:
  find_livefs() {
  ......
      # or do the scan of block devices
      for sysblock in $(echo /sys/block/* | tr ' ' '\n' | egrep -v "/(loop|ram|fd)"); do
          devname=$(sys2dev "${sysblock}")
          [ -e "$devname" ] || continue
          fstype=$(get_fstype "${devname}")
  ......
  }

  wait for 5 seconds seems to make the kernel probe the usb correctly

  [3] 
  The efi/boot/BOOTx64.efi of 12.04.2 and 13.04 are the same

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1198846/+subscriptions




More information about the foundations-bugs mailing list