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
  • 13 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!

  • Rss feed
  • StumbleUpon It!
  • Del.icio.us
  • reddit

Related Posts

  • 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
  • How To Auto-mount Your NTFS Partition In Ubuntu

Popular Posts

  • Turn Your Ubuntu Hardy to Mac OSX Leopard 498 comment(s)
  • Turn Your Ubuntu Intrepid Into Mac OSX Leopard 311 comment(s)
  • 28 Coolest Firefox About:Config Tricks 122 comment(s)
  • How To Boot And Install Windows 7 From USB Flash Drive 122 comment(s)
  • Best 101 Free Computer Software For Your Daily Use 101 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:

5 pingbacks/trackbacks (Click to open)

  • Articles Collection of Apr’08 « Dako-Tux
  • Tom joj » My computer keeps crashing?
  • Recuperando el GRUB después de instalar Windows « Gabuntu
  • Recuperando el GRUB después de instalar Windows « Portal Linux
  • Recuperando el GRUB después de instalar Windows | El Blog de Rigo
[Click to close]

13 Responses

  • meka4996 says:
    June 20, 2008 at 2:57 am

    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”

    Reply
  • Cun says:
    June 12, 2009 at 3:53 pm

    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.

    Reply
    • Damien says:
      June 14, 2009 at 8:23 am

      Perhaps you want to try with the Ubuntu Live CD rather than the SuperGrub Disc? It worked for me 100% of the time.

      Reply
  • Sarahana T Kaasyapa says:
    July 7, 2009 at 1:40 pm

    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

    Reply
    • Stavros Ioannidis says:
      August 25, 2009 at 6:31 am

      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

      Reply
  • thegoutap says:
    August 20, 2009 at 1:08 pm

    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)

    Reply
  • hey i get error says:
    December 21, 2009 at 3:22 am

    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 :(

    Reply
    • Damien says:
      December 27, 2009 at 9:45 am

      You might have to mount the boot partition to locate the file.

      Try the method stated in the above comment.

      Reply
Cancel reply

Leave a Comment




Comment

Please Note: Comments maybe under moderation after you submit your comments so there is no need to resubmit your comment again

write for MTE

Latest Posts

  • OfficeMedium – A Social Collaboration Platform For The Small Business + Free Promotions
  • MakeTechEasier Is Now Hosted On KnownHost
  • KTorrent: KDE’s BitTorrent client
  • How to Create a Customized Toolbar for Your Browser
  • 13 Ways To Customize Ubuntu Netbook Remix For Better Usability

Our Writers

  • Damien Oh - Chief Editor
  • Sharninder - Geeky Ninja
  • Joshua Price
  • Tavis J. Hampton - Lantern Torch
  • Shevonne Polastre - FreeAgentWriter
  • Trevor Dobrygoski
  • Soumen Halder - Ampercent
  • Tanmay Ahmed - Tech-Tips-Geek
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
  • Archives
  • Contact Us

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