LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do I get a boot menu? (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-get-a-boot-menu-128832/)

Superdude 12-25-2003 10:48 AM

How do I get a boot menu?
 
Hi, I just installed Slackware 9.0. It is installed on hda2, and I have Windows on hda1. When I turn on the computer it automatically starts Windows, the only way I can get into linux is to use a boot disk floppy. But instead of having to use a boot disk every time I would like to get a menu when I turn on the computer, asking me if I want to boot into windows or linux. I previously had Mandrake 9.0 installed and it automatically installed such a menu. If someone could explain to me what I need to do to set up such a menu with Slackware I would be very appreciative. I would prefer a graphical menu than a text one. I am almost a complete newbie to linux/unix, except that I have used Mandrake 9.0 for a few months, but it had wizards for everything so I didn't really learn much. Please help!

slackie1000 12-25-2003 10:57 AM

hi,

did you install//run//config lilo?

darin3200 12-25-2003 11:15 AM

I recommend grub. It can be text or text with a pretty picture in the background but it works. First you should boot into slackware. Then go to a command line and type grub and see if anything happens. If you don't have it just go and download it. Once it is running type
root (hd0,0)
setup (hd0)
This will install in the mbr of your first hardrive. Next go into /boot/gurb and find a file called grub.conf and make sure you're root so you can change it. The put something like

default 0
timeout 30

title=Windows
root (hd0,0)
chainloader (hd0,0)+1

title=Slackware
root (hd0,1)
kernel (hd0,1)/boot/vmlinuz root=/dev/hda2
initrd (hd0,1)/boot/initrd ro

Now gurb starts counting at 0 so under slackware where it is (hd0,1) it means harddrive 1 partition 2. Now I guessed on your kernel name and initrd so you might need to fine tune those. The ro on the back of the initrd is because slackware wants it to be read only but I haven't used slack in a while so I could be wrong or it might have changed.

Superdude 12-25-2003 05:58 PM

Thanks, I just got it to work. Only a text screen, but a nice one.

darin3200 12-27-2003 02:26 PM

You can put a nice picture in the background easily, after the default and timeout add
splashimage=(hd0,0)/boot/grub/splash.xpm.gz


http://tldp.org/LDP/LG/current/jayanth.html

h/w 12-27-2003 03:12 PM

my lilo.conf has these few lines, to pick up a nice image, and have transparency in the menu listing in that image area.
Code:

# Installs the specified file as the new boot sector
# You have the choice between: bmp, compat, menu and text
# Look in /boot/ and in lilo.conf(5) manpage for details
#
install=/boot/boot-bmp.b
                                                                                                                   
bitmap = /boot/sid.bmp
bmp-table = 15,12;2,8,24,8
bmp-colors = 7,,;15,,
bmp-timer = 34,28;15,0,0
                                                                                                                   
# Specifies the location of the map file
#
map=/boot/map



All times are GMT -5. The time now is 12:49 PM.