Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3567

System and Network configuration • grub: start os on usbstick

$
0
0
os: debian 12 kde plasma.
In '/etc/grub.d/40_custom' I have the following menuentry:

Code:

menuentry "USB disk" {insmod chainset root=(hd5)chainloader +1}
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!):

Code:

error: hd5 cannot get C/H/S values.Press any key to continue...
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??

Statistics: Posted by peer — 2024-12-07 13:39 — Replies 0 — Views 7



Viewing all articles
Browse latest Browse all 3567

Trending Articles