LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-17-2004, 10:56 AM   #1
stevesk
Member
 
Registered: Dec 2004
Distribution: Slackware-current
Posts: 207

Rep: Reputation: 30
Installing my own GRUB - HELP PLEASE!!!


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.

Last edited by stevesk; 12-17-2004 at 10:57 AM.
 
Old 12-17-2004, 11:06 AM   #2
Cron
Member
 
Registered: Jun 2004
Location: Lithuania
Distribution: FreeBSD, Arch, Ubuntu
Posts: 145

Rep: Reputation: 15
menu.1st

It is menu.lst, NOT menu.1st. It is lowercase L not 1. I think this sloves your problem.
 
Old 12-17-2004, 11:20 AM   #3
stevesk
Member
 
Registered: Dec 2004
Distribution: Slackware-current
Posts: 207

Original Poster
Rep: Reputation: 30
Oh...um...well, what can I say...hmmm..."1" is too close to "l" ...

But now it is working thanks! .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
installing grub:( Alexander.s Linux - Software 3 06-04-2005 08:39 PM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 04:55 AM
Re-installing XP with grub Rizla Linux - General 1 04-14-2004 07:43 AM
Installing Grub Drogo Linux - Software 2 09-09-2003 12:21 AM
Installing Grub dark_light Linux - General 2 10-09-2002 07:25 PM


All times are GMT -5. The time now is 08:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration