helpfulstuff.org Logo





Home arrow Linux arrow Reinstalling GRUB on the root Partition on openSUSE Make Text BiggerMake Text SmallerReset Text Size
Reinstalling GRUB on the root Partition on openSUSE PDF Print E-mail
Written by Trevor Gontz   
1. Boot from the opensuse CD/DVD, then from the first menu start the "Rescue System".


2. At the rescue login prompt type:

root

3. Press Enter

4. To see a list of all of the available partitions type:

fdisk -l

5. Press Enter

6. Identify the root partition for openSUSE

7. Mount the root partition. For example if /dev/sda6 is your root partition you would type:

mount -t ext2 -o rw,dev /dev/sda6 /mnt

8. Press Enter

9. Load the GRUB prompt by typing:

grub

10. Press Enter.

11. This will load a grub prompt. Type:

find /boot/grub/stage1

12. Press Enter. You'll get a response like "(hd0)" or in my case "(hd0,3)". Use whatever your computer spits out for the following lines.

13. Type:

root (hd0,3)

14. Press Enter

15. Type

setup (hd0,3)

16. Press Enter. This is key. Other instructions say to use "(hd0)", and that's fine if you want to write GRUB to the MBR. If you want to write it to your linux root partition, then you want the number after the comma, such as "(hd0,3)".

17. Type:

quit

18. Press Enter

19. Type:

reboot

20. Press Enter and you're done!

Last Updated ( Friday, 15 February 2008 )
 
< Prev   Next >
Linux Links

Major Distributions