recover ubuntu 8.10 from grub

Asked by i.am.legend

i have ubuntu 8.10 installed inside windows.
it was working well until one day due to a sudden power failure i lost eeverything.
now i am getting the menu to select the os as xp or ubuntu
but when i select ubuntu it gets stuck at

"grub>_"

no commands work(i tried many)

please if anyone can help me i will be highly grateful.

i tried using the live cd but in vain

i am desperate to fix this please help

i ahve installed in on a 160gb sata drive
with 15gb dedicated to ubuntu
 in one of its drive.
i have my windows installed on a 80 gb sata drive.
i do have windows recovery console installed.
please help me please

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu grub Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
i.am.legend (bhaskardeepak-ymail) said :
#1

my menu.lst

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=B0F40F61F40F28E4 loop=/ubuntu/disks/root.disk ro ROOTFLAGS=syncio

## default grub root device
## e.g. groot=(hd0,0)
# groot=()/ubuntu/disks

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Ubuntu 8.10, kernel 2.6.27-11-generic
root ()/ubuntu/disks
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=B0F40F61F40F28E4 loop=/ubuntu/disks/root.disk ro ROOTFLAGS=syncio quiet splash
initrd /boot/initrd.img-2.6.27-11-generic

title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
root ()/ubuntu/disks
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=B0F40F61F40F28E4 loop=/ubuntu/disks/root.disk ro ROOTFLAGS=syncio single
initrd /boot/initrd.img-2.6.27-11-generic

title Ubuntu 8.10, kernel 2.6.27-9-generic
root ()/ubuntu/disks
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=B0F40F61F40F28E4 loop=/ubuntu/disks/root.disk ro ROOTFLAGS=syncio quiet splash
initrd /boot/initrd.img-2.6.27-9-generic

title Ubuntu 8.10, kernel 2.6.27-9-generic (recovery mode)
root ()/ubuntu/disks
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=B0F40F61F40F28E4 loop=/ubuntu/disks/root.disk ro ROOTFLAGS=syncio single
initrd /boot/initrd.img-2.6.27-9-generic

title Ubuntu 8.10, kernel 2.6.27-7-generic
root ()/ubuntu/disks
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=B0F40F61F40F28E4 loop=/ubuntu/disks/root.disk ro ROOTFLAGS=syncio quiet splash
initrd /boot/initrd.img-2.6.27-7-generic

title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
root ()/ubuntu/disks
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=B0F40F61F40F28E4 loop=/ubuntu/disks/root.disk ro ROOTFLAGS=syncio single
initrd /boot/initrd.img-2.6.27-7-generic

title Ubuntu 8.10, memtest86+
root ()/ubuntu/disks
kernel /boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Microsoft Windows XP Professional
root (hd0,1)
savedefault
chainloader +1

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#2

Booting your pc entirely from Ubuntu live cd, please try to restore your Grub boot loader

In short try this... https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows.

Hope this helps

Revision history for this message
Tim Morrow (linuxguy6) said :
#3

Hmmm...this may take a while.

First of all, do you know where the "virtual disk" for Ubuntu is located? This is what I would do:

1. Find the "virtual disk" for Ubuntu from windows.
2. Copy the "virtual disk" to another place on the hard drive (you will need this virtual disk later)
3. Re-install Ubuntu 8.10 inside Windows EXACTLY like you had installed it before (i.e. use the same drive, same size, etc.)
4. Make sure that you can boot both into Ubuntu and Windows before proceeding to the next step.
5. In Windows, copy the "virtual disk" back to where it originally came from (it is okay if it overwrites the other "virtual disk"
6. Reboot and select Ubuntu.

See if this works.

Revision history for this message
Tim Morrow (linuxguy6) said :
#4

You DO NOT want to use marcobra's answer, this will OVERWRITE your boot loader, which is not what you want to do.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#5

@Tim why not to restore Grub when grub doesn't work ?

Reinstalling Ubuntu will overwrite the Grub...!

Hope this helps

Revision history for this message
Tim Morrow (linuxguy6) said :
#6

@marcobra,

He has installed it under Windows (WUBI)!

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#7

I never use Wubi but i think Wubi install a boot loader like a real Ubuntu installation... o no ?

Please tell do you see GRUB row when you boot your pc...?

Thank you

Revision history for this message
Abi ^-^ (abiyasa-eka) said :
#8

I think Wubi just use windows boot loader, not grub, isn't it? ....

The screen is like you using two windows ....

Correct me if i'm wrong

Revision history for this message
Abi ^-^ (abiyasa-eka) said :
#9

Sorry, i mean the boot screen is like you using two windows ...

Can you boot to windows?

Use checkdisk tools in windows to check your windows partition ...

Good luck

Revision history for this message
i.am.legend (bhaskardeepak-ymail) said :
#10

first & foremost thanks a lot all u guys for looking into my problem
i am able to boot into windows with normally.
as tim said i cannot find the virtual cd in any of the installed folder of ubuntu but i do have it (the one which i downloaded) now should i proceed with that disk only or some thing else

tell me if you need some extra info about the problem or my machine.

i have single windows installation with recovery console.

i tried to run "chkdsk /r" from the recovery console for the drive in which ubuntu is installed but it didn't worked.
please help me guys you people are hope!

Revision history for this message
Chuck (keypounder2) said :
#11

HI,

I would suggest that you reinstall Ubuntu 8.10 to correct the GRUB problem.
That has happened to my system several times and the re install solved the
problem.

Revision history for this message
Tim Morrow (linuxguy6) said :
#12

Which partition did you install WUBI on, i.am.legend?

Revision history for this message
i.am.legend (bhaskardeepak-ymail) said :
#13

i installed it on a 30 gb partition on my second hard drive with 15 gb dedicated to wubi

Revision history for this message
i.am.legend (bhaskardeepak-ymail) said :
#14

@ chuck
i reinstalled the wubi the same way as i did earlier but instead of repairing the old ubuntu it installed a new one which was undesirable for me.
so i uninstalled the new wubi
thats where i am screwed now i am getting only windows at my os menu no ubuntu.
now tell me how to repair my grub and get back to ubuntu.

its urgent because i have some important data on my ubuntu desktop.

is there any way to get that data back

Revision history for this message
Michael Tsang (michaeldadmum-deactivatedaccount) said :
#15

Just use some drivers (like ext2ifs or ext2fsd) in Windows to mount your ubuntu partition and get that data back.

Revision history for this message
Tim Morrow (linuxguy6) said :
#16

Um... since you installed a new WUBI, the data has been wiped off, because it replaced the old WUBI's virtual hard drive with a new, blank one. Any data that was on the old one was destroyed when you installed the new WUBI.

Revision history for this message
i.am.legend (bhaskardeepak-ymail) said :
#17

thank u guys!!!!!

but now i have formatted the drive in windows.

tell me should i go for ubuntu or for fedora 10

if fedora then how to install it along with windows in one of its partitions
without affecting windows

tim if possible give me your mail id so that ican send you some more details about the drive configurations

Revision history for this message
Tim Morrow (linuxguy6) said :
#18

i.am.legend,

I would go for Ubuntu, because you have obviously used it before and know the user interface. It is generally easier to install alongside Windows.

My e-mail address should be in my Launchpad profile.

Revision history for this message
Chuck (keypounder2) said :
#19

hacoChoose the freedom to work from home doing work you love
http://aquagarden.co.il/mail.reply119.php?rufuqasuxyqyxyt=740430

Can you help with this problem?

Provide an answer of your own, or ask i.am.legend for more information if necessary.

To post a message you must log in.