Grub default settings

Hello,

Is there a way to restore the Grub default settings on a Linode with Ubuntu 18.04? I'm asking because after a Grub update something went wrong and I got this error:

grub-install: warning: File system `ext2' doesn't support embedding.
grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.

My Linode has the original partitions (/dev/sda system, /dev/sdb swap) and I've never touched Grub before.

When I'm asked to select where to Install GRUB there are two identical /dev/sda (why?) and one /dev/sdb.

5 Replies

I got the same update but I haven't continued the installation yet. I got three partitions to install grub to:

[ ] /dev/sda (21206 MB; QEMU_HARDDISK)
[ ] /dev/sdb (268 MB; QEMU_HARDDISK)
[ ] /dev/sda (21206 MB; QEMU_HARDDIS)

As @otpabu said, there are 2 identical partitions /dev/sda and one /dev/sdb.

Which one should I pick?

I ran into this as well. Does anyone have any advice?

Any luck with grub partition option? Please advice

This question appears to be related, and the first answer has instructions on resetting the Grub configuration to the one provided by Linode.

Choose the first option [x] /dev/sda (21206 MB; QEMU_HARDDISK).
/dev/sdb is swap.

If you have already chosen to install the package maintainers version of the grub config, then before you reboot, copy paste default /etc/default/grub file from a working Linode of the same operating system. See https://www.linode.com/community/questions/17018/grub-updated-its-configuration-and-now-there-are-issues

Here is an example /etc/default/grub file from Ubuntu 18.04. This will be the same for all Ubuntu 18.04 Linodes, and can be copy and pasted into /etc/default/grub.

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
#GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX="console=ttyS0,19200n8 net.ifnames=0"

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

# Enable serial console for LISH
GRUB_GFXPAYLOAD_LINUX=text
GRUB_TERMINAL=serial
GRUB_SERIAL_COMMAND="serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1"

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct