- Boot your computer up with Ubuntu CD
- Open a terminal window or switch to a tty.
Go SuperUser (that is, type "sudo -s"). Enter root passwords as necessary.
- Type "grub"
- Type "find /boot/grub/stage1". You'll get a response like "(hd0,1)". Use whatever your computer spits out for the following lines.
- Type "root (hd0,1)", or whatever your hard disk + boot partition numbers are for Ubuntu.
- Type "setup (hd0)", to install GRUB to MBR, or "setup (hd0,1)" or whatever your hard disk + partition nr is, to install GRUB to a partition.
- Quit grub by typing "quit".
- Reboot and remove the bootable CD.
/etc/fstab
/boot/grub/menu.lst
/boot/grub/device.map
hd0 will be the boot disk setted in fdisk
No comments:
Post a Comment