LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-03-2018, 08:48 AM   #1
globetrotterdk
Member
 
Registered: Nov 2006
Posts: 297

Rep: Reputation: 16
Multiboot Grub2 edit needs saving.


My main system at this time is Devuan Jessie. I have Windows 10 on another hard disk. I have just installed Salix OS 14.2, likewise on its own hard disk. When I ran update-grub from my Devuan system, Grub2 picked up the new system as being on /dev/sdd1, however Grub2 finds the install on /dev/sdc1 at boot time. I have confirmed this by editing the Grub2 menu at boot. Despite having run a number of searches, I can't seem to find anything on how to edit and save Grub2 boot changes with a multiboot system.
 
Old 03-03-2018, 09:28 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,571
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
You need to use UUIDs or labels, not device names. With a multi-disk setup, names can change at random depending on the order in which the newly-booted kernel finds things. The old-style kernels that used hd[a-d] nomenclature didn't have that problem as they used geometry.

An alternative solution is to have a udev rules file that enforces consistent names for drives. A lot of distros do that automatically. I'm surprised Devuan doesn't, given its Debian heritage.

PS: on rereading the post, perhaps it's Salix and not Devuan that has the numbering problem.

Last edited by hazel; 03-03-2018 at 09:47 AM. Reason: Postscript added
 
1 members found this post helpful.
Old 03-03-2018, 04:39 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Sounds suspiciously like a situation I had with a mix of (E)IDE and SATA disks - is this the case ?.

Very unlikely grub cares one little bit - the issue is the init system enumerating the disks; you see the partition as variously sdc1 or sdd1 because Linux names them that way. You might be able to enforce it with udev - I seem to remember trying but never got it to work well. Might be better to use gpt and partition (rather than filesystem) UUID - never tested.
 
1 members found this post helpful.
  


Reply

Tags
edit, grub2, multiboot



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
[SOLVED] OpenSuSe12.3 - Help Fix Grub2 Syntax Errors (was - Replace Grub2 w/ Lilo) enorbet SUSE / openSUSE 9 12-08-2013 04:09 AM
How do you edit the boot and root devices in Grub2 ? OralDeckard Linux - General 15 06-04-2012 08:07 PM
Need help with chainloading grub2 for a multiboot setup streams &dragonflies Linux - General 2 11-24-2010 03:47 PM
[SOLVED] GRUB2 after a minor update of GRUB2 /boot prefix no longer needed?? wikapuki Linux - Software 1 10-24-2010 02:39 PM
Suse 9.3 yast2 hangs saving boot config or edit config deh6 SUSE / openSUSE 0 07-16-2006 03:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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