You are not logged in.

#1 2018-06-07 12:58:15

doomguy84
Member
Registered: 2018-05-09
Posts: 49

[SOLVED] Grub and kernel deleted after Windows 10 installation

This is my situation:

/dev/sda1 - fat32 efi esp partition (where kernels and grub settings were stored)
/dev/sda2 - btrfs archlinux (all files are ok)
/dev/sda3 - ntfs windows (just installed)

I thought windows would create it's boot near mine, but the esp partition was completely cleared and only microsoft folders are inside now.

Please, is there a way to restore grub and kernel (I used zen kernel) from another live distro??

Last edited by doomguy84 (2018-06-07 14:49:34)

Offline

#2 2018-06-07 13:46:25

CPlusPandaGives
Member
From: United Kingdom
Registered: 2017-03-07
Posts: 11

Re: [SOLVED] Grub and kernel deleted after Windows 10 installation

Using the AL install disk, you should mount /dev/sda2 to /mnt and /dev/sda1 to /mnt/boot.
You may need to wipe /dev/sda1 with mkfs.vfat (or whatever filesystem you used) therefore:
I'm not sure whether windows requires the esp partition or whether it can simply boot from grub. This is assuming is can:

As detailed in the post below, do NOT wipe /dev/sda1 but, instead, install as detailed in the installation guide:
Then chroot into that environment.
Then, you should be able to reinstall the kernel using pacman, mkinitcpio, install and make grub config and then make sure it has detected Windows (make sure os-prober is installed).
After this, you should be able to boot into both environments.

Last edited by CPlusPandaGives (2018-06-07 14:04:00)

Offline

#3 2018-06-07 13:56:54

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

Re: [SOLVED] Grub and kernel deleted after Windows 10 installation

Windows requires the EFI partition, do not wipe it, simply reinstall GRUB as detailed in the wiki and reinstall the linux-zen package within the chroot.

Last edited by V1del (2018-06-07 13:58:24)

Offline

#4 2018-06-07 14:01:59

CPlusPandaGives
Member
From: United Kingdom
Registered: 2017-03-07
Posts: 11

Re: [SOLVED] Grub and kernel deleted after Windows 10 installation

Thanks V1del for the clarification, its been quite a while since I used Windows. I will edit my post so as not to confuse anybody.

Offline

#5 2018-06-07 14:49:10

doomguy84
Member
Registered: 2018-05-09
Posts: 49

Re: [SOLVED] Grub and kernel deleted after Windows 10 installation

thanks to CPlusPandaGives (and V1del too)
as ALWAYS the Arch community is the best and this system is the greatest i've ever used.

this is what I done:

- downloaded the latest archlinux installation media and "burned" on usb
- started the installation media (UEFI) and run these commands:

mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot
rm /mnt/etc/fstab
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt

now I installed the linux-zen and intel-ucode packages, and after grub-install and grub-mkconfig.

I'm writing here again from my last-working archlinux installation!

thanks to all!!!

Offline

#6 2024-12-09 03:33:19

YeesterPlus
Member
Registered: 2024-11-07
Posts: 39

Re: [SOLVED] Grub and kernel deleted after Windows 10 installation

L MS

Offline

#7 2024-12-09 07:50:25

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,647
Website

Re: [SOLVED] Grub and kernel deleted after Windows 10 installation

@YeesterPlus please refrain from necroposting nonsense.

Mod note: Closing this ancient thread.


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

Board footer

Powered by FluxBB