You are not logged in.

#1 2024-11-29 14:20:41

as27
Member
Registered: 2024-11-29
Posts: 9

Cant boot after install

I dont get the boot option for arch after the install and i have no errorcodes so i will list the install prosess
(also system is UEFI)

i use cfdisk to partition

These to mount the partitions:
mount /dev/sda3 /mnt
mkdir -p /mnt/boot/efi
mount /dev/sda1 /mnt/boot/efi
swapon /dev/sda2

and last but not least grub for the boot mgr
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg

i suspect that it doesnt recognize boot partition but i dont know why as i am fairly new to Arch

Offline

#2 2024-11-29 14:23:10

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,130

Re: Cant boot after install

If the system is UEFI, why didn't you follow the UEFI instructions on the GRUB wiki page?

Offline

#3 2024-11-29 14:33:35

cryptearth
Member
Registered: 2024-02-03
Posts: 1,030

Re: Cant boot after install

https://wiki.archlinux.org/title/GRUB#UEFI_systems

the install command you used is not the one required on uefi systems

Offline

#4 2024-11-29 15:24:41

as27
Member
Registered: 2024-11-29
Posts: 9

Re: Cant boot after install

sorry someone told me to do it this way. I guess i was miss informed

Offline

#5 2024-11-29 16:41:54

as27
Member
Registered: 2024-11-29
Posts: 9

Re: Cant boot after install

grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id=GRUB and grub-install /dev/sda
do the same???
just one is explicitly spesifiying the location that the other one can find
also looking through the log of things i have tried i found that i have done the same as on the wiki with the same result

Offline

#6 2024-11-29 16:46:22

cryptearth
Member
Registered: 2024-02-03
Posts: 1,030

Re: Cant boot after install

as27 wrote:

someone told me

who?
rule of thumb:
first: consult the wiki https://wiki.archlinux.org/title/Installation_guide
second: consult the bbs
2.1: use the search function before starting a new topic
if you can't find a solution after searching the wiki snd the forums - create a new topic

things to avoid:
- random youtube videos
- random sources other than the wiki, the bbs or for external software its official documentation

Offline

#7 2024-11-29 18:49:32

dakota
Member
Registered: 2016-05-20
Posts: 344

Re: Cant boot after install

as27 wrote:

grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id=GRUB and grub-install /dev/sda
do the same???

Why do you think they do the same thing? Doesn't "grub-install" invoke a scrip that is expecting certain parameters to be provided in a certain order?

In the first case, you are specifying 3 parameters; in the second case, only one. (And the one that you are providing doesn't make any sense. You are specifying a drive, not a mount point.)

as27 wrote:

also looking through the log of things i have tried i found that i have done the same as on the wiki with the same result

Please share the exact commands you used and the resulting feedback or error messages.

Cheers,


"Before Enlightenment chop wood, carry water. After Enlightenment chop wood, carry water." -- Zen proverb

Offline

#8 2024-11-29 19:05:39

as27
Member
Registered: 2024-11-29
Posts: 9

Re: Cant boot after install

dakota wrote:

Please share the exact commands you used and the resulting feedback or error messages.

did i not in the last post?

Last edited by as27 (2024-11-29 19:06:35)

Offline

#9 2024-11-29 19:08:01

as27
Member
Registered: 2024-11-29
Posts: 9

Re: Cant boot after install

cryptearth wrote:
as27 wrote:

someone told me

who?
rule of thumb:
first: consult the wiki https://wiki.archlinux.org/title/Installation_guide
second: consult the bbs
2.1: use the search function before starting a new topic
if you can't find a solution after searching the wiki snd the forums - create a new topic

things to avoid:
- random youtube videos
- random sources other than the wiki, the bbs or for external software its official documentation

*_* im taking an education in IT it was my teacher

i also want to add the link for the official grub install manual and i would think espesialy dakota would find this interesting
https://www.gnu.org/software/grub/manua … 02dinstall

Last edited by as27 (2024-11-29 19:13:48)

Offline

#10 2024-11-29 19:14:55

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,130

Re: Cant boot after install

I sure hope you didn't give the actual commands. If you actually used "--efi-directory=esp", the problem should be really obvious. Go back and read the section of the wiki again, don't just copy/paste commands.

Your teacher was giving you BIOS instructions, not UEFI. And out of date BIOS instructions. Hopefully either you or they misunderstood.

Offline

#11 2024-11-29 19:35:56

as27
Member
Registered: 2024-11-29
Posts: 9

Re: Cant boot after install

Scimmia wrote:

I sure hope you didn't give the actual commands. If you actually used "--efi-directory=esp", the problem should be really obvious. Go back and read the section of the wiki again, don't just copy/paste commands.

Your teacher was giving you BIOS instructions, not UEFI. And out of date BIOS instructions. Hopefully either you or they misunderstood.

no i copy pasted from wiki for this forum post i replaced esp with efi as it is the mounting point was i correct in doing so?

also my teacher was unsure of how to do it what im mostly refering to when i say my teacher told me is the other guy saying "random sources other than the wiki"

Last edited by as27 (2024-11-29 19:38:21)

Offline

#12 2024-11-29 20:16:05

as27
Member
Registered: 2024-11-29
Posts: 9

Re: Cant boot after install

After reading the wiki some more it should be boot not efi or /boot/efi am i right?

Last edited by as27 (2024-11-29 20:16:42)

Offline

#13 2024-11-29 20:29:22

seth
Member
Registered: 2012-09-03
Posts: 59,180

Re: Cant boot after install

The wiki wrote:

Mount the EFI system partition and in the remainder of this section, substitute esp with its mount point.

So did you mount the ESP to /boot/efi ?

Random remarks:
- The BBS isn't authorative nor curated. You stand a decent chance that someone will catch it, but you still may receive bad advice here.
- Your teacher should probably move their ass here, because we're not running their class so it'll likely be helpful for the teacher to stop teaching nonsense that will only make all students show up to get their stuff fixed and ask questions that teacher should™ (yes, I know) be able to answer.

Offline

#14 2024-11-29 21:00:18

cryptearth
Member
Registered: 2024-02-03
Posts: 1,030

Re: Cant boot after install

as27 wrote:
cryptearth wrote:
as27 wrote:

someone told me

who?

*_* im taking an education in IT it was my teacher

either your teacher is living in the past and last when they installed grub uefi wasn't a thing yet - or they're not qualified
it may sound harsh but have a look over at coderanch - the same beginner questions keep asked over and over and over again - to me it seems most "it students" don't even learn how to properly search for informations but waste google for just findibg the next forum and instead of giving the slightest thought to "maybe someone else had a similar issue?" the very first post has this "I'm the first in the universe who got this problem"

my teacher was unsure

well - what does he teach you? programmin/software engineering? or real IT starting with basics like Z1 in the 40's?

Offline

#15 2024-11-29 21:30:42

as27
Member
Registered: 2024-11-29
Posts: 9

Re: Cant boot after install

as27 wrote:

After reading the wiki some more it should be boot not efi or /boot/efi am i right?

seth wrote:
The wiki wrote:

Mount the EFI system partition and in the remainder of this section, substitute esp with its mount point.

So did you mount the ESP to /boot/efi ?

Yes i did "grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB" and got the error "Could not prepare Boot variable: Invalid argument grub-install: error: efibootmgr failed to register the boot entry: Input/output error." and stopped because i was tired

seth wrote:

- Your teacher should probably move their ass here, because we're not running their class so it'll likely be helpful for the teacher to stop teaching nonsense that will only make all students show up to get their stuff fixed and ask questions that teacher should™ (yes, I know) be able to answer.

cryptearth wrote:

well - what does he teach you? programmin/software engineering? or real IT starting with basics like Z1 in the 40's?

He doesnt teach linux in reality he's a development teacher and teaches things like html css js, python, sql and some managment (unsure of the translation) and he is the only one with some recent news about linux. the other teachers that actually teach linux and unix are oldheads that are too stuck up with the "good old days" to actually know about any recent tech (which is sad as this affecting my education). with that said he barely knows what Arch is and is only telling me what he knows so i can try and fail

I should add that the reason im doing this is because i have a intrest in Arch and want to get more proficient at linux so i am doing this as a sort of "self study" so none of my teachers is teaching in Arch as fun as it would be

Last edited by as27 (2024-11-29 21:35:10)

Offline

#16 2024-11-29 21:45:48

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,356
Website

Re: Cant boot after install

as27 wrote:

i did "grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB" and got the error "Could not prepare Boot variable: Invalid argument grub-install: error: efibootmgr failed to register the boot entry: Input/output error."

That could be due to efivarfs not being mounted correctly, follow this advice to fix that: https://wiki.archlinux.org/title/Unifie … t_efivarfs

If efivarfs is mounted correctly then perhaps try deleting any old, unused NVRAM boot entries with the efibootmgr command.

Adding the --removable flag for the grub-install command should allow GRUB to start if there are no specific NVRAM entries at all (https://wiki.archlinux.org/title/GRUB#D … _boot_path).

Note that the UEFI grub-install command presumes the ESP is mounted under /boot/efi/ so you don't need to specify that.


Para todos todo, para nosotros nada

Offline

#17 2024-11-30 09:22:12

as27
Member
Registered: 2024-11-29
Posts: 9

Re: Cant boot after install

Thank you so much

Offline

Board footer

Powered by FluxBB