|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (26)
View Page Historyh1. GRUB Bootloader Reinstallation from a Live Environment
h2.
h2. Overview
Use this procedure to reinstall GRUB on a Linux system that is unable to boot. The process uses a live boot environment, mounts the target system, enters a chroot environment, and reinstalls GRUB on the target disk.
h2. Procedure
h3. 1. Create a Mount Point
h3. 1. +Create a Mount Point+
{code:bash}
{code}
h3. 2. Mount the Target Filesystem
h3. 2. +Mount the Target Filesystem+
*Standard Root Partition*
h3. Standard Root Partition
{code:bash}
{code}
*LVM Root Partition if applicable*
h3. LVM Root Partition if applicable
First, scan for volume groups and activate them with:
{code:bash}
vgscan
vgchange -ay
{code}
Next, mount the logical volume with:
{code:bash}
vgchange -ay
{code}
Next, mount the logical volume with:
{code:bash}
mount /dev/vgname/lvname /r1soft
{code}
{code}
*Separate Boot Partition if applicable*
h3. Separate Boot Partition if applicable
{code:bash}
{code}
h3. 3. Prepare the Chroot Environment
h3. 3. +Prepare the Chroot Environment+
{code:bash}
{code}
h3. 4. Enter the Chroot Environment
h3. 4. +Enter the Chroot Environment+
{code:bash}
{code}
h3. 5. Back Up Existing GRUB Directory
h3. 5. +Back Up Existing GRUB Directory+
*Debian-Based Systems*
{code}
h3. 6. Reinstall GRUB
h3. 6. +Reinstall GRUB+
*Debian-Based Systems*
Replace */dev/sda* with the appropriate boot disk if different.
h3. 7. Regenerate GRUB Configuration
h3. 7. +Regenerate GRUB Configuration+
*Debian-Based Systems*
{code}
h3. 8. Reboot and Validate
h3. 8. +Reboot and Validate+
# Exit the chroot environment.