after trying install FreeBSD on my machine I've destroyed my GRUB loader in MBR. I've tried to reinstall it by booting from Arch boot CD.
I've looked on this thread: http://bbs.archlinux.org/viewtopic.php? … stall+grub
I tried this one:
mount blah blah blah chroot /mnt /bin/bash grub grub > root (hdx,y) grub > setup (hdx) grub > quit exit cd / umount blah blah blah reboot
but It doesn't work. When I type root (hd0,1) I got this error message:
Error 21: Selected disk does not exist
My root partition is on the first and only hard disk on the partition hda2.
In the grub manuel I've found this description for this error:
21 : Selected disk does not exist This error is returned if the device part of a device- or full file name refers to a disk or BIOS device that is not present or not recognized by the BIOS in the system.
But it can't be a problem with my hard disk. If it would be so it wouldn't be possible to mount and to chrot to my root partition, isn't it?
you need to mount --bind /dev/ /mnt/blah/dev
where /mnt/blah/dev is where you mounted your / fs.
Thank you! this --bind option saved me!
Dolly, in Finding Nemo