Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Prevent grub2 "no such device: UUID" message?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 989

PostPosted: Mon May 09, 2016 9:50 am    Post subject: Prevent grub2 "no such device: UUID" message? Reply with quote

I deploy my systems in a programmatic way which causes grub2 to display a message like this for a few seconds before it resumes booting:

Code:
Error: no such device: my-disk-uuid
Press any key to continue


Can I disable that error message? I tried uncommenting GRUB_DISABLE_LINUX_UUID=true in /etc/default/grub but that doesn't change the file outputted by grub2-mkconfig at all.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Mon May 09, 2016 10:19 am    Post subject: Reply with quote

Do not use grub2-mkconfig, it is not for Gentoo users. Edit grub.cnf instead.
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 989

PostPosted: Mon May 09, 2016 12:22 pm    Post subject: Reply with quote

Buffoon wrote:
Do not use grub2-mkconfig, it is not for Gentoo users. Edit grub.cnf instead.


Are you sure about that? Both of these Gentoo guides reference grub2-mkconfig and don't mention grub.cnf:

https://wiki.gentoo.org/wiki/GRUB2
https://wiki.gentoo.org/wiki/GRUB2_Quick_Start
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Mon May 09, 2016 12:31 pm    Post subject: Reply with quote

Yes I'm sure. Any wiki should be taken with a grain of salt. Even Grub developers say it's OK to edit grub.cnf. The automated script is for binary distros to reconfigure Grub when kernel is upgraded.
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 989

PostPosted: Mon May 09, 2016 1:03 pm    Post subject: Reply with quote

Buffoon wrote:
Yes I'm sure. Any wiki should be taken with a grain of salt. Even Grub developers say it's OK to edit grub.cnf. The automated script is for binary distros to reconfigure Grub when kernel is upgraded.


This grub.cnf you speak of, is there an example or is the syntax the same as legacy grub?
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2613

PostPosted: Mon May 09, 2016 1:21 pm    Post subject: Reply with quote

I am always using grub2-mkconfig -o /boot/grub/grub.cfg and never had any problem with it.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Mon May 09, 2016 1:33 pm    Post subject: Reply with quote

I think it is actually grug.cfg, sorry for misspelling it, not at a Grub box right now. You can look at at the file you have right now, it should give you clues you need.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Mon May 09, 2016 1:35 pm    Post subject: Reply with quote

charles17 wrote:
I am always using grub2-mkconfig -o /boot/grub/grub.cfg and never had any problem with it.


Good for you. Our OP is not that lucky. What was the point of your posting again?
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Mon May 09, 2016 1:41 pm    Post subject: Reply with quote

This should be all you need: http://www.gnu.org/software/grub/manual/grub.html#Simple-configuration

Quote from developers: In the meantime, those who feel that it would be easier to write grub.cfg directly are encouraged to do so.
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 989

PostPosted: Tue May 10, 2016 8:51 am    Post subject: Reply with quote

Buffoon wrote:
Do not use grub2-mkconfig, it is not for Gentoo users. Edit grub.cnf instead.


How did you learn that Gentoo users are not meant to use grub2-mkconfig in general? Any reference?
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Tue May 10, 2016 9:44 am    Post subject: Reply with quote

grant123 wrote:
Buffoon wrote:
Do not use grub2-mkconfig, it is not for Gentoo users. Edit grub.cnf instead.


How did you learn that Gentoo users are not meant to use grub2-mkconfig in general? Any reference?


I cannot use my own brain, can I?
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 989

PostPosted: Tue May 10, 2016 3:50 pm    Post subject: Reply with quote

Buffoon wrote:
grant123 wrote:
Buffoon wrote:
Do not use grub2-mkconfig, it is not for Gentoo users. Edit grub.cnf instead.


How did you learn that Gentoo users are not meant to use grub2-mkconfig in general? Any reference?


I cannot use my own brain, can I?


So it's not for one Gentoo user in particular.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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