Vinicius wrote:
Hello,
My original grub.conf uses hd0,5 as device and /dev/VolGroup00/LogVol00 as root.
The grub command "setup (hd0)" doesn't work.
When I run "/sbin/grub-install hd0,5" or "/sbin/grub-install
/dev/VolGroup00/LogVol00", the return is "The file /boot/grub/stage1 not
read correctly". And the floppy disk led turns on and I hear the head moving.
Thanks for your time,
Vinicius.
This may be one of those tricky ones.
Sometimes it goes like this:
Insert the CDROM or DVD
boot: linux rescue
error mounting ... (or whatever)
root shell
if it won't mount things properly, then ...
# mkdir /mnt
# mount <root-device> /mnt
# cp -a /dev/* /mnt/dev
# chroot /mnt
I hate having to type in full path names :)
Source the common profile
# . /etc/profile
That is: dot space /etc/profile
# mount </boot-device> /boot
# df -h
to insure that both / and /boot partitions appear to mount --
grub-install needs this
# grub-install --nofloppy --recheck <root-device>
That should fix ya up.
# exit
#exit
Will cause a reboot -- remove the disk!