You are not logged in.

#1 2020-09-23 00:58:40

nouphal763
Member
Registered: 2020-09-22
Posts: 4

I keep booting into bios after I remove the live installation media

I followed the installation wiki guide but I can't seem to log on. After I reboot and I remove the installation media (USB ) system boots into bios, if I keep it on and don't remove it I get booted into the media itself. I have secure erased the disk multiple times in bios and installed arch multiple times. I believe I have an issue with my bootloader. I have installed grub as a bootloader. Here is my reasoning. If I mount my /dev/sdx to /mnt  and chroot into it I can see everything is intact. whole system is there including grub. once I umount -R /dev/sdx and reboot nothing happens and I'm stuck on bios. I have been at it for the past couple of days but I am missing something


I understand this doesn't help because I didn't post the full error code output or any output whatsoever, but I can't even pass the bios screen to get to my system.



this how I installed my system


timedatectl set-ntp true
fdisk /dev/sda
g
n
1
starting sector default
last sector +512M
t
1
1
n
2
starting sector default
last sector +16G (I have 16G ddr3 ram)
t
2
19
n(root)
3
starting sector default
last sector default
w

 



mkfs.fat -F32 /dev/sda1
mkswap /dev/sda2
swapon /dev/sda2
mkfs.ext4 /dev/sda3
mount /dev/sda3 /mnt
pacstarp /mnt base base-devel linux linux-frimware nano ### wiki said I can replace this with desire kernel but I couldn't find the syntax, any help would be appreciated##
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
ln -sf /usr/share/zoneinfo/REGION/CITY /etc/localtime
hwclock --systohc
nano /etc/locale.gen
locale-gen
nano /etc/hostname
nano /etc/hosts
127.0.0.1     localhost
::1                localhost
127.0.1.1     x.localdomain     x
passwd
new passwd
retype passwd
useradd -m y
passwd y
new passwd
retype passwd
usermod -aG wheel y
pacman -S sudo
EDITOR=nano visudo
mkdir /boot/EFI
mount /dev/sda1 /boot/EFI
pacman -S efibootmgr dosfstools os-prober mtools grub
mkinitcpio -P<== i have installed arch with and without this command, wiki says its not necessary pacstrap runs this.
grub-install --target=x86_64-efi --bootloader-id=grub_uefi --recheck
grub-mkconfig -o /boot/EFI
pacman -S network manager
systemctl enable NetworkManager
exit
umount -R /mnt
reboot 

I remove the media and I'm stuck in bios. I have done these steps close to 20 times since last Thursday. I typed all of those commands from memory please help me I can't boot into my system. 

how can I provide any more info needed such as command output if I can't get into the system to clip the output of a command.

Last edited by nouphal763 (2020-09-23 03:47:38)

Offline

#2 2020-09-23 01:08:26

loqs
Member
Registered: 2014-03-06
Posts: 18,126

Re: I keep booting into bios after I remove the live installation media

Is the installation media booting in UEFI mode?  Unified_Extensible_Firmware_Interface#UEFI_variables_support_in_Linux_kernel will be mouned if it is.
If it is what is the output of

efibootmgr -v

Edit:
Please use code tags for commands and their outputs e.t.c.

nouphal763 wrote:

pacstarp /mnt base base-devel linux(wiki said I can replace this with desire kernel but I couldn't find the syntax, any help would be appreciated) linux-firmware nano

To change the kernel change the package name.  You can have multiple kernels installed.

nouphal763 wrote:

mkinitcpio -P <== i have installed arch with and without this command, wiki says its not necessary pacstrap runs this.

Installation Guide wrote:

Creating a new initramfs is usually not required, because mkinitcpio was run on installation of the kernel package with pacstrap.
For LVM, system encryption or RAID, modify mkinitcpio.conf(5) and recreate the initramfs image

grub-install --target=x86_64-efi --bootloader-id=grub_uefi --recheck 

Where did you find --recheck option mentioned?  It also misses specifying the ESP location.

Last edited by loqs (2020-09-23 01:27:54)

Offline

#3 2020-09-23 03:13:34

nouphal763
Member
Registered: 2020-09-22
Posts: 4

Re: I keep booting into bios after I remove the live installation media

my installtion media was MBR. I will reinstall again thank you.

 grub-install --target=x86_64-efi --bootloader-id=grub_uefi --recheck 

code above is from youtube. wiki said install linux-capable boot loader and linked to arch boot process. I saw grub was the best or at least best option for me (uefi,gpt,ext4). I looked up youtube and installed it or maybe I thought I installed it, since I vaguely understand what that line is doing. I'd appreciated it if you can let me know or point to reading material on how I should download it for my reinstall.

I learned something new today. Formatting code blocks, thanks for that as well.

Offline

#4 2020-09-23 05:03:21

solskog
Member
Registered: 2020-09-05
Posts: 429

Re: I keep booting into bios after I remove the live installation media

Pls don't reinstall again, just boot from USB archiso and mount your drive:

# mount /dev/sda3 /mnt/
# mount /dev/sda1 /mnt/boot/efi
# arch-chroot /mnt/

You are missing --efi-directory option:

# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub-efi

then regenerate grub config file:

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

Offline

#5 2020-09-23 09:49:47

loqs
Member
Registered: 2014-03-06
Posts: 18,126

Re: I keep booting into bios after I remove the live installation media

GRUB#Installation_2

solskog have you read http://slash7.com/2006/12/22/vampires/ #2: Cease Enabling Behavior?

Offline

#6 2020-09-23 12:34:13

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: I keep booting into bios after I remove the live installation media

nouphal763 wrote:

code above is from youtube.

Youtube guides are not supported here -- they are almost always outdated or just wrong. Use the Installation Guide and the wiki. Ask questions if you get stuck, but do not use youtube.

I learned something new today. Formatting code blocks, thanks for that as well.

You don't need code tags around every line. Just use one [ code ] to start where you are posting code, post all the lines, then close it with one [ /code] tag (without the spaces).

Offline

#7 2020-09-23 19:09:26

nouphal763
Member
Registered: 2020-09-22
Posts: 4

Re: I keep booting into bios after I remove the live installation media

# grub-install --target=x86_64-efi --efi-directory=esp --removable

line above did it for me.I have MSI motherbaord and they want grub uefi on an specefic location. more on the link below.


https://wiki.archlinux.org/index.php/GRUB/EFI_examples

Offline

#8 2020-09-23 19:16:35

nouphal763
Member
Registered: 2020-09-22
Posts: 4

Re: I keep booting into bios after I remove the live installation media

2ManyDogs wrote:
nouphal763 wrote:

code above is from youtube.

Youtube guides are not supported here -- they are almost always outdated or just wrong. Use the Installation Guide and the wiki. Ask questions if you get stuck, but do not use youtube.

I learned something new today. Formatting code blocks, thanks for that as well.

You don't need code tags around every line. Just use one [ code ] to start where you are posting code, post all the lines, then close it with one [ /code] tag (without the spaces).


thank you

Offline

Board footer

Powered by FluxBB