LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Error messages on bootup: "open failed: No medium found". (https://www.linuxquestions.org/questions/debian-26/error-messages-on-bootup-open-failed-no-medium-found-4175664017/)

linustalman 12-14-2019 08:43 AM

Quote:

Originally Posted by colorpurple21859 (Post 6061260)
Well what? as far as the command, run it and see what is says, is there something there that stands out as might be the problem? If not then it's something else.
Did you look at your /boot/grub/grub.cfg and see if anything stands out there as the problem. It could be something in your initramfs causing the problem.

In post #13, I asked you if there's any sensitive data in that file that I should redact.

4ndreas 04-13-2021 06:29 AM

Use device IDs instead of drive letters in lvm.conf's global filter
 
You can prevent lvm2 from scanning the card reader by using the global filter. Instead of using drive letters for the filter, like 'sde' which is liable to change, use the id of the device(s).

E.g.:
# ls -l /dev/disk/by-id/ | grep sd[e-h]

lrwxrwxrwx 1 root root 9 Apr 13 11:06 usb-Generic_USB_CF_Reader_058F312D81B-0:1 -> ../../sdf
lrwxrwxrwx 1 root root 9 Apr 13 11:06 usb-Generic_USB_MS_Reader_058F312D81B-0:3 -> ../../sdh
lrwxrwxrwx 1 root root 9 Apr 13 11:06 usb-Generic_USB_SD_Reader_058F312D81B-0:0 -> ../../sde
lrwxrwxrwx 1 root root 9 Apr 13 11:06 usb-Generic_USB_SM_Reader_058F312D81B-0:2 -> ../../sdg


Since all card reader slot device ids contain the unique 'Reader_058F312D81B', you can use the following global filter in lvm.conf.

"r|/dev/disk/by-id/.*Reader_058F312D81B.*" # filter out card reader slots

Good luck!


All times are GMT -5. The time now is 03:03 AM.