Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] GRUB2 migration
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
flaviari
n00b
n00b


Joined: 19 Oct 2013
Posts: 6

PostPosted: Sat Oct 19, 2013 8:59 am    Post subject: [SOLVED] GRUB2 migration Reply with quote

I'm trying to migrate from GRUB legacy to GRUB2, following the migration guide. Unfortunately, I run into a snafu quite soon when trying to create my config file:

Code:
grub2-mkconfig -o /boot/grub/grub.cfg
/usr/sbin/grub2-probe: error: failed to get canonical path of `PARTUUID=84231979-03'.


My old GRUB config file boots using a partuuid (as otherwise it cannot reliably find the boot drive, drive letters kept shifting):

Code:
...
title Gentoo Linux 3.8.13 UUID
root (hd0,0)
kernel /boot/kernel-3.8.13-gentoo root=PARTUUID=84231979-03


Any hints as to how I create the config file?


Last edited by flaviari on Sat Oct 19, 2013 9:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1358

PostPosted: Sat Oct 19, 2013 12:03 pm    Post subject: Reply with quote

PARTUUIDs can change depending the mode you boot:
efi , bios
sata, ata
For me, it is far more easy to handle my partitions using labels:
Also grub2 is able to use them instead of machine like code of UUIDs
_________________
fun2gen2
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 5702

PostPosted: Sat Oct 19, 2013 5:02 pm    Post subject: Re: GRUB2 migration Reply with quote

flaviari wrote:
Any hints as to how I create the config file?

I suggest to call grub2-mkconfig only once and to edit grub.cfg later on only manually. So I suggest you first replace your PARTUUID=... (whereever you have originally entered it) by the device which it is currently, so that you are able to produce a reasonable grub.cfg example by running grub2-mkconfig. Then in the generated grub.cfg you can change it back manually for the kernel command line (and do further changes at your discretion, since the generated grub.cfg example is almost never what one wants unchanged).
Back to top
View user's profile Send private message
nlsa8z6zoz7lyih3ap
Guru
Guru


Joined: 25 Sep 2007
Posts: 370
Location: Canada

PostPosted: Sat Oct 19, 2013 5:33 pm    Post subject: Reply with quote

Quote:
Any hints as to how I create the config file?


just used the manual configuration section of

http://wiki.gentoo.org/wiki/GRUB2_Quick_Start

to rewrite my grub-0.97 configuration file. I don't like grub2's automatic configuration.
Back to top
View user's profile Send private message
creaker
l33t
l33t


Joined: 14 Jul 2012
Posts: 651

PostPosted: Sat Oct 19, 2013 5:39 pm    Post subject: Reply with quote

Quote:
failed to get canonical path of

It is known bug. This error message appears on attempt to configure grub by PARTUUID without initrd.
You can solve it by either adding initrd or changing partition identification from PARTUUID to something else (e.g. by label)
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2439
Location: Near Toronto

PostPosted: Sat Oct 19, 2013 6:04 pm    Post subject: Reply with quote

Quote:
I'm trying to migrate from GRUB legacy to GRUB2


why?
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
flaviari
n00b
n00b


Joined: 19 Oct 2013
Posts: 6

PostPosted: Sat Oct 19, 2013 9:10 pm    Post subject: Reply with quote

Thanks for the Quick guide link - the manual config section helped me greatly :).

As for why I wanted to upgrade - hopefully to be able to boot without having to resort to PARTUUID, and (hopefully) to have a slightly easier new kernel installation (yes, I'm lazy ;) ).

Thanks for all the quick replies!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum