Hello guys! Well, I am trying to install and costumize GRUB myself, so I downloaded it from the:
http://www.gnu.org/software/grub/
So, as default, installed the package running ./configure, make, make install - GRUB software is installed under my OS (I installed it under Slackware Linux 10.0)
To begin, here is my partition table of the bootable options:
/dev/hda1 - Windows XP SP2
/dev/hda7 - Slackware Linux 10.0*
/dev/hda8 - Suse Linux 9.1
/dev/hda9 - Another Slackware Linux for test porpouses
/dev/hda10 - raw Linux system containing back-uped data.
*/dev/hda7 is the one where I installed grub.
As you see, yes I have SuSe and yes it comes with grub. But I would like to be able to create my own grub instead of using theirs. I could anytime write SuSe grub or Slackware Lilo to MBR and make them booting and working, but as I said, it would be interesting creating my own with a own logo, etc. even if is is hard.
To make the job easy, I installed with all of the systems a lilo in the beginning of every partition with 1 choice and timeout 0, (like when I installed Slackware in /dev/hda7, I had put to install lilo at /dev/hda7) so grub will only have the work to chainload the partitions.
Well, so after installing grub in my Slackware System 10.0, the first thing I did was reading the grub's manual - 'info grub'. So I did the following things:
/////
bash-2.05b$ su
Password:
bash-2.05b# mkdir /boot/grub
bash-2.05b# cd /usr/local/lib/grub/i386-pc/
bash-2.05b# cp * /boot/grub
bash-2.05b# cd /boot/grub
bash-2.05b# ls
e2fs_stage1_5 jfs_stage1_5 stage2 xfs_stage1_5
fat_stage1_5 minix_stage1_5 stage2_eltorito
ffs_stage1_5 reiserfs_stage1_5 ufs2_stage1_5
iso9660_stage1_5 stage1 vstafs_stage1_5
bash-2.05b#
/////
Ok, all the grub files are inside /boot/grub
What I did later was use grub-install to change the dir to /boot/grub.
And after that:
/////
bash-2.05b# grub-install /dev/hda
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(fd0) /dev/fd0
(hd0) /dev/hda
bash-2.05b#
/////
Ok, great! Now always when I reboot my machine grub starts in a command-line. So I go:
grub> rootnoverify (hd0,6) - this is like /dev/hda7 isn't it?
grub> chainloader +1
grub> boot
It works for all my OS because as I said I have added a lilo for them at their partitions. They boot normally
BUT NOW THE PROBLEM COMES!
Obviously, I don't want to use a command-line for all of them so I am trying to make a menu of choices but it just doesn't work. I have read the all the info page and did this thing:
'vi /boot/grub/menu.1st'
Here is my menu.1st:
/////
#
#Sample boot menu configuration file
#
#By default, boot the first entry
default 0
#Boot automatically after 30 secs.
timeout 30
#Fallback to the secound entry.
fallback 1
#Booting for Windows and Slackware Linux:
title WinXP
root (hd0,0)
makeactive
chainloader +1
title Slackware
root (hd0,6)
makeactive
chainloader +1
#Installing grub:
title Install GRUB into the hard disk
root (hd0,6)
setup (hd0)
#End of the config file
/////
I've maked only these 2 to test and later try to make entries for the other partitions.
So I installed again the grub:
/////
bash-2.05b# grub-install /dev/hda
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(fd0) /dev/fd0
(hd0) /dev/hda
bash-2.05b# reboot
/////
But so I rebooted and got the same command line. so I tried:
/////
grub> root (hd0,6)
grub> setup (hd0)
grub> reboot
/////
But the same command line has back, even with the file menu.1st existing in my /boot/grub dir. and even it saying, after giving the setup (hd0) command, that it had success on installing (I saw even a reference to my menu.1st). I want to get out this command-line and go to a menu. I am trying but not being able.
Q1: How could I do that?
Q2: If it will be only a text line choice menu, how to make a graphical one like the Suse, RedHat, etc. ones? Do you know any link for that?
Well, thanks a lot for the attention.