LinuxQuestions.org
Help answer threads with 0 replies.
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, 11: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, 11:22 AM   #2
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 903
Blog Entries: 13

Rep: Reputation: 122Reputation: 122
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 11:24 AM.
 
Old 06-17-2007, 11:25 AM   #3
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

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


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


All times are GMT -5. The time now is 10:28 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