You are not logged in.

#1 2009-07-31 15:33:42

fishonadish
Member
Registered: 2006-11-04
Posts: 125

[SOLVED]I've wrecked Grub - how to reinstall package as well as mbr?

Hi,

I took a notion to try and install grub-gfxmenu, but ended up with an error.  This meant removing the grub package and building the grub-gfxmenu package instead.
I compounded the issue by trying to re-install grub to the mbr from a live CD (with setup hd0 etc.).
I'm now getting grub error 2, which according to the manual is:

Bad file or directory type
    This error is returned if a file requested is not a regular file, but something like a symbolic link, directory, or FIFO.

I'm guessing the issue is that the grub package isn't installed on my arch partition any more and the other version isn't compatible with the one I'm using to setup the mbr.
So, can anyone tell me how I could get into the Arch system to install the grub package with pacman before correcting the mbr?
Or does anyone have any other suggestions?

I really don't know why I get myself into these messes smile

Thanks,
Fishonadish

Last edited by fishonadish (2009-07-31 16:39:26)

Offline

#2 2009-07-31 15:52:33

scio
Member
From: Buffalo, NY
Registered: 2008-08-05
Posts: 366

Re: [SOLVED]I've wrecked Grub - how to reinstall package as well as mbr?

http://wiki.archlinux.org/index.php/Reinstalling_GRUB

The wiki should be called the "Arch Bible"

Offline

#3 2009-07-31 16:38:33

fishonadish
Member
Registered: 2006-11-04
Posts: 125

Re: [SOLVED]I've wrecked Grub - how to reinstall package as well as mbr?

Thanks scio.  I should have had the good sense to check there first.

Got what I needed anyway - I never remember what's needed to mount proc, sys and dev when using chroot...
I think I'll stay with my black and white grub menu after all smile

Fishonadish

Offline

#4 2009-07-31 16:42:05

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: [SOLVED]I've wrecked Grub - how to reinstall package as well as mbr?

Fishonadish, use the instructions on the wiki, except that just before you chroot, copy a good grub pkg.tar.gz file to your mounted volume (there will be one on the Live CD, perhaps in /var/cache/pacman/pkg/). Then just after you chroot, and before you do the "Reinstalling grub" step, do a pacman -U path/to/your/grub.pkg.tar.gz. Then continue with the wiki instructions to reinstall grub to your mbr.

Offline

Board footer

Powered by FluxBB