5

GRUB repair script

view full story
linux-howto

http://crunchbanglinux.org – Ikey Doherty of SolusOS has written a nice little script that can rebuild your GRUB from a live CD. Thought I share it here, it's a useful little thing that should be a default on every live CD/USB.http://main.solusos.com/entry.php?32-Se … air-Script#!/bin/bash GRUB_TARGET="/mnt/repairs" setup () { if [[ ! -d "$GRUB_TARGET" ]]; then mkdir -p "$GRUB_TARGET" fi } bind_it () { mount --bind $1 $2 } read -p "Please enter the device you wish to install grub to (MBR): " DEVICE_INST="$REPLY" read -p "Please enter the partition (HowTos)