View previous topic :: View next topic |
Author |
Message |
flaviari n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 19 Oct 2013 Posts: 6
|
Posted: Sat Oct 19, 2013 8:59 am Post subject: [SOLVED] GRUB2 migration |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
ulenrich Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 10 Oct 2010 Posts: 1483
|
Posted: Sat Oct 19, 2013 12:03 pm Post subject: |
|
|
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 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mv Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/169262237648b51b40d0ec0.png)
Joined: 20 Apr 2005 Posts: 6780
|
Posted: Sat Oct 19, 2013 5:02 pm Post subject: Re: GRUB2 migration |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
nlsa8z6zoz7lyih3ap Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 25 Sep 2007 Posts: 388 Location: Canada
|
Posted: Sat Oct 19, 2013 5:33 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
creaker l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 14 Jul 2012 Posts: 651
|
Posted: Sat Oct 19, 2013 5:39 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
albright Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/524660825462570600c7fb.jpg)
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Sat Oct 19, 2013 6:04 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
flaviari n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 19 Oct 2013 Posts: 6
|
Posted: Sat Oct 19, 2013 9:10 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|