LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-07-2011, 03:00 PM   #1
larry7
LQ Newbie
 
Registered: Feb 2010
Posts: 11

Rep: Reputation: 0
re-installing grub on system


ok,

So i had my laptop set up with Ubuntu 10.10 and Win 7 with grub as the boot loader. Windows recently died and had to be re-installed (the disk would not even consider repairing it). This had lead to grub not being the boot loader. I know it is difficult to install grub after windows, but i want to protect my Linux partition which is still good. how can i install grub now on the system?

thanks for any help,

Larry
 
Old 10-07-2011, 04:21 PM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
Originally Posted by larry7 View Post
ok,

So i had my laptop set up with Ubuntu 10.10 and Win 7 with grub as the boot loader. Windows recently died and had to be re-installed (the disk would not even consider repairing it). This had lead to grub not being the boot loader. I know it is difficult to install grub after windows, but i want to protect my Linux partition which is still good. how can i install grub now on the system?

thanks for any help,

Larry
It is not that difficult to reinstall grub. I am giving you a tutorial that I use and you need to read the section 'Reinstalling grub2 live cd and use your ubuntu cd to repair.

Grub2

Ask if there is something you do not understand.
 
Old 10-07-2011, 04:29 PM   #3
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,216

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
1) boot from livecd
2) open terminal (applications->accessories->terminal)
3) switch to root (sudo su -)
4) mkdir /mnt/recover
5) mount /dev/sda1 (or whatever your / partition is)
6) mount --bind /proc /mnt/recover/proc
7) mount --bind /sys /mnt/recover/sys
8) mount --bind /dev /mnt/recover/dev
9) chroot /mnt/recover
10) grub-install /dev/sda (or whatever drive your / partition is on, usually /dev/sda)
11) reboot
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] no grub/defaults/grub to edit on triole-boot system EDDY1 Linux - Software 21 10-31-2010 03:10 PM
Re-installing Linux on a dual-boot system: what happens with Grub and the MBR? jem Linux - Newbie 5 11-26-2008 02:47 PM
Grub throws errors installing on desktop system. Sequalit Linux - Newbie 9 10-01-2007 10:45 PM
Grub not installing on dual XP/Debian system? corkypa Linux - General 9 03-22-2006 02:25 AM
Installing OS/2 Warp on my system and adding it to GRUB mechanical-nucleus Linux - General 5 06-18-2005 07:38 AM


All times are GMT -5. The time now is 12:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration