LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 12-23-2022, 02:10 PM   #1
Mudhead Kohala
LQ Newbie
 
Registered: Oct 2017
Location: Hawaii
Distribution: KDE's, various multiboots
Posts: 22

Rep: Reputation: Disabled
Unhappy Missing (or replaced?) Grub - Ununtu Multiboot in old Dell Laptop


Ubuntu (Studio) 22.04 LTS

After a restart, my GRUB seems to have been replaced with some other one that defaults to Ubuntu installation process.

GRUB was written on the original installation of this Ubuntu Studio.

This happened after a simple reboot of the machine. No further OS installs have been performed so I cant think of a reason the GRUB would be compromised.

However, I did happen to accidentally kick the makeshift table that the machine sits on, during the previous boot.

There is a selection on the current (wrong) GRUB that says "Boot from next volume" which when selected boots up Windows 10 just fine. And this Win 10 operates just fine.

Ive never had to recover a GRUB and my Linux skills are weak.

Thanks for your time.
 
Old 12-23-2022, 02:27 PM   #2
Mudhead Kohala
LQ Newbie
 
Registered: Oct 2017
Location: Hawaii
Distribution: KDE's, various multiboots
Posts: 22

Original Poster
Rep: Reputation: Disabled
Im trying to figure out how to post a photo of my screen..
 
Old 12-23-2022, 02:35 PM   #3
Mudhead Kohala
LQ Newbie
 
Registered: Oct 2017
Location: Hawaii
Distribution: KDE's, various multiboots
Posts: 22

Original Poster
Rep: Reputation: Disabled
The correct grub lists Windows 10, two different Ubuntus and a Kubuntu.


Well anyway, the five options in the current grub are:

•Try or Install Ubuntu Studio
I attempted this to try to write a new grub on a different partition, but the install process goes on indefinately listing a bunch of errors along the way.

•Ubuntu Studio (safe graphics)
Same results as above.

•OEM install (for manufacturers)

•Boot from next volume
This option successfully loads Windows 10 everytime.

•UEFI Firmware Settings
 
Old 12-23-2022, 02:50 PM   #4
Mudhead Kohala
LQ Newbie
 
Registered: Oct 2017
Location: Hawaii
Distribution: KDE's, various multiboots
Posts: 22

Original Poster
Rep: Reputation: Disabled
The process list (not sure the correct name) while attempting to boot Ubuntu says, so far (6 minutes in):

Starting Set console scheme...
Finished Terminate Plymouth Boot Screen [OK]
Failed to start Snap Daemon [Failed]
Failed to start Snap Daemon [Failed]
Failed to start Snap Daemon [Failed]


I can hear the hard drive working hard
 
Old 12-23-2022, 02:52 PM   #5
bodge99
Member
 
Registered: Oct 2018
Location: Ashington, Northumberland
Distribution: Artix, Slackware, Devuan etc. No systemd!
Posts: 368

Rep: Reputation: 66
Hi,

Do you know which partitions hold your Ubuntu system??

B
 
Old 12-23-2022, 03:17 PM   #6
bodge99
Member
 
Registered: Oct 2018
Location: Ashington, Northumberland
Distribution: Artix, Slackware, Devuan etc. No systemd!
Posts: 368

Rep: Reputation: 66
Hi,

Try this first..

When booting, repeatedly press the 'esc' key.
If you are dropped to a Grub menu, press 'c' to obtain the Grub command prompt.

When at the Grub prompt, enter the following.
Drives count from 0, partitions from 1. If you don't know which partition is which, then just repeat the command, starting from 1 and work upwards.
i.e. (hd0,1)/ then (hd0,2)/ and so on.

Here, this produces a directory listing of the third partition of the first (detected) hard drive (assuming that a valid filesystem exists).
Code:
ls (hd0,3)/
Look for the output that indicates a Linux system top level directory structure ('bin', 'boot', 'dev', 'etc' and so on.)

Assuming that (hd0,3) is the required partition. Now enter this:
Code:
set root=hd0,3
set prefix=($root)/boot/grub
configfile $prefix/grub.cfg
The system **should** boot properly now. It will boot via the system's local 'grub.cfg'.

**IF** the system boots properly now, then open a terminal and run:
Code:
sudo update-grub
This update will overwrite the existing 'grub.cfg' file with a new one. You may or may not have other OS's detected. This is easy to correct if you need this. Just ask here.

Can you post here exactly what you find please.

B.
EDIT: The commands that are entered at the Grub prompt are transient. If the machine is rebooted **without** fixing the boot problem (reinstall Grub etc.) then these steps will need to be repeated.

Last edited by bodge99; 12-23-2022 at 06:37 PM. Reason: Clarification regarding Grub prompt commands.
 
Old 12-23-2022, 03:38 PM   #7
bodge99
Member
 
Registered: Oct 2018
Location: Ashington, Northumberland
Distribution: Artix, Slackware, Devuan etc. No systemd!
Posts: 368

Rep: Reputation: 66
Hi,

I forgot to add..

If it turns out that there is a problem with your Ubuntu installation, then just repeat the manual Grub boot from one of the other system partitions..
This should allow you to boot the one of the other Ubuntu's.

B.
 
Old 12-23-2022, 03:43 PM   #8
Mudhead Kohala
LQ Newbie
 
Registered: Oct 2017
Location: Hawaii
Distribution: KDE's, various multiboots
Posts: 22

Original Poster
Rep: Reputation: Disabled
Hi, thanks for your time.
Im just getting back to the desk.

I do remember my partitions (the one of query being /dev/sda10)

So I will try it with (hd0,10)/ ...correct?

I'll get started with your instructions in just a sec
 
Old 12-23-2022, 03:56 PM   #9
bodge99
Member
 
Registered: Oct 2018
Location: Ashington, Northumberland
Distribution: Artix, Slackware, Devuan etc. No systemd!
Posts: 368

Rep: Reputation: 66
Hi,

Try a Grub directory listing of (hd0,10)/ and see what it shows..

I've got a suggestion regarding your multiboot environment which might help a little in the future.. Of course I'll wait until the current crisis is sorted..

B.
 
Old 12-23-2022, 04:14 PM   #10
Mudhead Kohala
LQ Newbie
 
Registered: Oct 2017
Location: Hawaii
Distribution: KDE's, various multiboots
Posts: 22

Original Poster
Rep: Reputation: Disabled
IM IN!!! Now talking to you from within the needed OS!

Second attempt, though, because when I rebooted after the first try, the grub problem came back the same. I believe that was my error, mistaking what I thought was my console processes completed.

So here I am in the second attempt, but have not yet rebooted to confirm remedy.

Here's the console's spitout:



[sudo] password for studioworker:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-52-lowlatency
Found initrd image: /boot/initrd.img-5.15.0-52-lowlatency
Found linux image: /boot/vmlinuz-5.15.0-52-lowlatency
Found initrd image: /boot/initrd.img-5.15.0-52-lowlatency
Found linux image: /boot/vmlinuz-5.13.0-28-lowlatency
Found initrd image: /boot/initrd.img-5.13.0-28-lowlatency
Found Windows Boot Manager on /dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi
Found Ubuntu 20.04.3 LTS (20.04) on /dev/sda11
Found Ubuntu 20.04.4 LTS (20.04) on /dev/sda7
Adding boot menu entry for UEFI Firmware Settings
done
 
Old 12-23-2022, 04:19 PM   #11
Mudhead Kohala
LQ Newbie
 
Registered: Oct 2017
Location: Hawaii
Distribution: KDE's, various multiboots
Posts: 22

Original Poster
Rep: Reputation: Disabled
Patiently on standby for further instruction.

Thanks so much for your time thus far
 
Old 12-23-2022, 04:27 PM   #12
Mudhead Kohala
LQ Newbie
 
Registered: Oct 2017
Location: Hawaii
Distribution: KDE's, various multiboots
Posts: 22

Original Poster
Rep: Reputation: Disabled
Im going to reboot to verify remedy. brb
 
Old 12-23-2022, 04:27 PM   #13
bodge99
Member
 
Registered: Oct 2018
Location: Ashington, Northumberland
Distribution: Artix, Slackware, Devuan etc. No systemd!
Posts: 368

Rep: Reputation: 66
Hi,

Glad to hear that you are making progress..

A couple of points to mention, as you appear to be using a standard multibooting setup.

For Ubuntu's (and derivatives) there is an initial 'grub.cfg' within the ESP partition. The full path from a running system is '/boot/efi/EFI/ubuntu/grub.cfg'. This 'grub.cfg' points to the target installations local 'grub.cfg' (at '/boot/grub/grub.cfg'). The partition is identified by its filesystem UUID.
It **is** possible for this UUID to be pointing at the wrong filesystem.. The local 'grub.cfg' here then points somewhere else. All good fun where one systems Grub installation is used to start a kernel on a different filesystem.

More later..

B.
 
Old 12-23-2022, 04:29 PM   #14
Mudhead Kohala
LQ Newbie
 
Registered: Oct 2017
Location: Hawaii
Distribution: KDE's, various multiboots
Posts: 22

Original Poster
Rep: Reputation: Disabled
Not remedied. Running the commands again
 
Old 12-23-2022, 04:31 PM   #15
Mudhead Kohala
LQ Newbie
 
Registered: Oct 2017
Location: Hawaii
Distribution: KDE's, various multiboots
Posts: 22

Original Poster
Rep: Reputation: Disabled
SHUUUUX Maybe its sda11...not 10 �� brb!
 
  


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
Transferring Postfix emails from old Centos 6 to Ununtu dontsim Linux - Newbie 1 04-30-2021 05:52 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
[SOLVED] old grub of ubuntu replaced by 0.97 of fedora dexter.gdv Linux - Software 4 02-05-2011 10:23 AM
Grub, device string replaced with 32 digit hexadecimal number. Caused Grub "error 11" VipX1 Linux - Newbie 3 10-19-2009 05:27 PM
grub overwrote lilo multiboot, missing one boot in Grub rl23455 Linux - Newbie 1 12-09-2007 01:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 10:51 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