os: debian 12 kde plasma.
In '/etc/grub.d/40_custom' I have the following menuentry:If I choose this nmenuentry I get the folowing results:
- When there is a usb disk present with an os on it will boot. OK!
- When there is a usb disk present without an os I get a black screen with an cursor. Not OK!
- When there is no usb disk present grub shows the following error and then shows the menu again (OK!):Is it possible to check in the menuentry if an usb stick is present and when it does check if there is an os present??
In '/etc/grub.d/40_custom' I have the following menuentry:
Code:
menuentry "USB disk" {insmod chainset root=(hd5)chainloader +1}
- When there is a usb disk present with an os on it will boot. OK!
- When there is a usb disk present without an os I get a black screen with an cursor. Not OK!
- When there is no usb disk present grub shows the following error and then shows the menu again (OK!):
Code:
error: hd5 cannot get C/H/S values.Press any key to continue...
Statistics: Posted by peer — 2024-12-07 13:39 — Replies 0 — Views 7