True... but the checks it does such as the device.map are usually beneficial.
No the live CD (or is it a DVD now? I forget...) is not the same as the install CD.
An error saying hd2 doesn't exist does sound like it could be an incorrect map in your boot filesystem... did you add or remove any drives recently?
On 3 Aug 2010 20:22, "Les Mikesell" lesmikesell@gmail.com wrote:
On 8/3/2010 2:08 PM, Edward Diener wrote:
On 8/3/2010 2:27 PM, James Hogarth wrote:
I normally use a live CD for this sort of thing... in that case you don't need to cheroot at all. Just make sure your <rootmountpoint>/boot/grub/device.map is correct and do grub-install --root-directory=<rootmountpoint> /dev/sda (assuming you want the mbr on sda)
I am booting from the installation DVD. Is that what you mean by a live CD ? When I boot from that, will it necessarily have a correct /boot/grub/device.map ?
If not, then mounting my boot and root partitions and doing a chroot was needed. If so, then I did too much work.
I think grub-install (the shell script) needs things mounted - and perhaps in the right places - because it checks and fixes some other stuff. If you just want the boot loader written to the mbr of the boot device, grub should do that without having it mounted.
-- Les Mikesell lesmikesell@gmail.com _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos