LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 12-15-2020, 07:10 AM   #1
petelogan
Member
 
Registered: Mar 2003
Location: Luxembourg
Distribution: SuSE 11.4
Posts: 74

Rep: Reputation: 15
Forcing OpenSuSe boot from cd player


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 ??


I'm looking for the command.


Thanks for any help you can give me. I'm stuck :-)


Pete
 
Old 12-15-2020, 08:28 AM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,345

Rep: Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588
Did you do something that warrants a re-install? If not you should be able to recover from the grub prompt.
this tell how to boot from grub prompt, not sure if opensuse uses /boot/grub or /boot/grub2, here are two how tos to recover from grub prompt and fix
https://help.ubuntu.com/community/Grub2/Troubleshooting
https://www.linux.com/training-tutor...-grub-2-linux/
 
Old 12-18-2020, 02:31 AM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,799
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
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
 
Old 12-18-2020, 01:15 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by petelogan View Post
How do I force GRUB to boot the DVD and reinstall the OS ??
Grub does neither of these things:
  • the BIOS decides which device the machine tries to boot from. Often there's a "Boot Selection" hotkey you can press during early boot.
  • the booted device might start an installer or a live environment
 
Old 12-18-2020, 04:38 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
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.

Anyway. https://help.ubuntu.com/community/Bo...command%20mode.
 
Old 01-10-2021, 12:05 AM   #6
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by petelogan View Post
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.

HTH...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Forcing Architecture - Flash Player Install Problems krimzen85 Linux - Software 12 08-22-2009 06:12 AM
LXer: Exaile Music Player - Music Player for GTK+ in openSUSE LXer Syndicated Linux News 0 08-31-2008 12:50 AM
forcing traffic through certain route(forcing source ip) taltman Linux - Networking 1 12-26-2007 01:07 PM
openSUSE 10.2 regularly freezes, forcing reboot matuk_444 SUSE / openSUSE 2 02-12-2007 12:32 AM
forcing boot from cd nocturnal Slackware 1 11-19-2003 04:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 04:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration