You are not logged in.

#1 2012-04-04 11:21:34

fettouhi
Member
Registered: 2007-05-07
Posts: 757

[SOLVED] Updating grub2 error

Back in august I reinstalled Arch Linux 64 bit on my machine using grub2 this time (1.99beta3 at the time I think). I'm using software raid mirror my 2 500 GB drives into one RAID 0 volume with a boot partition, root partition and a home partition. I haven't updated grub2 since the day I installed it (maybe ignorance on my part) but I decided today since grub 2 is at 2.00beta3 that I would update it. I originally installed grub on both my disks with the command

root@pc-chroot:~# grub-install --no-floppy --modules="raid" /dev/sda
root@pc-chroot:~# grub-install --no-floppy --modules="raid" /dev/sdb

I looked at the Arch Linux wiki again before I did the update and in the wiki grub2 should be installed the following way

grub-install --directory=/usr/lib/grub/i386-pc --target=i386-pc --boot-directory=/boot --recheck --debug /dev/sda

so I did that for both sda and sdb and completed without errors. My partition still boots but now it complains about

/usr/lib/grub/i386-pc/raid.mod is missing at boot?

I tried now to reinstall grub2 with

grub-install --directory=/usr/lib/grub/i386-pc --target=i386-pc --boot-directory=/boot --recheck --debug --modules="raid" /dev/sda

but I gives the error

/usr/bin/grub-mkimage: fejl: cannot stat `/usr/lib/grub/i386-pc/raid.mod': No such file or directory.

Did I miss something?

Last edited by fettouhi (2012-04-05 05:57:22)

Offline

#2 2012-04-04 12:56:31

teekay
Member
Registered: 2011-10-26
Posts: 271

Re: [SOLVED] Updating grub2 error

I stumbled over the same one.

You need to update your grub.cfg after updating to 2.0.0beta3 - raid.mod is gone, you only need mdraid09 and/or mdraid1x.

Offline

#3 2012-04-04 18:06:30

fettouhi
Member
Registered: 2007-05-07
Posts: 757

Re: [SOLVED] Updating grub2 error

teekay wrote:

I stumbled over the same one.

You need to update your grub.cfg after updating to 2.0.0beta3 - raid.mod is gone, you only need mdraid09 and/or mdraid1x.

OK, do I edit grub.cfg directly then? I heard that would be a bad idea?

Offline

#4 2012-04-04 19:07:02

teekay
Member
Registered: 2011-10-26
Posts: 271

Re: [SOLVED] Updating grub2 error

I used grub-mkconfig, it worked fine. (but anyways kept a backup, always good to have)

Offline

#5 2012-04-04 21:14:29

fettouhi
Member
Registered: 2007-05-07
Posts: 757

Re: [SOLVED] Updating grub2 error

How did you do it with grub-mkconfig? Sorry for asking but I haven't used it very much.

Last edited by fettouhi (2012-04-04 21:14:43)

Offline

#6 2012-04-05 05:12:40

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Updating grub2 error


Burninate!

Offline

#7 2012-04-05 05:57:05

fettouhi
Member
Registered: 2007-05-07
Posts: 757

Re: [SOLVED] Updating grub2 error

Thanks it worked the error is gone even the floppy error is gone as well smile.

Offline

Board footer

Powered by FluxBB