First, Prepare the Fedora Workstation Live CD using Fedora Media Writer.
Next, run the Workstation Live CD and run the console.
Then, enter the following commands if you are running the separate boot and root partition:
1) sudo mount /dev/sdaX /mnt
Note: sdaX is the root partition
2) sudo mount /dev/sdaW /mnt/boot
Note: sdaW is the boot partition
The following files are essential for running the essential processes for repairing grub and shall be mounted:
3) sudo mount --bind /dev /mnt/dev
4) sudo mount --bind /proc /mnt/proc
5) sudo mount --bind /sys /mnt/sys
6) sudo mount --bind /var/run /mnt/var/run
Now, you are ready to go into the Fedora partitions to repair the grub files. The path should be changed to root user from liveuser> to root>:
7) sudo chroot /mnt
If you are running dual boot Windows and Fedora system, the following command will replace the Metro Interface:
8) grub2-install /dev/sda
With a dual-boot or multi-boot systems, the following command probe for operating systems installed on your harddrive:
9) grub2-mkconfig -o /boot/grub/grub.cfg
Now, we should be done with the repair and can proceed to unmount the boot and root partitions and other files.
10) exit
11) sudo umount /mnt/var/run
12) sudo umount /mnt/sys
13) sudo umount /mnt/proc
14) sudo umount /mnt/dev
15) sudo umount /mnt/boot
16) sudo umount /mnt
Finally, we can shutdown and restart to see if it is successful. Sometimes if there is any error message along the way, we need to run this process twice.
Follow my blog with Bloglovin
Next, run the Workstation Live CD and run the console.
Then, enter the following commands if you are running the separate boot and root partition:
1) sudo mount /dev/sdaX /mnt
Note: sdaX is the root partition
2) sudo mount /dev/sdaW /mnt/boot
Note: sdaW is the boot partition
The following files are essential for running the essential processes for repairing grub and shall be mounted:
3) sudo mount --bind /dev /mnt/dev
4) sudo mount --bind /proc /mnt/proc
5) sudo mount --bind /sys /mnt/sys
6) sudo mount --bind /var/run /mnt/var/run
Now, you are ready to go into the Fedora partitions to repair the grub files. The path should be changed to root user from liveuser> to root>:
7) sudo chroot /mnt
If you are running dual boot Windows and Fedora system, the following command will replace the Metro Interface:
8) grub2-install /dev/sda
With a dual-boot or multi-boot systems, the following command probe for operating systems installed on your harddrive:
9) grub2-mkconfig -o /boot/grub/grub.cfg
Now, we should be done with the repair and can proceed to unmount the boot and root partitions and other files.
10) exit
11) sudo umount /mnt/var/run
12) sudo umount /mnt/sys
13) sudo umount /mnt/proc
14) sudo umount /mnt/dev
15) sudo umount /mnt/boot
16) sudo umount /mnt
Finally, we can shutdown and restart to see if it is successful. Sometimes if there is any error message along the way, we need to run this process twice.
No comments:
Post a Comment