LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 06-17-2007, 10:12 AM   #1
almon
Member
 
Registered: May 2007
Location: india
Distribution: ubuntu7
Posts: 73

Rep: Reputation: 15
Recovering grub


I reinstalled windows and lost grub.I want to boot into linux but after many attempts I m not able to recover grub....help
My fdisk command gives this output:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1305 10482381 c W95 FAT32 (LBA)
/dev/sda2 1306 19456 145797907+ f W95 Ext'd (LBA)
/dev/sda5 1306 6404 40957686 7 HPFS/NTFS
/dev/sda6 6405 11503 40957686 7 HPFS/NTFS
/dev/sda7 11504 12721 9783553+ 7 HPFS/NTFS
/dev/sda8 * 12722 13994 10225341 83 Linux
/dev/sda9 13995 14053 473886 82 Linux swap / Solaris
/dev/sda10 14054 16602 20474811 7 HPFS/NTFS
/dev/sda11 16603 19456 22924723+ 7 HPFS/NTFS
root@ubuntu:/home/ubuntu#

Now tell me what should i do in order to recover grub???
 
Old 06-17-2007, 10:22 AM   #2
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
Hi,

Simply chroot into your existing installation from a liveCD, and install grub manually
Code:
#mount /dev/hdxy /mnt/***
#chroot /mnt/*** /bin/bash
#grub
>root (hdx,y)
>setup (hdx)
>quit
replace *** by the folder to which you mounted the root partition of the existing installation
replace x by the hard disk number/letter (the first being 0/a)
replace y by the partition number (the first being 0)

Last edited by serafean; 06-17-2007 at 10:24 AM.
 
Old 06-17-2007, 10:25 AM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Double post ... you have similar thread in General. Usage of words like "please" and "thank you" is encouraged in western world.
 
  


Reply



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
Recovering grub almon Linux - General 21 06-20-2007 02:22 PM
Recovering GRUB on dual boot XP/RH box ericcarlson Linux - Software 2 06-05-2007 07:55 PM
Recovering Grub after Windows Install paul-r Debian 1 01-28-2006 11:52 PM
Problem in recovering GRUB ilyushin Linux - Newbie 1 07-07-2005 11:55 PM
Lilo config or recovering Grub....??? avols143 Linux - Newbie 5 03-03-2004 07:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:22 AM.

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
Open Source Consulting | Domain Registration