You are not logged in.

#1 2011-08-12 23:05:30

651bobby
Member
Registered: 2011-06-06
Posts: 8

Failiure to reinstall Grub

I have had to begrudgingly install windows for work purposes, and it has overwritten my boot-sector or whatever and now I can't get access to my arch installation.

So I loaded to net install disk and followed some guides on reinstalling grub from a live cd, i did the following

mount /dev/sda5 /mnt
mount /dev/sda1 /mnt/boot
mount --bind /proc /mnt/proc
mount --bind /dev /mnt/dev
cp /etc/resolve.conf /mnt/etc/resolve.conf
chroot /mnt/
grub-install /dev/sda

This i though would install grub to /sda

but when I do that i get something like:
/dev/sda does not have any corresponding BIOS drive

and I get no further.

Please help me, I can't stand being windows much  longer!

thanks

Offline

#2 2011-08-13 10:11:15

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: Failiure to reinstall Grub

651bobby wrote:

but when I do that i get something like:
/dev/sda does not have any corresponding BIOS drive

Looking at the grub-install script, this message comes from a problem with or in the /boot/grub/device.map file.
You can force its  re-creation with the --recheck option of grub-install.
For information my device.map contains two lines:

(fd0)   /dev/fd0
(hd0)   /dev/sda

Offline

#3 2011-08-16 10:51:29

651bobby
Member
Registered: 2011-06-06
Posts: 8

Re: Failiure to reinstall Grub

Ok thanks help that helped but didn't fix the problem, I have however sorted the issue.

In case any has the same problem here what I did.

# I mount the root partiton to mnt in th live cd
mount /dev/sda5 /mnt
#bind the proc and dev then chroot
mount --bind /proc/ /mnt/proc
mount --bind /dev/ /mnt/dev
chroot /mnt

so now we have root access to the system, we should mount the boot partition from /dev, first I tried using the sda<value> but this give me error when I tried a grub-intsall --recheck so then I tried
mount /dev/disk/by-label/bt /boot
#then
grub-install --recheck /dev/sda

Finally I edited menu.lst to reference the windows partition and all was well.

Thanks again for your help anyways

Offline

Board footer

Powered by FluxBB