SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You shouldn't need to reinstall just because Grub isn't working right any more. You should be able to boot the installation media by hitting a hotkey before POST completes. That key varies by manufacturer. My own hotkey list:
Code:
ASRock F11
Asus F8
Biostar F9?
Dell F12
EVGA F7
Gigabyte F12
HP F9 or ESC or ESC,F9
Lenovo F12 or F8 or F10
MSI F11
Toshiba F12
From a grub> prompt it's possible to boot if you have a copy of grub.cfg or menu.lst saved since the current partitioning was implemented to use as template. menu.lst is nothing but commands that can be used at a Grub shell prompt. Grub.cfg is rather more complicated, but functions basically the same. It's possible to type in the skeletal versions of those commands to get the installed system booted, after which you can run Yast to reconfigure the bootloader, by no more change than to add or remove a second from the timeout value.
If you have no available copies of grub.cfg, look here to see some examples of minimalist stanzas that can function as templates. If you don't have labels on your partitions, you can make some before proceeding using e2label or tune2fs -L, or use device names or UUIDs instead. LABELs are convenient because they can be quite short, and easy for you, presumably a human, to remember and type without error.
Here's a bare minimum example for booting from the #2 partition on the first disk (which is normally mounted to /boot):
Code:
grub> linux (hd0,gpt2)/vmlinuz
grub> initrd (hd0,gpt2)/initrd
grub> boot
Last edited by mrmazda; 12-18-2020 at 05:29 AM.
Reason: add bare mimimum example
I'd ask why you wish to try to get bios to boot to usb dvd.
Not sure what might happen but that is a non-standard way.
I'd boot to usb dvd from bios unless the system is really old and can't boot to usb. I used to boot to network cd to then boot to usb dvd.
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800
Rep:
Quote:
Originally Posted by petelogan
I have been running OpenSuSe Tumbleweed for a couple years now.
A week ago, the machine changed behaviour. Now it does not boot the OS, I just get a Grub prompt.
I have an external USB DVD drive.
How do I force GRUB to boot the DVD and reinstall the OS ??
Grub wouldn't be involved in booting from the optical drive; your system BIOS would have that as an option. Check in your BIOS if the system knows to boot from optical drive and that the boot order has the optical drive before the hard disk.
Once you get the system to boot a rescue system from the optical drive, you ought to be able to check the Grub configuration and make repairs to it. IMHO, it's premature to resort to re-installing Linux until you've exhausted the fix Grub option. Also, I'd be leery of re-installing unless you've partitioned the hard disk in such a way that allowed you to separate your personal data from the OS. If you haven't, booting from the optical drive to a rescue system would allow you to backup your personal data -- and any configuration files in /etc you may have made changes to -- before resorting to a re-installation.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.