A
A
Arktos2012-05-02 01:59:55
linux
Arktos, 2012-05-02 01:59:55

How to repair grub or reinstall Ubuntu while keeping Windows? [SOLVED]?

The computer was running Ubuntu and Windows with a properly working grub (which cannot be said about operating systems). Windows was reinstalled, but there were problems with grub recovery. Any of my attempts resulted in rebooting the computer to the dreary
grub >
boot-repair logs:
paste.ubuntu.com/960920/
paste.ubuntu.com/961160/
The Ubuntu installer refuses to see operating systems and disk partitions and suggests formatting the entire disk. Is there any way to install Ubuntu on a ready partition via terminal?
Upd: The situation was resolved by entering Ubuntu through the grub prompt and reinstalling grub-common (purge grub-common && install grub-pc). Thanks to all who responded.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ruma7a, 2012-05-02
@Arktos

The brute itself is correctly installed in the MBR, but it does not pick up its config. This line is:
"is at this location and looks for (,msdos6)/boot/grub on this drive."
First, there is no disk number (hd0). The second is the section number. Because rudely numbers partitions from 1, then it looks for /boot/grub on the swap (sda6) partition, which is somehow strange and will not work for obvious reasons.
Try booting from the grub command line like this:
help.ubuntu.com/community/Grub2
starting with this line: ''grub>'' Prompt Booting

M
mik_os, 2012-05-02
@mik_os

1. We boot LiveCD Ubuntu.
2. Mount the disk where you have the boot directory.
3. Run sudo grub-install --boot-directory=/media/sda5/boot /dev/sda(replace /media/sda5/boot with your path to the /boot folder)

G
giner, 2012-05-02
@giner

I understand that you do not mind the Linux partition, try deleting it using GParted from the LiveCD, and then install Ubuntu on free space.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question