U
U
ubunterro2012-02-17 14:08:33
linux
ubunterro, 2012-02-17 14:08:33

How did winlock screw up GRUB?

Good day Khabravchvane! The computer has two hard drives. One is running Ubuntu 9.10 and the other is running Windows XP. Windows picked up Winlock, which did not allow GRUB to boot (it registered in the boot sector of the disk). I cured Windows using Kaspersky Rescue Disk. The virus disappeared, and GRUB began to boot, but alas, the list of systems for booting itself does not appear. Just the inscription "GRUB _" and silence. I'm currently writing from a Live CD. How to revive GRUB? Thank you all in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
charon, 2012-02-17
@charon

I guess you'll have to deal with Grub. Here is everything that was previously hidden from you in the config file, now you just have to drive it in with commands :)
By the way, restoring the rough from your Liv-SD (not Windows, of course) can help. I'm giving you my archive entry:
При переустановке Виндоус, или обновлениях непонятных, иногда GRUB перестаёт грузиться и нуждается в починке. Вот как:
-загрузиться с LiveCD (KNOPPIX или другой)
-выполнить команды:
sudo grub
find /boot/grub/stage1
последняя покажет, на каких разделах утсановлен сам grub (т.е. разделы с Linux покажет)
root (hd0,1)
здесь указать тот самый найденный раздел с Линуксом
setup (hd0)
установить grub в MBR указанного жесткого диска
quit

S
scorp13, 2012-02-17
@scorp13

The article helped a lot

3
3vi1_0n3, 2012-03-04
@3vi1_0n3

I would first check which partition is bootable (labeled bootable).
Another option that might help.
Boot from the LiveCD, mount the root partition, e.g. /mnt/sda. Mount /boot if it is on a separate partition
Then:
mount -o bind /dev /mnt/sda/dev
mount -o bind /proc /mnt/sda/proc
chroot /mnt/sda
And then grub-install

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question