update-grub not working -- No medium found

Я запускаю Ubuntu 20.04 LTS с LVM и UEFI на Thinkpad T480.

Всякий раз, когда я запускаю sudo update-grub, я получаю следующий результат:

Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
Found linux image: /boot/vmlinuz-5.4.0-29-generic
Found initrd image: /boot/initrd.img-5.4.0-29-generic
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
Found linux image: /boot/vmlinuz-5.4.0-28-generic
Found initrd image: /boot/initrd.img-5.4.0-28-generic
Found linux image: /boot/vmlinuz-5.4.0-21-generic
Found initrd image: /boot/initrd.img-5.4.0-21-generic
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
  /dev/sdb: open failed: No medium found
Adding boot menu entry for UEFI Firmware Settings
done

Мои изменения, похоже, не вступают в силу после выполнения команды.

У меня нет тома с именем /dev/sdb... Я не понимаю, почему он должен его искать.

Как я могу решить эту проблему?

Заранее спасибо.

0
задан 11 May 2020 в 04:30

1 ответ

Решение из этого комментария на панели запуска отчета об ошибке:

Добавить global_filter = [ "r|/dev/sda| ", "r|/dev/sdb|" ] в файл /etc/lvm/lvm.conf :

 143         # Example
 144         # Accept every block device:
 145         # filter = [ "a|.*|" ]
 146         # Reject the cdrom drive:
 147         # filter = [ "r|/dev/cdrom|" ]
 148         # Work with just loopback devices, e.g. for testing:
 149         # filter = [ "a|loop|", "r|.*|" ]
 150         # Accept all loop devices and ide drives except hdc:
 151         # filter = [ "a|loop|", "r|/dev/hdc|", "a|/dev/ide|", "r|.*|" ]
 152         # Use anchors to be very specific:
 153         # filter = [ "a|^/dev/hda8$|", "r|.*|" ]
 154         # 
 155         # This configuration option has an automatic default value.
 156         # filter = [ "a|.*|" ]
 157         global_filter = [ "r|/dev/sda|", "r|/dev/sdb|" ]

Запустите sudo update-grub перед фильтром:

Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
GRUB-Konfigurationsdatei wird erstellt …
  /dev/sda: open failed: No medium found
  /dev/sda: open failed: No medium found
  .
  .
  .
Linux-Abbild gefunden: /boot/vmlinuz-5.4.0-52-generic
initrd-Abbild gefunden: /boot/initrd.img-5.4.0-52-generic
Linux-Abbild gefunden: /boot/vmlinuz-5.4.0-48-generic
initrd-Abbild gefunden: /boot/initrd.img-5.4.0-48-generic
  /dev/sda: open failed: No medium found
  .
  .
  .
Startmenüeintrag für UEFI-Firmware-Einstellungen wird hinzugefügt erledigt

Запустите sudo update-grub после фильтра:

Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
GRUB-Konfigurationsdatei wird erstellt …
Linux-Abbild gefunden: /boot/vmlinuz-5.4.0-52-generic
initrd-Abbild gefunden: /boot/initrd.img-5.4.0-52-generic
Linux-Abbild gefunden: /boot/vmlinuz-5.4.0-48-generic
initrd-Abbild gefunden: /boot/initrd.img-5.4.0-48-generic
Startmenüeintrag für UEFI-Firmware-Einstellungen wird hinzugefügt erledigt
4
ответ дан 26 October 2020 в 16:07

Другие вопросы по тегам:

Похожие вопросы: