Jump to content

Reinstall grub [solved]


Recommended Posts

Hello, I have recently reinstalled Windows XP and that bastard overran my grub bootloader as usual.

 

I tried to reinstall grub from a live cd, but I get the following error: "Bad file or directory type"

 

What I typed:

grub> root (hd0,4)
grub> setup(hd0)

What I got:

Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1"exists... no

Error 15: File not found

 

find command does not find it either and I don't see any stage1 in /boot or /boot/grub with any file manager.

/boot/grub only contains menu.lst.example or something like that.

 

hd0,4 (sda5) is the / partition, but it is a logical partition. Could that be the problem?

 

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

No, the logical partition is not the problem. Did you chroot into all your partitions once you booted from the rescue CD?

Link to comment
Share on other sites

I fixed the problem by using supergrub and booting into my Mandriva installation and then reinstalling the grub bootloader from there. Thanks for your reply anyway and sorry for wasting time.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...