LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-27-2023, 09:25 PM   #1
Dain_Bramage
Member
 
Registered: Mar 2019
Posts: 46

Rep: Reputation: Disabled
grub error failed to get canonical path


I am running Ubuntu 22.04 root on zfs with mirrored pools.

Code:
root@orac:/home/mike# blkid | grep bpool
/dev/sdd3: LABEL="bpool" UUID="10149266795976124053" UUID_SUB="7554971749162667878" BLOCK_SIZE="4096" TYPE="zfs_member" PARTUUID="ffc44ed2-67ac-b14d-8674-5653f5457c8f"
/dev/sde3: LABEL="bpool" UUID="10149266795976124053" UUID_SUB="1881332597513951535" BLOCK_SIZE="4096" TYPE="zfs_member" PARTUUID="09185217-6483-d64d-a146-25b9b2ef7fcc"
Code:
root@orac:/home/mike# lsblk | grep sdd
sdd           8:48   0   1.8T  0 disk 
├─sdd1        8:49   0   512M  0 part /boot/grub
├─sdd2        8:50   0     2G  0 part [SWAP]
├─sdd3        8:51   0     2G  0 part 
└─sdd4        8:52   0   1.8T  0 part
So as you can see grub is installed on /dev/sdd and the operating system boots from /dev/sdd

I decided that I wanted to change the UUID of /dev/sde but when I ran update-grub I got this error:

Code:
root@orac:/home/mike# update-grub
/usr/sbin/grub-probe: error: failed to get canonical path of `/dev/disk/by-partuuid/09185217-6483-d64d-a146-25b9b2ef7fcc'.
It was easily fixed by changing the UUID back but I am puzzled as to why grub cares about the UUID of a drive it is not installed on?

Last edited by Dain_Bramage; 12-27-2023 at 09:26 PM.
 
Old 12-27-2023, 10:09 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,828
Blog Entries: 1

Rep: Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069
Have you considered un-bramaging; or the functions of update-grub, and thus grub-probe? One of them is to produce a grub.cfg that works. That involves probing filesystems that Grub may not be "installed on".
 
Old 12-28-2023, 11:02 PM   #3
Dain_Bramage
Member
 
Registered: Mar 2019
Posts: 46

Original Poster
Rep: Reputation: Disabled
Hi mrmazda,

Thank you for your reply.

I think I may not have phrased my question very well.

After I changed the UUID and before I ran
Code:
update-grub
I ran
Code:
partprobe
so that the operating system kernel is aware of the partition table change.

What I am trying to understand is why does grub expects to find the specific UUID 09185217-6483-d64d-a146-25b9b2ef7fcc?
 
Old 12-28-2023, 11:15 PM   #4
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
That's where it hibernates to.
 
1 members found this post helpful.
Old 12-29-2023, 12:53 AM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,828
Blog Entries: 1

Rep: Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069
Quote:
Originally Posted by Dain_Bramage View Post
What I am trying to understand is why does grub expects to find the specific UUID 09185217-6483-d64d-a146-25b9b2ef7fcc?
That's not a UUID. It's the PARTUUID of sde3.

I don't use zfs, so can't know what if any part it plays in understanding this, but perhaps it would explain this:
Quote:
Code:
├─sdd1 8:49 0 512M 0 part /boot/grub/
What reason is there for mounting a discrete filesystem on /boot/grub/? /boot/ and /boot/efi/ I know reasons for.
 
  


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
error grub-install: error: failed to get canonical path of `unionfs' ibouvousaime Linux - Newbie 1 08-08-2015 01:20 PM
Error message: "Failed to fetch http://dell-mini.archive.canonical.com KateWhittle Linux - Newbie 9 02-16-2015 12:53 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
online_update failed - ERROR(Media:connection failed)[Connect failed] rover SUSE / openSUSE 8 02-22-2005 07:57 AM

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

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