Bug#920689: grub-common: /dev/sdd: open failed: No medium found

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Mon Jan 28 11:09:02 GMT 2019


Package: grub-common
Version: 2.02+dfsg1-10
Severity: normal

Bellow, steps to reproduce the bug and my interpretation.

During kernel startup, an USB wifi dongle is detected and a firmware
blob is loaded to a storage device on the dongle:

Jan 22 10:37:36 kernel: [    5.344564] rtl8192cu: Chip version 0x10
Jan 22 10:37:36 kernel: [    5.450195] rtl8192cu: Board Type 0
Jan 22 10:37:36 kernel: [    5.490071] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
Jan 22 10:37:36 kernel: [    5.509148] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
Jan 22 10:37:36 kernel: [    5.528607] usb 1-1.5: firmware: direct-loading firmware rtlwifi/rtl8192cufw_TMSC.bin
Jan 22 10:37:36 kernel: [    5.531138] scsi 6:0:0:0: Direct-Access     Generic  Storage Device   0.00 PQ: 0 ANSI: 2
Jan 22 10:37:36 kernel: [    5.531998] ieee80211 phy0: Failed to initialize wep: -2
Jan 22 10:37:36 kernel: [    5.532002] ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
Jan 22 10:37:36 kernel: [    5.532188] usbcore: registered new interface driver rtl8192cu
Jan 22 10:37:36 kernel: [    5.554357] usb 1-1.3.2: New USB device found, idVendor=0403, idProduct=6001, bcdDevice= 6.00
Jan 22 10:37:36 kernel: [    5.571444] sd 6:0:0:0: [sdd] Attached SCSI removable disk
                                                    ^^^
A block device /dev/sdd is created:

# ls -l /dev/sd?
brw-rw---- 1 root disk 8,  0 Jan 22 10:37 /dev/sda
brw-rw---- 1 root disk 8, 16 Jan 22 10:37 /dev/sdb
brw-rw---- 1 root disk 8, 32 Jan 22 10:37 /dev/sdc
brw-rw---- 1 root disk 8, 48 Jan 22 10:37 /dev/sdd
                                          ^^^^^^^^

A new kernel package is installed and update-initramfs is executed.
Part of that is to execute update-grub.

grub-mkconfig looks through _all_ /dev/sd* devices and outputs error
messages:

# sh -x /usr/sbin/update-grub 2>&1 | tee update-grub.xtrace
+ set -e
+ exec grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
  /dev/sdd: open failed: No medium found
  /dev/sdd: open failed: No medium found
Found linux image: /boot/vmlinuz-4.19.0-1-amd64
Found initrd image: /boot/initrd.img-4.19.0-1-amd64
Found linux image: /boot/vmlinuz-4.18.0-3-amd64
Found initrd image: /boot/initrd.img-4.18.0-3-amd64
Found linux image: /boot/vmlinuz-4.18.0-2-amd64
Found initrd image: /boot/initrd.img-4.18.0-2-amd64
  /dev/sdd: open failed: No medium found
  /dev/sdd: open failed: No medium found
Found memtest86 image: /memtest86.bin
Found memtest86+ image: /memtest86+.bin
Found memtest86+ multiboot image: /memtest86+_multiboot.bin
done

That is quite confusing.  Can anything be done to avoid that?


Cheers,

-- 
Cristian



More information about the Pkg-grub-devel mailing list