Grub Lost!!!

Status
Not open for further replies.

vish786

"The Gentleman"
do u hav mandriva dvd try it, sometimes it works best for recovery of grub, when most distro's fail to rescue grub/or reinstall grub.
 
OP
Dark Star

Dark Star

Cyborg Agent
Code:
ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1275    10241406    7  HPFS/NTFS
/dev/sda2            1276        6949    45576405    f  W95 Ext'd (LBA)
/dev/sda3            6950        9728    22322317+  83  Linux
/dev/sda5            1276        3825    20482843+   b  W95 FAT32
/dev/sda6            3826        6757    23551258+   7  HPFS/NTFS
/dev/sda7            6758        6949     1542208+  82  Linux swap / Solaris

infra_red_dude said:
simple steps to recover grub.

boot into the live cd and open a terminal windows. now type:

"sudo grub"

it'll then give you a grub prompt, "grub>"

now type: "find /boot/grub/stage1" at the grub prompt.

it'll give a output like this (hd0,7) 7 is here the example boot partition. note this down.

now type:"root (hd0,7)" (replace hd0,7 wid whatever output u'd got in the prev. step.

then type: "setup (hd0)"
it'll setup grub again.

now type:"quit"

its over! you get the grub menu now :) if at all the windows entry is not there. boot into linux after performing the above mentioned steps and add this line in /boot/grub/menu.lst:

title Microsoft Windows
root (hd0,0)
savedefault
makeactive
chainloader +1

hd0,0 above assumes that you've installed windows in the first partition of the first hard disk. if this is not the case then replace 0,0 wid relevant data to ur system.

This 1 did not help :( Well I did everything right but damn it :mad:
 
Last edited:

infra_red_dude

Wire muncher!
i dunno whats wrong.. its NOT possible that all the methods fail!!! i'd say get hold of a knoppix cd or similar which has a s rescue mode and then install grub the way mentioned before in this thread. it'll hafta work.

and from the fdisk -l output linux root sure is hd0,2. it shudn't give you any probs!!!! i fail to understand what is being done wrong and where!

ok wait.. ur partition structure looks a bit quirky to me!! sda2 is an extended partition. how come you haf one more extended partition on which linux is installed? (sda3)??? i think there has been some mess up while installing!!! and thats why all the above methods are failing...
 
Last edited:
Status
Not open for further replies.
Top Bottom