Howto reinstall / restore Grub with an Ubuntu
After a windows fresh install, the windows setup decided to drop my MBR to put its stuff in. Fine .. but I want my grub back now !
This is an old trick, but udev added a little complexity, so let’s give it a try. First boot on a Ubunty CD, open a console and run:
(here my linux partition is sda2, second partition on a sata disk)
mkdir /media/mnt mount /dev/sda2 /media/mnt/ mount -o bind /dev/ /media/mnt/dev chroot /media/mnt => now you are on the destination disk, so you can install grub. grub-install /dev/sda
Of course you can do a lot more stuff, like changing fstab etc etc .. but the trick is to mount + mount bind + chroot
- Grub install on Debian Howto
- 2D benchmarks on Linux Nvidia, Intel, ATI: xrender
- Howto install KDE4 on a Ubuntu 8.10 (or 8.04)
- Installing Debian on a Dell Latitude D400
- Suspend to disc with Dell Latitude D400 on Linux
admin October 30th, 2007
- Unix
- Comments(1)
u could just: