#41901907 · 10 Aug 2014, 18:23 · · პროფილი · პირადი მიმოწერა · ჩატი
ცადე გრაბის დაბრუნება ლაივ დისკიდან, How to restore or reinstall GRUB from a Ubuntu Live CD
A Windows install, or some other occurence, may erase/change your MBR so that the GRUB boot loader menu no longer appears at startup or perhaps it returns an error. GRUB can be easily returned to its original location with the following commands.
It will be assumed that GRUB was installed into the MBR (hd0) of the first hard disk.
Run Linux from your Ubuntu Live CD, and open a Terminal window (it's like a DOS window) (Terminal is usually in Applications/Accessories). First get to a GRUB prompt. Type: sudo grub GRUB extends beyond the very small MBR and has different Stages. Find and note the location of GRUB's Stage 1. Type: find /boot/grub/stage1 You will be shown the location of Stage1, like (hd0,4) (if more than one Stage1 is located, you must choose which one to use). Replace the following hd?,? with the location just found. Type: root (hd?,?) hd0 is the GRUB label for the first drive's MBR (that 0 is a zero). Type: setup (hd0) Type: quit exit Open Partition Editor and right-click the partition where GRUB is setup - usually (hd0). Select Manage Flags and make sure the Boot flag is ticked for this partition. Exit GParted, and Restart. Remove the CD when it pops out.
|