#Cannot boot into arch after installing windows on same ssd

82 messages · Page 1 of 1 (latest)

mossy trellis
#

Yes, that's usually what happens when you install Windows after Linux. Windows eats your EFI

#

Are you sure you are chrooting into the correct partition? Show us what you're doing

quiet steeple
#

i heard about that after researching

#

Okay sure

#

so i booted into arch usb

mossy trellis
#

Also, what's your filesystem?

#

Is it btrfs, by any chance?

quiet steeple
#

no

#

my efi partition is vfat/fat32 and my linux root ext4

mossy trellis
#

Show lsblk -f

#

And how you mount it and try chrooting

quiet steeple
#

also id be down to vc meanwhile, would make it easier for me

mossy trellis
#

Yeah I can't unfortunately

#

So which one is your Linux root?

quiet steeple
#

well forst thing, i mount nvme0n1p3 (which is indeed my main partition) to /mnt

mossy trellis
#

And ls /mnt says it's empty?

quiet steeple
#

no output

#

oh wait

#

my bad

#

its not empty

#

bin boot dev etc gabe lostfound proc run sys tmp var

mossy trellis
#

And what does arch-chroot /mnt do?

quiet steeple
#

failed to run command, /bin/bash permission denied

mossy trellis
#

Did you do something with the permissions?

quiet steeple
#

nothing at all

mossy trellis
#

Is the other ext4 partition your home partition?

quiet steeple
#

uhh im not even sure what it is

#

how can i see the size of the partitions

mossy trellis
quiet steeple
#

ohh wait im pretty sure p2 might be like my system files

#

oh holdon

#

let me try smt

#

oh my god

#

im so sorry for my stupidness

mossy trellis
#

What?

quiet steeple
#

turns out p2 was my entire system files, i mounted it and now theres alot more folders and files, it allowed me to chroot

#

p3 was just like my downloads, configs etc

#

i forgot that when i installed arch i made p2 50 gigs for my system files

mossy trellis
#

You have a Linux structure like bin boot dev on your home partition?

quiet steeple
#

p3 is everythign else

mossy trellis
#

So something must've gone wrong

quiet steeple
#

hmm

quiet steeple
#

i used super grub2disk to boot into arch limux, and ot said something sbout device mapper missing from kernel

mossy trellis
#

Mount your EFI partition

quiet steeple
#

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --recheck
grub-mkconfig -o /boot/grub/grub.cfg

mossy trellis
#

/boot/efi is deprecated, use /boot

#

And mount it under /boot as well

#

But yeah, that

#

Also, at this point you might wanna make a separate EFI partition for Linux

#

Because every so often windows might just wipe it with its own shit

quiet steeple
#

its complainign "cant fijd device for /boot (is /dev mounted?)"

mossy trellis
#

The more important question is: is /boot mounted?

#

Show your lsblk again

quiet steeple
mossy trellis
#

And what are you trying to do now? Is that the output from the grub-install command?

mossy trellis
#

Oh okay

#

Yes, you mounted it under /boot/efi so it will be available from /boot/efi and not /boot

quiet steeple
#

ah

#

same error

#

ls boot/efi shows grub in there tho?

#

should i try

sudo systemctl reboot --boot-loader-entry=grub

mossy trellis
#

Oh

#

No

#

The first error message was about /dev not being mounted was right

#

But i didn't know that you did chroot instead of arch-chroot

quiet steeple
#

oh

mossy trellis
#

Which mounts /dev for you

quiet steeple
#

ohhh

#

ok one minute

#

okay install finished

quiet steeple
#

what now

#

grubs there now but it only shows uefi firmware settings

quiet steeple