- sudo -s
- cd /mnt
- mkdir slash
- #/dev/sdX is the drive you want to restore grub on
- mount /dev/sdX slash
- mount /dev/sdX/boot slash/boot
- mount -t proc none slash/proc
- mount --bind /dev slash/dev
- mount --bind /sys slash/sys
- chroot slash
- #/dev/sdX is still the drive you want to restore grub on
- sudo update-grub /dev/sdX
- exit
- telinit 6
SHARE
TWEET
Untitled
a guest
May 8th, 2012
16
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data

