The officially official Devuan Forum!

You are not logged in.

#1 2021-12-25 01:09:35

turbo
Member
Registered: 2019-12-30
Posts: 16  

Dual boot, can't do "update-grub"

Hello All,

just installed a third Devuan4 system along with WIN10. So far so good and all is working as expected. Get my boot menu with Devuan and Win10 to choose from.

Just wanted to set the timeout from 5 to 20 seconds. Got that working as root with nano in /etc/default/grub Saved and wanted to do: # update-grub but got "bash not known" message. So a No-Go.

Had read this https://dev1galaxy.org/viewtopic.php?id=4699 . Not sure if this applies, as grub is presenting me with both OSes.

So how can I update grub ? Using different file or be fast with tapping a key ?

Offline

#2 2021-12-25 08:59:40

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Dual boot, can't do "update-grub"

turbo wrote:

wanted to do: # update-grub but got "bash not known" message.

It's better to post the actual error message. It's best to enter that error message in the search box for these boards because this problem has come up several times before.

You should also read the release notes because this issue is covered there.

tl;dr: use su - to obtain a root shell. If the - isn't added then you will have to call the full path for any executables under the /sbin directories.

Last edited by Head_on_a_Stick (2021-12-25 09:00:28)


Brianna Ghey — Rest In Power

Offline

#3 2021-12-25 18:10:24

turbo
Member
Registered: 2019-12-30
Posts: 16  

Re: Dual boot, can't do "update-grub"

changing the grub settings were all done with root. Sorry that I didn't mention that.
The actual error message is not saying anything at all.

root@johannes:/home/johannes# update-grub
bash: update-grub: command not found

So, let's change "my problem" to a question:
How do you guys change the timeout in a Dual boot ?

Offline

#4 2021-12-25 18:41:35

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Dual boot, can't do "update-grub"

*sighs*

So how did you become root then?

It looks like you used this command as your normal user

su

When you should have used

su -

Or call

/usr/sbin/update-grub

From the release notes:

su

   The behaviour of su changed in Devuan 3 Beowulf. These changes persist
   in Devuan 4 Chimaera. Use su - to get root's path or use the full path
   to commands if you use only su. See the following for more information:
   -
   [17]https://www.debian.org/releases/buster/ … -variables -
   [18]https://wiki.debian.org/NewInBuster -
   [19]https://bugs.debian.org/905564

This is the last time I'm answering this question on these boards...


Brianna Ghey — Rest In Power

Offline

#5 2021-12-25 19:21:52

turbo
Member
Registered: 2019-12-30
Posts: 16  

Re: Dual boot, can't do "update-grub"

Sorry for not knowing this, yet.
And Thank you to point that out and get my problem fixed.

Offline

#6 2021-12-25 20:04:10

golinux
Administrator
Registered: 2016-11-25
Posts: 3,317  

Re: Dual boot, can't do "update-grub"

turbo wrote:

Sorry for not knowing this, yet.
And Thank you to point that out and get my problem fixed.

The "problem" is not that your installation hit a wall.  The problem is not reading the Release Notes BEFORE you start to install.

Offline

#7 2021-12-25 20:35:38

turbo
Member
Registered: 2019-12-30
Posts: 16  

Re: Dual boot, can't do "update-grub"

that is exactly what i meant with my last comment.

Offline

Board footer