Grub on a dedicated partition.
I copied the grub files from /usr/share/grub/i386-redhat in my case to a partition with the directories /boot/grub. Try as I may with grub-install and setup it will not install in my MBR. When I want grub to overwrite my windows MBR it won't.Any pointers or tips would be appreciated!
Thanks in advance!
Here are the ls /boot and ls/boot/grub command outputs.
I must confess that I don't understand how to use grub-install--root-directory=/......... I can't do this from just a grub shell correct? Would I mount ,then chroot in a rescue envirionment to a working distro and then mount the grub partition so my rescue disk would have the grub partition mounted along with a Linux distro? Actually I would mount the partition to the Linux distro? So I would mount ,then chroot to a Linux distro ,mount the linux distro to the grub partiton and then run the install--root-directory.......... command?
[kbs@localhost Documents]$ ls /boot
[kbs@localhost Documents]$ ls /boot/grub
device.map grub.conf minix_stage1_5 stage2
e2fs_stage1_5 iso9660_stage1_5 reiserfs_stage1_5 ufs2_stage1_5
fat_stage1_5 jfs_stage1_5 splash.xpm.gz vstafs_stage1_5
ffs_stage1_5 menu.lst stage1 xfs_stage1_5
Xp Pro is the windows O.S and it allowed me to install it away from the MBR and install its bootloader in the MBR with no problem from the install disk. I have less problems with XP if I install the service packs after I get everything else installesd first so I install sp3 almost last unless it is a requirement for something else.
Ubuntu 7.10's installer is awsome. It will shrink a partition with an O.S on it with ease while others state the space is not large enough. 7.10 live has turned out to be as good as having Knoppix around.
I discovered the mistake I was making.
I believe I did this in the grub shell with out chrooting or anything else while using an install/recovery disk.
1- root (hd0,3) or where grub partition is
2- setup (hd0) with no comma as in (hd0,0) or the extra zero for the lack of the partition designation. Stupid why it won't work as (hd0,0) when you have to use it this way in other commands.
I removed the files that I used first from /user/share/grub and instead used the files for /boot/grub and the boot menu will not display without a grub.conf file so I added that. Now I have to make the grub.conf file a softlink I guess to menu.lst.
Thanks yancek for the great explanation. It took me a while to figure out what you explained. I think that the root-directory part is not well understood.