GRUB RECOVERY
GRUB RECOVERY
GRUB RECOVERY IN UBUNTU
1. In many cases, the GRUB boot loader can mistakenly be deleted, corrupted, or
replaced by other operating systems.
The following steps detail the process on how GRUB is reinstalled on the master
boot record:
. Boot the system from an installation boot medium.
Create a directory
mkdir /mnt/root
Mount the root directory
mount /dev/sdx1 /mnt/root
mount -t proc none /mnt/root/proc
mount -o bind /dev /mnt/root/dev
chroot /mnt/root /bin/bash
grub-install /dev/sdx
GRUB RECOVERY IN CENTOS
2. In many cases, the GRUB boot loader can mistakenly be deleted, corrupted, or
replaced by other operating systems.
The following steps detail the process on how GRUB is reinstalled on the master boot record:
· Boot the system from an installation boot medium.
· Type linux rescue at the installation boot prompt to enter the rescue environment.
· Type chroot /mnt/sysimage to mount the root partition.
· Type /sbin/grub-install /dev/hda to reinstall the GRUB boot loader, where
/dev/hda is the boot partition.
· Review the /boot/grub/grub.conf file, as additional entries may be needed for GRUB to
control additional operating systems.
· Reboot the system.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home