LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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, 07:17 PM   #31
bodge99
Member
 
Registered: Oct 2018
Location: Ashington, Northumberland
Distribution: Artix, Slackware, Devuan etc. No systemd!
Posts: 368

Rep: Reputation: 66

Hi,

For now, I'm going to assume that your main Ubuntu installation is in some way problematic.. (I've recently fixed an Ubuntu 22.10 system that had severe filesystem damage that **appeared** to have been caused by a bad interaction/crash involving/between systemd and Virtualbox 7. When I say severe file damage, I mean **SEVERE** damage to a significant number of system files.)

Boot using the Grub prompt command method, but this time choose one of your other Linux installations.
when it has booted, reinstall Grub and update 'grub.cfg' as before.
In a terminal:
Code:
sudo grub-install
sudo update-grub
Now reboot.
Q. Is the system booting normally? Even though you are now using a different installation.

If the boot fails, can you describe exactly what is happening please.
If it fails to boot, could you reboot and manually Grub prompt boot the same installation.
Could you now post the output of the following. I'll redirect the terminal command responses to text files. If you could please post the file contents here. I only need these if the system doesn't boot properly.
Code:
sudo cat /boot/efi/EFI/ubuntu/grub.cfg > myEFIgrub.txt
sudo ls -R /boot/efi/EFI > myEFIfiles.txt
sudo cat /etc/fstab > myfstab.txt
sudo blkid | grep sda > myUUIDs.txt
More later..

B.
 
Old 12-23-2022, 07:24 PM   #32
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,396

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
Is there a cd/dvd left in the cd drive? A usb drive attached?
Ignore this.

Last edited by colorpurple21859; 12-23-2022 at 07:40 PM.
 
Old 12-24-2022, 02:35 AM   #33
bodge99
Member
 
Registered: Oct 2018
Location: Ashington, Northumberland
Distribution: Artix, Slackware, Devuan etc. No systemd!
Posts: 368

Rep: Reputation: 66
Hi,

Actually colorpurple has a point.. I've been caught out this way before. In my defense, it was someone else's desktop machine and the USB drive was one of those very small ones that was plugged into the back of the computer..

More later.

Have a good one..

B.
 
Old 12-24-2022, 06:02 AM   #34
bodge99
Member
 
Registered: Oct 2018
Location: Ashington, Northumberland
Distribution: Artix, Slackware, Devuan etc. No systemd!
Posts: 368

Rep: Reputation: 66
Hi,

Just for info. at this time.. Details on request.

Alternative multiboot setup. Overview.

There are a few minor potential "gotchas" with a traditional multiboot setup.
It's possible for a Grub module mismatch to occur i.e the initial Grub start is from one Grub version, with the target boot actually starting from another Grub version.
Yes, I'll agree it's rare and not likely to cause any particular problems.

A more serious problem which can and does occur is this. If a particular installation on a multibooted system has a kernel upgrade, the other installations local 'grub.cfg's won't reflect the changes until each of the local 'update-grub' has been run. Under these conditions, a particular installation may not boot if the recorded kernel version doesn't actually exist.
I agree this is not a major problem, if you are aware of the cause. It's more of a minor 'niggle' which requires each installed system to be booted and the local 'grub.cfg' updated.

Another "minor niggle" is if you wish to remove a particular installation. If this installation has 'lead Grub', then the system won't boot.

I use the following method on every multiboot system and external multiboot device that I use.

Grub is installed to the ESP partition. A hand crafted 'grub.cfg' then points to each installation as required. Every installation is fully standard and is installed and updated normally. The important thing is that each installation is totally independant of any of the others. If one system is removed, you only need to edit the initial 'grub.cfg' to suit. I keep a 'template' menuentry here, for ease of use. No system has 'lead grub'. Full initial control is provided by the 'ESP's 'grub.cfg'.

Typical initial 'grub.cfg' extract:
Code:
# menuentry "Template" { 
#    search --set=root --fs-uuid UUID-HERE
#    set prefix=($root)/boot/grub
#    configfile $prefix/grub.cfg }

menuentry "Ubuntu Cinnamon" { 
    search --set=root --fs-uuid 7caee267-2eb7-462a-bcab-498fd987bde5
    set prefix=($root)/boot/grub
    configfile $prefix/grub.cfg }

menuentry "Mint-Mate" { 
    search --set=root --fs-uuid ca7d8cc7-4b53-439c-ade8-4bb714eaab8c
    set prefix=($root)/boot/grub
    configfile $prefix/grub.cfg }

menuentry "OpenSuse" { 
    search --set=root --fs-uuid 77b16df4-9741-4da1-b8ee-a02047e32426
    set prefix=($root)/boot/grub2
    configfile $prefix/grub.cfg }

menuentry "Devuan" { 
    search --set=root --fs-uuid d6f677d0-b5fd-4194-8ecc-2586a949421d
    set prefix=($root)/boot/grub
    configfile $prefix/grub.cfg }
All you need for each entry is the UUID of the relevant filesystem (from 'blkid') and the location of the local 'grub.cfg'.
You can boot an installation that doesn't use Grub by calling the kernel & initrd directly if desired.

On powerup, this ESP based 'grub.cfg' is run first every time. Control is then passed to the selected installation's 'grub.cfg' which starts the system perfectly normally.

If you are using this method on an external device, you can call the external drive ESP's 'grub.cfg' by using your "boot override", direct Bios boot selection or from the EFI shell.
Full details on any of this on request.

B.

Last edited by bodge99; 12-24-2022 at 07:06 AM.
 
  


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 09:05 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