# Update-grub failed. someone help please

**URL:** <https://forum.endeavouros.com/t/update-grub-failed-someone-help-please/11339>\
**Category:** General system\
**Created:** [January 16, 2021, 9:22pm UTC](https://forum.endeavouros.com/t/update-grub-failed-someone-help-please/11339 "2021-01-16T21:22:05Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![Lemon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/lemon/32/4334_2.png) [@Lemon](https://forum.endeavouros.com/u/Lemon)\
**Post date:** [January 17, 2021, 9:41am UTC](https://forum.endeavouros.com/t/update-grub-failed-someone-help-please/11339/21 "2021-01-17T09:41:26Z")

</div>

> [@LizziAS](#):
>
> Found Windows 10 on /dev/sdb1

There it is, your failure.

---

<div class="post-metadata">

**Author:** ![LizziAS](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/lizzias/32/11692_2.png) [@LizziAS](https://forum.endeavouros.com/u/LizziAS)\
**Post date:** [January 17, 2021, 11:33am UTC](https://forum.endeavouros.com/t/update-grub-failed-someone-help-please/11339/22 "2021-01-17T11:33:27Z")

</div>

Smartie!

---

<div class="post-metadata">

**Author:** ![Lemon](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/lemon/32/4334_2.png) [@Lemon](https://forum.endeavouros.com/u/Lemon)\
**Post date:** [January 17, 2021, 4:01pm UTC](https://forum.endeavouros.com/t/update-grub-failed-someone-help-please/11339/23 "2021-01-17T16:01:34Z")

</div>

And you hate systemd because of the bloat? 🤣

---

<div class="post-metadata">

**Author:** ![LizziAS](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/lizzias/32/11692_2.png) [@LizziAS](https://forum.endeavouros.com/u/LizziAS)\
**Post date:** [January 17, 2021, 4:31pm UTC](https://forum.endeavouros.com/t/update-grub-failed-someone-help-please/11339/24 "2021-01-17T16:31:43Z")

</div>

I have it set up in a virtual box to run the Tamriel Trade Center client for eso but I couldn’t get it to run under wine.

---

<div class="post-metadata">

**Author:** ![diyako](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/d/839c29/32.png) [@diyako](https://forum.endeavouros.com/u/diyako)\
**Post date:** [February 16, 2022, 4:50pm UTC](https://forum.endeavouros.com/t/update-grub-failed-someone-help-please/11339/25 "2022-02-16T16:50:07Z")

</div>

I encountered the same problem of not being able to run the command “#update-grub”  
So, I created the command following the instructions below and it works!

bash: update-grub: command not found

So I manually created one as below:

sudo nano /usr/sbin/update-grub

This will create a new empty file.

Type the following in the empty file:

#!/bin/sh

set -e

exec grub-mkconfig -o /boot/grub/grub.cfg “$@”

save the file and exit.

Then I ran in the terminal:

sudo chown root:root /usr/sbin/update-grub

sudo chmod 755 /usr/sbin/update-grub

This way I manually created an update-grub command just like many other distributions. Then I ran:

sudo update-grub

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [February 16, 2022, 5:14pm UTC](https://forum.endeavouros.com/t/update-grub-failed-someone-help-please/11339/26 "2022-02-16T17:14:11Z")

</div>

This is not how you update grub on an Arch based system. Those are ubuntu based commands!

Edit: Please use the following.

```auto
sudo grub-mkconfig -o /boot/grub/grub.cfg

```

Edit2: Please refer to the Arch Wiki

[https://wiki.archlinux.org/title/GRUB](https://wiki.archlinux.org/title/GRUB)

Edit: Sorry i misunderstood your post at first as i skimmed only the first few lines. I see what you did after realizing you couldn’t use sudo update-grub. 😉

---

<div class="post-metadata">

**Author:** ![anon53396576](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@anon53396576](https://forum.endeavouros.com/u/anon53396576)\
**Post date:** [February 16, 2022, 5:19pm UTC](https://forum.endeavouros.com/t/update-grub-failed-someone-help-please/11339/27 "2022-02-16T17:19:13Z")

</div>

Pssst…

[AUR (en) - update-grub (archlinux.org)](https://aur.archlinux.org/packages/update-grub)

---

<div class="post-metadata">

**Author:** ![joekamprad](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/joekamprad/32/77608_2.png) [@joekamprad](https://forum.endeavouros.com/u/joekamprad)\
**Post date:** [February 16, 2022, 5:19pm UTC](https://forum.endeavouros.com/t/update-grub-failed-someone-help-please/11339/28 "2022-02-16T17:19:53Z")

</div>

welcome on the forum @diyako indeed creating the script manually will work in the same way … you could also use an alias in your terminalRC or use the script by installing from AUR:  
`yay -S update-grub`

```auto
aur/update-grub 0.0.1-7 (+93 2.48) 
    Simple wrapper around grub-mkconfig

```

In addition, keep in mind to not post in year old posts… it will get lost and it is always recommended to open a new post instead.

---

<div class="post-metadata">

**Author:** ![pebcak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pebcak/32/100472_2.png) [@pebcak](https://forum.endeavouros.com/u/pebcak)\
**Post date:** [February 16, 2022, 5:21pm UTC](https://forum.endeavouros.com/t/update-grub-failed-someone-help-please/11339/29 "2022-02-16T17:21:20Z")

</div>

> [@diyako](#):
>
> sudo nano **/usr/sbin/update-grub**
> 
> This will create a new empty file.
> 
> Type the following in the empty file:
> 
> #!/bin/sh
> 
> set -e
> 
> **exec grub-mkconfig -o /boot/grub/grub.cfg**
> 
> save the file and exit.

😉

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [February 16, 2022, 5:22pm UTC](https://forum.endeavouros.com/t/update-grub-failed-someone-help-please/11339/30 "2022-02-16T17:22:07Z")

</div>

I didn’t know that even existed. 🤔

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [February 16, 2022, 5:24pm UTC](https://forum.endeavouros.com/t/update-grub-failed-someone-help-please/11339/31 "2022-02-16T17:24:56Z")

</div>

What is the set -e to make it executable? I thought the exec does that? I’m bash illiterate! 😅

---

<div class="post-metadata">

**Author:** ![pebcak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pebcak/32/100472_2.png) [@pebcak](https://forum.endeavouros.com/u/pebcak)\
**Post date:** [February 16, 2022, 5:26pm UTC](https://forum.endeavouros.com/t/update-grub-failed-someone-help-please/11339/32 "2022-02-16T17:26:51Z")

</div>

👓 `set --help`  
🙂

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [February 16, 2022, 5:27pm UTC](https://forum.endeavouros.com/t/update-grub-failed-someone-help-please/11339/33 "2022-02-16T17:27:55Z")

</div>

I don’t RTFM. 🕶

Edit: Okay…

-e Exit immediately if a command exits with a non-zero status.

---

<div class="post-metadata">

**Author:** ![joekamprad](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/joekamprad/32/77608_2.png) [@joekamprad](https://forum.endeavouros.com/u/joekamprad)\
**Post date:** [February 16, 2022, 6:46pm UTC](https://forum.endeavouros.com/t/update-grub-failed-someone-help-please/11339/34 "2022-02-16T18:46:12Z")

</div>

– **closing** –

If the honored gentlemen have no objection to it? 😊

[Previous page](https://forum.endeavouros.com/t/update-grub-failed-someone-help-please/11339.md?page=1)
