LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-15-2024, 04:05 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,773
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
seeking help with GRUB/GRUB2 detecting bootable, recovery. and menu entries


Will someone please help me sort out my GRUB/GRUB2 configuration on my primary laptop workstation?

My priimary workstation is a laptop. I'm trying to configure things so that they are more "recoverable" and that startup is more indicative of the way that I prefer to work.

What I want to do:
  • write whatever to all drives so that GRUB will detect as bootable
  • place appropriate files so that all drives enable "recovery" if the primary bootable fails including linux parts, clonezilla, systemrescue, etc.
  • enabld bpth "current release" and "previous release" with minimal duplication of files or configuration.
  • configure an appropriate GRUB menu regardless of where I'm booting
  • configure GRUB so that future updates preserve the menus etc.

My configuration:
  • a 1TB HDD as /dev/sda
  • a 512GB SSD as /dev/nvme0
  • a 512GB SSD as /dev/nvme1

I have Linux Mint 21.3 installed to /dev/sda.
/dev/nvme0 has /boot/efi and / file systems
/dev/nvme1 has /home
Code:
prompt$ sudo lsblk
***********
NAME          SIZE FSTYPE PARTLABEL MOUNTPOINTS
sda         931.5G                  
├─sda1          1G vfat   RESERVED  
├─sda2          1G vfat   Spare-EFI 
├─sda3          1G ext4   S76_boot  /boot
├─sda4       64.2G ext4   S76_var   /var
├─sda5      265.8G ext4   My_Work1  /work1
├─sda6         16G swap   S76_sawp  [SWAP]
├─sda7        245G ext4   My_Work2  /work2
└─sda8      337.5G ext4   My_Vault  /vault
nvme1n1     465.8G                  
└─nvme1n1p1 465.8G ext4   S76_Home  /home
nvme0n1     465.8G                  
├─nvme0n1p1   512M vfat   S76_EFI   /boot/efi
└─nvme0n1p2 465.3G ext4   S76_root  /
Thank you in advance.
~~~ 0;-} Dan
 
Old 02-16-2024, 06:59 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,568

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
I'm not really sure what your intentions are as you say you want Grub to detect 'drives' as bootable yet indicate you have only one OS installed so that is all that can be booted?

You want to be able to access clonezilla and systemrescue cd? You can do that with Grub is you have both iso files somewhere on one of your drive partitions if you manually create it.

What are you referring to when you say 'current release' and 'previous release' as you indicate you have only Mint 21.3?

Quote:
configure an appropriate GRUB menu regardless of where I'm booting
That comment is too vague. What difference would a physical location make? Explain the 'where' part.

Quote:
configure GRUB so that future updates preserve the menus etc.
Are you referring to changes made to the menuentries in the grub.cfg file? You can make changes in files in the /etc/grub.d file or do the not recommended method of directly editing grub.cfg. Problem with the 2nd option is that when you run grub-mkconfig the file will be overwritten.

From the information you posted, the only drive that is 'bootable' is nvme0n1 so perhaps clarify exactly what you want.
 
Old 02-18-2024, 09:45 AM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,877
Blog Entries: 1

Rep: Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078Reputation: 2078
My procedure seems to cover most of your bases. Key points:
  • only one ESP is needed per PC
  • only one Grub installation is needed per PC
  • symlinks to initrds and kernels are employed for current kernel boots
  • admin maintenance is minimal for a multiboot context
 
  


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
How to remove from grub2/grub.cfg entries of old non-existing kernels? kaza Fedora 2 03-05-2018 02:46 PM
Grub and recovery mode entries in the boot menu music_man Slackware 1 03-31-2016 02:20 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
LXer: Grub Customizer Lets You Reorder, Add Or Remove GRUB 2 (Or BURG) Menu Entries LXer Syndicated Linux News 0 10-09-2010 05:20 PM
Grub2 questions: need to know grub.cfg syntax for bootable grub_eltorito iso's?? linus72 Linux - General 11 02-11-2010 06:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:32 AM.

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