You are not logged in.
Pages: 1
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
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
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
Pages: 1