update-grub не работает - носитель не найден
Я запускаю 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... Я не понимаю, зачем ему это искать.
Как я могу исправить эту проблему?
Заранее спасибо.
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