#[Solved] Uncertain if grub is configured correctly.

200 messages · Page 1 of 1 (latest)

long wave
#

I'm currently installing archlinux to dual boot with windows 10. My windows install is bios install (disk is dos label). I installed grub, os-prober and enabled os-prober to search for other systems in the appropriate file.
When I ran the mkconfig for grub, grub detected:
linux image
initrd image
warning that os-prober is enabled and will look for other systems.
Added boot menu entry for UEFI Firmware Settings (I assume my motherboard)
Done

So I was expecting it to detect my mounted windows 10 system drive as well. Any idea why it is not detecting it and how I can fix that?

still hornet
#

So I was expecting it to detect my mounted windows 10 system drive as well. Any idea why it is not detecting it and how I can fix that?

That has nothing to do with dual boot

#

did u mount them during the arch install process?

long wave
#

yes

still hornet
#

cat /etc/fstab

long wave
#

I just used lsblk again and it is mounted to /windows10

#

ok will run that

#

I have 3 filesystems there

#

the main linux one mounted to /
the win one mounted to /windows10
and the swap one

still hornet
#

so the text in that file tells linux what partitions to mmount where on boot

#

show me the output

fossil scaffold
#

i encountered that problem as well

still hornet
#

.s rs

lavish fossilBOT
fossil scaffold
#

the SOLUTION was

#

to boot from hard disk on your installed arch machine

#

instead of the current live usb

#

and then redo the

#

grub-mkconfig

long wave
#

ok so should I reboot and then redo the config to allow me to boot into windows as well

#

I will try that

fossil scaffold
#

yeah from hard disk

long wave
fossil scaffold
#

its basically

#

pastebin

#

but from the command line

long wave
#

oh ok, I will do that after I try booting from the harddrive

#

unfortunately, I while trying to boot from the harddrive I encountered another problem, I'm stuck at Loading initial ramdisk now

fossil scaffold
#

did you generate your fstab properly

#

you can try and continue off where you last left off

#

by using the live usb once again

#

and use lsblk

#

to see your partitions

#

then mount then like when you first made them to /mnt

long wave
#

can I just power it off with the button?

fossil scaffold
#

yes

#

it shouldnt break anything

#

if you force shutdown it

long wave
#

should I generate the fstab again

#

it seems like it was before

#

I guess I need to find how to use the .s rs command to print the result

fossil scaffold
#

did you

#

mount your stuff ?

long wave
long wave
#
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/nvme0n1p4
UUID=61858c83-e70f-4ada-97cd-804cf69997cd    /             ext4          rw,relatime    0 1

# /dev/nvme0n1p1 LABEL=SSD
UUID=9E745F6D745F4765    /windows10    ntfs          rw,nosuid,nodev,user_id=0,group_id=0,allow_other,blksize=4096    0 0

# /dev/nvme0n1p3
UUID=67efd4e8-4b19-4c09-b632-c9f5aa36694c    none          swap          defaults      0 0
fossil scaffold
#

did you install the linux package?

long wave
#

yes

#

oh but I think there could have been an issue with it

#

I remember it was telling me that packages were empty

fossil scaffold
#

the initial ramdisk is made

#

by the linux package hook

#

try and reinstall the linux package

long wave
#

like some file with package extension contained no packages

#

ok

#

do I just call the same command I did before

fossil scaffold
#

are you in the chroot?

#

or are you outside

#

(chroot is arch-chroot)

long wave
#

outside currently

fossil scaffold
#

chroot in

#

arch-chroot /mnt/blahblah

long wave
#

done

fossil scaffold
#

does the pwd command work

long wave
#

when I type pwd

#

I get /

fossil scaffold
#

thats good

#

see if you have internet

#

ping archlinux.org

#

there should be results

#

ctrl + c to stop pinging

long wave
#

getting everything

fossil scaffold
#

alright

#

now try and reinstall the linux package now

#

sudo pacman -Syu linux

long wave
#

oof I pressed the windows key and I can't type anymore

#

it happened to me before as well

fossil scaffold
#

💀

long wave
#

is that normal?

#

ok somehow fixed it

#

I had to press ctrl+win+c and it got fixed, dunno if that has happened to others

#

so it reinstalled

#

here the same warning as before

fossil scaffold
#

show the warning

long wave
#

present file '/etc/mkinitcpio.d/linux.preset' is empty or does not contain any presents

#

that is the warning

fossil scaffold
#

do

#

sudo rm /etc/mkinitcpio.d/linux.preset

#

and redo'

#

sudo pacman -Syu linux

long wave
#

ok that error is no longer there

#

I have other errors

fossil scaffold
#

what are the other errors

long wave
#

possible missing firmware "same name"

fossil scaffold
#

for that

#

you'll need to install

#

linux-firmware

#

its basically the drivers

#

for most of your stuff

long wave
#

xhci_pci

#

qed

fossil scaffold
#

oh

long wave
#

wd719x

fossil scaffold
#

thats just generating the

#

ramdisk

#

those are harmless

long wave
#

oh ok

#

I did install linux-firmware before, but I guess better reinstall again

fossil scaffold
#

you can if you want to

#

sudo pacman -S linux-firmware linux

long wave
#

did it it was fast

fossil scaffold
#

the "errors" your receiving

#

section 5.4 has the fix

long wave
#

thank you

fossil scaffold
#

but its really a cosmetic issue

#

so you can skip it for now

long wave
#

ok do I have to redo everything I've done so far from the moment I installed linux

#

or is grub and everything still installed?

fossil scaffold
#

grub and everything should still be stilled

#

installed*

#

you can check

long wave
#

ok so should I just reboot

fossil scaffold
#

not yet

#

can you show the dirs of /

#

ls /

long wave
#

bin boot

#

dev

#

etc

fossil scaffold
#

ok yeah

long wave
#

home

fossil scaffold
#

cd /boot

long wave
#

lib

fossil scaffold
#

cd /boot

#

and then run ls

long wave
#

yeah I'm there

fossil scaffold
#

and show the result

long wave
#

amd ucode

#

grub

#

initramfs linux fallback img

fossil scaffold
#

vmlinuz

#

too?

long wave
#

the ucode is also img

#

yes

fossil scaffold
#

initramfs is your initial ram disk btw

long wave
#

and initramfs linux without fallback

fossil scaffold
#

okay then

#

you should

#

redo grub-mkconfig

long wave
#

ok

fossil scaffold
#

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

#

after its done you can exit out of the chroot

#

exit

#

unmount everything umount -a

long wave
#

wait I need to go back to the base directory too right

fossil scaffold
#

and then reboot to hardddisk

long wave
#

I was in boot

fossil scaffold
#

it shouldnt matter

#

what did the

fossil scaffold
long wave
#

ok it found the same stuff as before without the win dir, I will do the reboot now

#

basically it found amd ucode

#

vmlinuz linux

#

found initrd

fossil scaffold
#

alright

long wave
#

found fallback initrd

fossil scaffold
#

reboot and pray it gets past the initial ramdisk

#

tux 🙏

long wave
#

instead of reboot can I do poweroff

fossil scaffold
#

sure you can

long wave
#

and then remove the flash and boot

fossil scaffold
#

👍

long wave
#

I got to the login this time

#

ok I'm in

#

time to redo the config right

#

the mnt are still correct

fossil scaffold
#

alright

#

you should do

#

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

#

and it should detect windows

long wave
#

it did

#

nice

#

thanks alot folks!

#

both for the help, and also because I learned a lot!

fossil scaffold
#

alright

#

when you reboot you should see the option now

long wave
#

could I ask one final question before closing this threat? Should I do the microcode commands now that grub is installed and everything is ready

fossil scaffold
#

i believe grub already detected your microcode packages

long wave
#

ah I see

#

thanks

#

I will reboot now just to see if I can go back to windows

fossil scaffold
#

if it says

fossil scaffold
#

then it should be automatically added if grub-mkconfig says that

long wave
#

I see

#

ok time to reboot

#

wooohooo I can boot back to windows as well now, time to finish the linux install.

#

thanks again I will make this thread solved now

#

[Solved] Uncertain if grub is configured correctly.