Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

[SOLVED]Need help in Grub configure during upgrade

Help for Current Versions of MX
Message
Author
User avatar
oops
Forum Regular
Forum Regular
Posts: 406
Joined: Tue Apr 10, 2018 5:07 pm

Re: Need help in Grub configure during upgrade

#21 Post by oops » Sat Nov 10, 2018 12:11 pm

arky217 wrote:
Sat Nov 10, 2018 12:03 pm
...Ok, spacebar; I agree, not very intuitive.

But now, since I chose 'no' not to install grub anywhere, what do I do now to install the updated grub ?
You can first check the grub version installed, should be this one:

Code: Select all

# grub-install --version
grub-install (GRUB) 2.02~beta3-5+deb9u1
Last edited by oops on Sat Nov 10, 2018 12:12 pm, edited 1 time in total.
$ inxi -Fxxxz : System: Host:XEON ... Distro: MX-17.1_x64 Horizon

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 2000
Joined: Wed Apr 11, 2018 5:09 pm

Re: Need help in Grub configure during upgrade

#22 Post by fehlix » Sat Nov 10, 2018 12:11 pm

arky217 wrote:
Sat Nov 10, 2018 12:03 pm
But now, since I chose 'no' not to install grub anywhere, what do I do now to install the updated grub ?
see post #10
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
asqwerth
Forum Veteran
Forum Veteran
Posts: 3438
Joined: Sun May 27, 2007 5:37 am

Re: Need help in Grub configure during upgrade

#23 Post by asqwerth » Sat Nov 10, 2018 12:14 pm

When you first installed MX, did you choose to install grub/bootloader and if so, where?

MBR or root partition (legacy boot)

or the ESP (UEFI boot)?

If you had installed previously, you should say yes to installing grub in the same place, I thnk. But listen to fehlix's advice more than mine, he knows his stuff. :happy:

Then if it tells you that some config file is different from the current config file, you can choose to replace with new, or keep current. Usually say "keep current".

But I'm about to go off to bed.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

arky217
Forum Novice
Forum  Novice
Posts: 38
Joined: Mon Jun 19, 2017 6:00 pm

Re: Need help in Grub configure during upgrade

#24 Post by arky217 » Sat Nov 10, 2018 12:27 pm

oops wrote:
Sat Nov 10, 2018 12:11 pm
arky217 wrote:
Sat Nov 10, 2018 12:03 pm
...Ok, spacebar; I agree, not very intuitive.

But now, since I chose 'no' not to install grub anywhere, what do I do now to install the updated grub ?
You can first check the grub version installed, should be this one:

Code: Select all

# grub-install --version
grub-install (GRUB) 2.02~beta3-5+deb9u1
I did a grub-install --version command and my version is like above, 2.02~beta3-5+deb9u1

When I installed MX, I installed grub to /dev/sda,
So since my version is the same as the one that you said is the correct one,
do I do nothing or do I reinstall grub.

And how can my grub be the correct version since I chose 'no' not to install grub on the update ?
Did you mean that 2.02~beta3-5+deb9u1 is the correct version before the update or after the update ?
If before the update, should I use the MX tool to reinstall grub ?

And if I do that, will it just install the same grub as before the update
or will it install the updated grub ?

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 2000
Joined: Wed Apr 11, 2018 5:09 pm

Re: Need help in Grub configure during upgrade

#25 Post by fehlix » Sat Nov 10, 2018 12:34 pm

arky217 wrote:
Sat Nov 10, 2018 12:27 pm
And how can my grub be the correct version since I chose 'no' not to install grub on the update ?
Did you mean that 2.02~beta3-5+deb9u1 is the correct version before the update or after the update ?
If before the update, should I use the MX tool to reinstall grub ?

And if I do that, will it just install the same grub as before the update
or will it install the updated grub ?
Ok, the term "install" is used twofold: The package grub got "installed" and the grub-bootloader got "installed" into your grub device. :confused: And you got confused :footinmouth:

Ok to "install" the grub-boot loader do

Code: Select all

sudo grub-install /dev/sdX
where /dev/sdX is e.g. /dev/sda or whatever your boot device is:

Code: Select all

sudo grub-install /dev/sda
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
zorzi
Forum Regular
Forum Regular
Posts: 118
Joined: Fri Apr 20, 2018 7:41 pm

Re: Need help in Grub configure during upgrade

#26 Post by zorzi » Sat Nov 10, 2018 1:53 pm

fehlix wrote:
Sat Nov 10, 2018 10:57 am
zorzi wrote:
Sat Nov 10, 2018 10:54 am
I confirm that last grub update replaced MX specific grub configuration file.
Which file?
Sorry. I meant that there is now a new grub conf file in /etc/default, side to the grub.ucf-old file you mentionned in a previous post. I should be able to proceed.

Grub update was confusing when asking to replace grub conf file . I should read better what's inside terminal...

User avatar
Atlanelan
Forum Novice
Forum  Novice
Posts: 42
Joined: Mon Dec 18, 2017 9:52 pm

Re: Need help in Grub configure during upgrade

#27 Post by Atlanelan » Sat Nov 10, 2018 7:36 pm

fehlix wrote:
Sat Nov 10, 2018 9:31 am
Atlanelan wrote:
Sat Nov 10, 2018 8:47 am
Thanks for your reply.I did an apt update and upgrade.During the upgrade process this dialogue appears on the treminal.I cant remember fully.Something like Grub is configuring, choose a device to install grub.I hit alt+enter.Next dialogue shows /dev/sda,/dev/sdb and /dev/sdb1 /.I choose /dev/sdb and hit enter then it says you choose not to install grub to any device and some warnings like system may not boot etc.I tried with different key compinations to choose /dev/sdb.Nothing works.However i close the terminal and restart pc.Everything is fine.
You would select target device to install grub to ( i.e. the grub bootloader)
by selecting your current boot-device with pressing the space-bar to select.
The spacebar will mark the selected device with an asteriks [*].
You would than press ENTER to proceed ( or TAB-key to highlight [OK] and press ENTER).
If you "killed" or other wise broken out from the grub-installation,
you shall better re-install the "new" grub bootloader again like this for you boot-device /dev/sdb:

Code: Select all

sudo grub-install /dev/sdb
I ran apt update and upgrade again and followed the steps you mentioned above.Grub-pc installed.But it says 'Installing for i386-pc platform'. :confused:
@mx:~
$ sudo apt upgrade
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
@mx:~
$ sudo dpkg --configure -a
Setting up grub-pc (2.02~beta3-5+deb9u1) ...
Installing for i386-pc platform.
Installation finished. No error reported.
Generating grub configuration file ...
using custom appearance settings
Found background image: /usr/share/backgrounds/MXLinux/grub/worldmap.png
Found linux image: /boot/vmlinuz-4.15.0-1-amd64
Found initrd image: /boot/initrd.img-4.15.0-1-amd64
Found Arch Linux on /dev/sdb4
Found linux image: /boot/vmlinuz-4.15.0-1-amd64
Found initrd image: /boot/initrd.img-4.15.0-1-amd64
Found Arch Linux on /dev/sdb4
Found memtest86+ image: /boot/memtest86+.bin
Found Arch Linux on /dev/sdb4
Found memtest86+ image: /boot/memtest86+.bin
done
Setting up network-manager-gnome (1.4.4-1+deb9u1) ...
Processing triggers for initramfs-tools (0.130) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-1-amd64
I: The initramfs will attempt to resume from /dev/sdb2
I: (UUID=b7edc25a-d5d5-42be-8532-0b82fda33db7)
I: Set the RESUME variable to override this.
Processing triggers for libc-bin (2.24-11+deb9u3) ...
@mx:~

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 2000
Joined: Wed Apr 11, 2018 5:09 pm

Re: Need help in Grub configure during upgrade

#28 Post by fehlix » Sat Nov 10, 2018 7:55 pm

Atlanelan wrote:
Sat Nov 10, 2018 7:36 pm
I ran apt update and upgrade again and followed the steps you mentioned above.Grub-pc installed.But it says 'Installing for i386-pc platform'. :confused:
That's perfect. Grub version for BIOS booting is "i386-pc", regardless of the OS versions it running on?
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
Atlanelan
Forum Novice
Forum  Novice
Posts: 42
Joined: Mon Dec 18, 2017 9:52 pm

Re: Need help in Grub configure during upgrade

#29 Post by Atlanelan » Sat Nov 10, 2018 8:09 pm

fehlix wrote:
Sat Nov 10, 2018 7:55 pm
Atlanelan wrote:
Sat Nov 10, 2018 7:36 pm
I ran apt update and upgrade again and followed the steps you mentioned above.Grub-pc installed.But it says 'Installing for i386-pc platform'. :confused:
That's perfect. Grub version for BIOS booting is "i386-pc", regardless of the OS versions it running on?
:puppy:
Fine.Im marking this post 'Solved'.Thanks everybody and felix.

Post Reply

Return to “MX Help”