MakeTechEasier
  • Home
  •  
  • About
  •  
  • Archives
  •  
  • Jobs
  •  
  • Advertise
  •  
  • Contact Us
  • Windows
  • Linux
  • Mac
  • Internet
  • WordPress
  • iPhone
  • Android
  • All Categories
    • Android RSS
    • Firefox RSS
    • Gaming RSS
    • Google RSS
    • google chrome RSS
    • Internet RSS
    • iPhone/iPod Touch RSS
    • Linux RSS
    • Mac RSS
    • Mobile RSS
    • OpenOffice RSS
    • PC Hardware RSS
    • Review RSS
    • Roundup RSS
    • Windows RSS
    • Windows Mobile RSS
    • WordPress RSS
    • WordPress Plugins RSS
  • rss icon
  • email icon
  • facebook icon
  • twitter icon

How To Restore Grub In Ubuntu

Posted by: Damien on April 11th, 2008
  • View Comments
  • Share

If you install a dual boot of Windows or Mac OSX on your Ubuntu machine, you may find that your Grub bootloader are wiped out and you can’t boot into any of your OS. If this is the case, the only way is to restore Grub back in your Ubuntu system.

Restoration of Grub is very easy. All you need is the Ubuntu Live CD (you should already have it if you install Ubuntu).

Boot up your live CD
In the desktop, open terminal (Applications -> Accessories -> Terminal).

sudo grub

This will set it to grub mode

find /boot/grub/stage1

This will locate your boot partition. If you already know the location, you can ignore this step.

root (hd0,0)

Replace the (hd0,0) by your boot partition number. If your Ubuntu is installed in the second partition, then change it to (hd0,1)

setup (hd0)
quit

Reboot your system. You should be able to access the Grub bootloader now.


Damien Oh is the owner and chief editor of Make Tech Easier

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Share and Enjoy!

  • StumbleUpon It!
  • reddit

Related Posts

  • Snippet: How to Create a Mac Boot Entry in Grub2
  • How To Upgrade From Ext3 To Ext4 Without Formatting The Hard Disk
  • How To Create And Install Your Own GRUB Splash Image
  • How To Dual Boot Ubuntu Gutsy And Mac OSX Leopard 10.5.1
  • How to Boot & Install Ubuntu Ibex From a USB Thumb Drive

Popular Posts

  • Turn Your Ubuntu Hardy to Mac OSX Leopard 502 comment(s)
  • Turn Your Ubuntu Intrepid Into Mac OSX Leopard 318 comment(s)
  • Download EASEUS Partition Master For Free – 24 Hours Only 178 comment(s)
  • How To Boot And Install Windows 7 From USB Flash Drive 137 comment(s)
  • 28 Coolest Firefox About:Config Tricks 126 comment(s)

Enjoyed the article? Subscribe to Make Tech Easier today to get your daily updates of technology tutorials, tips and tricks.

Enter your email:

  • Craig
    Re thegoutap fix.... where it has 'mkdir /mnt/orange/' is 'orange' a reference to their pc? ie: they call their pc 'orange' ?....

    Therefore, as I named my pc 'craig' the command would be 'mkdir /mnt/craig/'... is this correct?

    Thanks

    Craig
  • Damien
    Yes. You are correct.
  • hey i get error
    hey when i do as you says when i get to the find /boot/grub/stage1
    i cant find that thing becuz my files are gone :(
    all off them :(
    i get error 15 i think :(

    please help me i have lost 25 GB music and 16,4 GBpics in the ubuntu that grub is lost on :(
  • Damien
    You might have to mount the boot partition to locate the file.

    Try the method stated in the above comment.
  • thegoutap
    yup its great......

    but many have the prob with stage1 not being found

    i.e $find /boot/grub/stage1
    gives an error of not found or so..

    in this case we need to mount the boot
    here's it is ..coz i faced the same prob

    then type the following using a live cd of ubuntu or any..and in terminal

    use sudo whereever needed
    mkdir /mnt/orange/
    mount /dev/XXX? /mnt/orange (XXX i.e.sda1..)
    chroot /mnt/orange /bin/bash
    grub-install /dev/XXX (XXX i.e . hd0)
  • Sarahana T Kaasyapa
    Hi,im having Vista installed 1st then Ubuntu in my laptop,once i booted i get like dis
    Ubuntu 8.10
    Other Operating Systems:
    Windows Vista (loader)

    I'm able to boot into Ubuntu,but when i select Windows Vista and press enter, it says

    Starting up...
    This is not a bootable disk. Please insert a bootable floppy and press any key to try again...

    kindly let me know how to recover the process to boot into Windows Vista
  • Stavros Ioannidis
    You find a Windows Vista Recovery disc and restore your installation.

    Then with the procedure described here you restore grub, and then you can boot both OSs :)

    Hope it's helpful
  • Cun
    Argh...

    I have tried Super Grub Disc, and i have tried your suggestion as mentioned above, still it didn't work. My screen showed:
    error with boot.ini

    then in continued boot to xp.
  • Damien
    Perhaps you want to try with the Ubuntu Live CD rather than the SuperGrub Disc? It worked for me 100% of the time.
  • meka4996
    Super Grub Disk rocks! Multi Linux!!
    repair restore recover [reinstall] linux GRUB bootloader/menu,
    or multi OS/distro multi disks/partitions MBR!
    It works on my ubuntu 7.04 in 1 minute!
    see their wiki for
    "SGD Quick Menu"
    "Multi Distribution Boot Howto"
    "Boot Problems"
    "Howto Fix Grub"
blog comments powered by Disqus

Our Writers

  • Damien Oh - Chief Editor
  • Joshua Price
  • Shevonne Polastre (FreeAgentWriter)
  • Tavis J. Hampton (Lantern Torch)
  • Trevor Dobrygoski
  • Soumen Halder (Ampercent)
  • Sharninder Khera (Geeky Ninja)
  • Tanmay Ahmed (Tech-Tips-Geek)
  • Write for us

Latest Posts

  • BaseKit: Easily Create a Website From Photoshop
  • YuuGuu – Free and Easy Web Conferencing
  • How To Pin Any Files/Folders To Windows 7 Taskbar
  • Manage Your RSS Feed In Mac With NetNewsWire
  • How to Migrate From Blogger.com to Self-Hosted WordPress
Make Tech Easier on Facebook
Jobs by SimplyHired
Job Widgets

Copyright

All the articles (including the text, images and tutorials) are properties of MakeTechEasier.

You cannot copy whole tutorials, either in English or translate to another language without our permission.

Write for us

Writing a tutorial or article for MakeTechEasier is a great way to get exposure and give back to the community.

Read More Details

Suggestions

We need your help to help us serve you better! This is YOUR site, so if you have suggestions/feedbacks on how we can improve it for you, please let us know! We do our best to make this place better!

Make a Suggestion

Navigation

  • Home
  • About Us
  • Advertise
  • Jobs
  • Archives
  • Contact Us

Copyright © 2007-2010 Make Tech Easier | All Right Reserved.