Grub broke

Asked by natakene

Grub broke, tried to fix but it did not finally show Windows Vista (loader), so tried to fix and now in stead of grub menu I have a grub itself exactly like when u write grub in Terminal
grub>
I have nothing in grub menu.lst
pls help

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Solved by:
natakene
Solved:
Last query:
Last reply:
Revision history for this message
zvacet (ivicakolic) said :
#1

Try to reinstall grub following

1. http://ubuntuforums.org/showthread.php?t=224351 if you have version prior to Karmic

2.https://help.ubuntu.com/community/Grub2 if you use Karmic

Revision history for this message
natakene (natakene) said :
#2

So now I have the ERROR 15 again

ubuntu@ubuntu:~$ sudo upgrade-from-grub-legacy

core.img doestn't exist, trying to create it.

grub-probe: error: cannot find a device for /boot/grub.

No path or device is specified.
Try ``grub-probe --help'' for more information.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.

ubuntu@ubuntu:~$ sudo apt-get install grub-pc
Reading package lists... Done
Building dependency tree
Reading state information... Done
grub-pc is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

When I uninstalled and installed again i never had a blue background <ok> or things like that

Revision history for this message
natakene (natakene) said :
#3

And now I have again this thing like in Terminal like im in grub itself
sh grub>

why its so complicated or do I something wrong?

Revision history for this message
natakene (natakene) said :
#4

i cannot install it gives this:
ubuntu@ubuntu:~$ sudo grub-install /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
Could not find device for /boot: Not found or not a block device.

Revision history for this message
natakene (natakene) said :
#5

I tried to do this in grub command:
setup --prefix=/boot/grub (hd0)
root (hd0,4)
kernel (hd0,4)/boot/vm<use tab to get kernel image> root=/dev/hda5 ro
initrd (hd0,4)/boot/initrd<use tab again to get the right initrd image>
boot

and had this:
grub> setup --prefix=/boot/grub (hd0)

Error 12: Invalid device requested

grub> root (hd0,4)

Error 21: Selected disk does not exist

grub> kernel (hd0,4)/boot/vm<use tab to get kernel image> root=/dev/hda5 ro

Error 21: Selected disk does not exist

grub> initrd (hd0,4)/boot/initrd<use tab again to get the right initrd image>

Error 19: Linux kernel must be loaded before initrd

grub> boot
Starting up ...

Error 8: Kernel must be loaded before booting

I have no hope anymore

Revision history for this message
natakene (natakene) said :
#6

rated for you? (y/N) y
Searching for splash image ... none found, skipping ...
Found kernel: /boot/memtest86+.bin
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

thats all i have in menu.lst ?
he dont even see my ubuntu installed

Revision history for this message
natakene (natakene) said :
#7

ubuntu@ubuntu:~$ sudo grub-install /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
Could not find device for /boot: Not found or not a block device.

Revision history for this message
natakene (natakene) said :
#8

What is wrong in here? I am not a speshalist pleeeese help me
ubuntu@ubuntu:~$ sudo apt-get install grub-pc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  desktop-base
The following NEW packages will be installed:
  grub-pc
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 434kB of archives.
After this operation, 1,753kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com karmic/main grub-pc 1.97~beta4-1ubuntu3 [434kB]
Fetched 434kB in 0s (879kB/s)
Preconfiguring packages ...
Selecting previously deselected package grub-pc.
(Reading database ... 120136 files and directories currently installed.)
Unpacking grub-pc (from .../grub-pc_1.97~beta4-1ubuntu3_i386.deb) ...
Processing triggers for man-db ...
Setting up grub-pc (1.97~beta4-1ubuntu3) ...
grub-probe: error: cannot find a device for /boot/grub.

No path or device is specified.
Try ``grub-probe --help'' for more information.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.

Revision history for this message
natakene (natakene) said :
#9

ubuntu@ubuntu:~$ sudo upgrade-from-grub-legacy

core.img doestn't exist, trying to create it.

grub-probe: error: cannot find a device for /boot/grub.

No path or device is specified.
Try ``grub-probe --help'' for more information.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.
ubuntu@ubuntu:~$

Revision history for this message
natakene (natakene) said :
#10

Solved by my self
reading and trying to reinstall grub helped me to think about how i came to the error 15
that was the second time by the way
so When reinstalling ubuntu, that crashed after the fact that computer had to switch of cause of a lack of energy, i was choosing in advanced option a sda5 as the place for grub that caused grub to not to know anything!
So I just reinstalled Ubuntu without touching that advanced option as it was already sda by default!
All of this gave my small head a lot of headache as I am not a specialist!