0

I have Windows 10 and Ubuntu on my PC. After I updated Windows I received this message:

Error: unknown filesystem
grub rescue>

I entered these commands:

set root=(hd0,6)
set prefix=(hd0,6)/boot/grub
insmod normal
normal

It worked fine but when I restarted the PC the same error message came up, so I deleted the partitions with Ubuntu. I restarted the PC and again the same error. Now when I try to put the commands from above I receive unknown filesystem.

What do I need to do to avoid this grub rescue?


I tried to run the commands given in the answer in a root shell but when I try to run the first command mount -t ext4 /dev/sda6 /mnt/ubuntu it returns

mount: /mnt/ubuntu: mount point does not exist

Maybe I haven't selected the correct partition so here I give you a link to check all my partitions and decide which one is the partition with Ubuntu:

fdisk output

Zanna
  • 72,312

1 Answers1

0

You'd need a live disk running Ubuntu or any Linux variant.

After such, follow the commands here to mount the necessary drives and chroot into the directory.

For the CHROOT PROCESS

See this article

I've highlighted the commands you can use in the window below:

sudo mount -t ext4 /dev/sda6 /mnt/ubuntu

Confirm that sda6 is your current root partition.

sudo mount /dev/sda1 /mnt/ubuntu/boot

Check if this drive is your windows boot partition

Then follow up and mount the other required filesystems

sudo mount -t proc none /mnt/ubuntu/proc
sudo mount -o bind /dev /mnt/ubuntu/dev
sudo mount -o bind /sys /mnt/ubuntu/sys

Follow up to chroot here using this:

chroot /mnt/ubuntu /bin/bash

You should get into another window screen with a terminal window

COMMANDS TO FIX FILESYSTEM MAPPINGS

Run the following to fix your issue

sudo grub-install /dev/sda
sudo update-grub

That should fix your GRUB issues for you automatically with the default filesystems containing your various operating systems.

Zanna
  • 72,312