The grub is the boot loader must always install Linux and Windows first before any linux distribution if we have both so, because Windows overwrites the boot sector by removing grub. If for some reason we can recover Windows reinstall grub downloading the disk Supergrub
Once we have the partition boot Ubuntu from your hard drive console write sudo grub-install / dev / sda (that would reinstate the grub on sata disk).
An example of grub menu.lst file stay in / boot / grub / where Windows is located on the primary partition and Linux in logical partition of a single Sata drive would be as follows:
default 0 timeout 10
title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,5)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=400158ca-77b4-4443-8af5-ea8fcb01e180 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet
title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd0,5)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=400158ca-77b4-4443-8af5-ea8fcb01e180 ro single
initrd /boot/initrd.img-2.6.22-14-generic
title Ubuntu 7.10, memtest86+
root (hd0,5)
kernel /boot/memtest86+.bin
quiet
title
Microsoft Windows XP Professional root (hd0, 0)
makeactive chainloader +1
0 comments:
Post a Comment