You are not logged in.

#1 2021-04-05 06:22:16

matzart
Member
Registered: 2021-04-05
Posts: 7

[SOLVED] Grub doesn’t work after installation

I wanted to install Arch on a bios/MBR machine. I did all the steps and installed grub and exited the chroot and unmounted and shutdown instead of reboot. Then after I turned the machine on, nothing was there. Grub menu didn’t come up.
I also installed amd-ucode before generating grub config file in chroot.

Edit: solved in post #10

Last edited by matzart (2021-05-01 00:13:11)

Offline

#2 2021-04-05 08:29:35

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,339

Re: [SOLVED] Grub doesn’t work after installation

You need to provide more actual information about what you did: Doesn't work is not an error message

Did you make sure you actually set up a dos/MBR partition table? Which actual command did you use to install grub? What's your partition layout? E.g.

lsblk -f

https://wiki.archlinux.org/index.php/Li … in_clients Did you double check your BIOS boot so it boots from the correct device?

Last edited by V1del (2021-04-05 08:30:01)

Online

#3 2021-04-05 08:56:58

matzart
Member
Registered: 2021-04-05
Posts: 7

Re: [SOLVED] Grub doesn’t work after installation

V1del wrote:

You need to provide more actual information about what you did: Doesn't work is not an error message

Did you make sure you actually set up a dos/MBR partition table? Which actual command did you use to install grub? What's your partition layout? E.g.

lsblk -f

https://wiki.archlinux.org/index.php/Li … in_clients Did you double check your BIOS boot so it boots from the correct device?


Thanks for the response
I made two primary partitions: 1 root partition with ext4 filesystem and one swap partition. Starting from the 2048th byte. The output of

fdisk -l /dev/sda

gives me

Disklabel type: dos
Disk identifier: 0x2843f0da

Device        Boot        Type
/dev/sda1                    Linux swap / Solaris
/dev/sda2                    Linux

And for

lsblk -f

it gives the filesystems I mentioned and FSVER which is 1 for the swap partition and 1.0 for the root partition. And there’s nothing under LABEL.

And I installed grub with this command:

grub-install --target=i386-pc /dev/sda

And yes I checked my BIOS boot settings.

Last edited by matzart (2021-04-05 09:17:53)

Offline

#4 2021-04-05 09:23:31

micronetic
Member
Registered: 2020-02-26
Posts: 40

Re: [SOLVED] Grub doesn’t work after installation

and you have to do this command too, looks like you didn't:

grub-mkconfig -o /boot/grub/grub.cfg

https://wiki.archlinux.org/index.php/GR … allation_2

Last edited by micronetic (2021-04-05 09:58:57)

Offline

#5 2021-04-05 09:32:11

matzart
Member
Registered: 2021-04-05
Posts: 7

Re: [SOLVED] Grub doesn’t work after installation

micronetic wrote:

Installation guide says:

grub-install --target=i386-efi --efi-directory=esp --bootloader-id=GRUB

I guess that’s for UEFI systems.

micronetic wrote:

and you have to do this command too, looks like you didn't:

grub-mkconfig -o /boot/grub/grub.cfg

https://wiki.archlinux.org/index.php/GR … allation_2

I did this and generated this file.

Last edited by matzart (2021-04-05 09:34:30)

Offline

#6 2021-04-05 09:41:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,339

Re: [SOLVED] Grub doesn’t work after installation

Do you get to GRUB? Even with a broken config you'd still see the GRUB console. Did the GRUB install exit normally? What exact model/mainboard is this?

Online

#7 2021-04-05 09:45:17

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [SOLVED] Grub doesn’t work after installation

Check the boot order in the bios


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#8 2021-04-05 09:57:37

micronetic
Member
Registered: 2020-02-26
Posts: 40

Re: [SOLVED] Grub doesn’t work after installation

matzart wrote:
micronetic wrote:

Installation guide says:

grub-install --target=i386-efi --efi-directory=esp --bootloader-id=GRUB

I guess that’s for UEFI systems.

Yeah sorry, I just noticed you are not on efi.

Offline

#9 2021-04-05 10:06:01

matzart
Member
Registered: 2021-04-05
Posts: 7

Re: [SOLVED] Grub doesn’t work after installation

V1del wrote:

Do you get to GRUB? Even with a broken config you'd still see the GRUB console. Did the GRUB install exit normally? What exact model/mainboard is this?

Grub install exit was “Installation finished. No error reported”
No I don’t get to grub. When I turn the computer on, “choose boot option” menu and BIOS setting comes. I chose boot from HDD and other boot options and nothing happens and it goes back to that menu again. I don’t even get to grub rescue shell.
I’m on a Lenovo Z50-75 laptop and I had been using Manjaro for years in this same machine.

Offline

#10 2021-04-05 10:09:25

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Grub doesn’t work after installation

Try

# parted /dev/sda set 1 boot on

Jin, Jîyan, Azadî

Offline

#11 2021-04-05 10:21:35

matzart
Member
Registered: 2021-04-05
Posts: 7

Re: [SOLVED] Grub doesn’t work after installation

Head_on_a_Stick wrote:

Try

# parted /dev/sda set 1 boot on

Thanks. I did this and updated fstab and issue resolved.

Offline

#12 2021-04-05 11:59:23

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,637
Website

Re: [SOLVED] Grub doesn’t work after installation

Please remember to mark your thread as solved by editing the first post and amending the topic title.

https://gitlab.archlinux.org/archlinux/ … ow-to-post


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB