adding a distro to GRUB


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers adding a distro to GRUB
# 1  
Old 10-12-2008
Question adding a distro to GRUB

hello,

i have downloaded and burned ISO's for Slackware, and subsequently had no problem installing it on a new partition... However, when i installed (v.12.1), i opted not to install lilo to boot Slackware with. Now, when i reboot or start up my comp, grub doesn't see the Slackware distro...

i know there is a way to make grub see this, but can anyone tell me how? i am a newbie, but am very comfortable with the command line; i just request that anyone who helps me explain what i should be doing and have patience.


thanks for your help
# 2  
Old 10-12-2008
You'll have to edit /boot/grub/grub.conf file, can you please let us see the contents of this file here? To understand how GRUB works, see this GRUB bootloader - Full tutorial

You can also use some GUI GRUB editor.
# 3  
Old 10-12-2008
What is the contents of the grub you are using?
gedit /etc/grub.conf
# 4  
Old 10-12-2008
guys.... i have heard this from another forum and messed with it a little bit....

here is the contents of the grub file (which was /boot/grub/menu.lst, by the way):

Quote:
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 #################################
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=5821b866-21a8-4418-b385-bd7cd48dcd1d ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,5)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,5)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=5821b866-21a8-4418-b385-bd7cd48dcd1d ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
quiet

title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
root (hd0,5)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=5821b866-21a8-4418-b385-bd7cd48dcd1d ro single
initrd /boot/initrd.img-2.6.24-19-generic

title Ubuntu 8.04.1, kernel 2.6.24-16-generic
root (hd0,5)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=5821b866-21a8-4418-b385-bd7cd48dcd1d ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet

title Ubuntu 8.04.1, kernel 2.6.24-16-generic (recovery mode)
root (hd0,5)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=5821b866-21a8-4418-b385-bd7cd48dcd1d ro single
initrd /boot/initrd.img-2.6.24-16-generic

title Ubuntu 8.04.1, memtest86+
root (hd0,5)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda3
title Windows Vista/Longhorn (loader)
root (hd0,2)
savedefault
makeactive
chainloader +1

title Slackware 12
root (hd0,3)
kernal /boot/vmlinuz-huge-smp-2.6.24.5-smp ro root=/dev/sda4
the very last lines ^^^^^^^^ are what i made... strange thing though, i couldn't find the "initrd" file in the boot folder of the new slackware partition.... can that have something to do with it? also, i'm not sure if the above lines in the menu.lst file are correct, as i'm a little confused about the labeling of the hard drive. thanks
# 5  
Old 11-01-2008
Bug same issue

I have this same situation with Slackware 12.1 fresh install, and I want to add it to my current main grub boot loader which is now with my Ubuntu, and here is my post; to boot Slackware 12.1 can I install grub - LinuxQuestions.org
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Adding to an array in an external file, and adding elements to it.

I have an array in an external file, "array.txt", which contains: char *testarray={"Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"};I want to be able to add an element to this array, and have that element display, whenever I call it, without having to recompile... (29 Replies)
Discussion started by: ignatius
29 Replies

2. Linux

Best Linux Distro

Hello, I have a Compaq Presario v3000 5 year old laptop, with 1 GB RAM and currently running the (slow and stupid) Windows 7 32 bit, thus I would like to dual boot it with an appropriate distro of Linux that 1) Doesnt consume too much resources (1 GB RAM is not a lot of space) and it ll be... (4 Replies)
Discussion started by: ajayram
4 Replies

3. UNIX for Dummies Questions & Answers

"/boot/grub/grub.conf" VS "/etc/grub.conf"

can someone please explain me the difference between these two files: "/boot/grub/grub.conf" and "/etc/grub.conf" .. (7 Replies)
Discussion started by: stunn3r
7 Replies

4. Red Hat

Can we specify which grub.conf to use in grub-install.

Hi, Can we specify which grub.conf to use while installing grub on RHEL. We are working on application which requires different grub configurations needed, depending on certain criteria we need to update grub with correct grub.conf. Can we use grub-install for this purpose? (4 Replies)
Discussion started by: successlin
4 Replies

5. Fedora

What distro for server

I want to setup a Linux Server on Win7 / Virtual Box for developmet/testing (LAMP, JavaScript). I am gonna need the following programs installed: MySQL Imagemagic Mencoder Ffmpeg Flvtool Qt-faststart Ioncube loader PHP I know that choice comes down to: Centos Fedora Debian ... (2 Replies)
Discussion started by: jtt89
2 Replies

6. Shell Programming and Scripting

Adding new lines to a file + adding suffix to a pattern

I need some help with adding lines to file and substitute a pattern. Ok I have a file: #cat names.txt name: John Doe stationed: 1 name: Michael Sweets stationed: 41 . . . And would like to change it to: name: John Doe employed permanently stationed: 1-office (7 Replies)
Discussion started by: hemo21
7 Replies

7. UNIX for Dummies Questions & Answers

grub problem- keeps rebooting as soon as it tries to do grub

Hi, I installed solaris 10 a few weeks ago. It was working fine during the past two weeks. However, now when I start to load to the drive, I get this problem: The BIOS screen comes up like normal, then screen goes blank and a message "Grub loading stage 2" flashes real quick then the computer... (1 Reply)
Discussion started by: moesays
1 Replies

8. UNIX for Dummies Questions & Answers

Looking for right distro...

Hello all! I am searching for a *nix distro for a project I am about to undertake. I have a laptop (p3 500mhz, 128MB ram, 10GB hard drive) that I would like to use as a server for VPN & possibly hosting a small personal web site. Now, here is where it gets a bit tricky. There is no optical... (2 Replies)
Discussion started by: DISK
2 Replies

9. Debian

which distro?

Hi all, I know, it's a highly subjective and speculative question, but can anyone advise a Linux-newbie (haven't even started yet) on what distribution might be right in my case? - I have for all intents and purposes NO Linux experience. - I do have some previous IT experience. -- A... (9 Replies)
Discussion started by: ropers
9 Replies

10. UNIX for Dummies Questions & Answers

Which distro best for me?

Im goin to build a server soon, im planning to use it for a dedicated server for my favorite game counterstrike. I also want to use it as a file server for my lan, should i also make this server my internet gateway and dhcp server or should i just continue using my linksys router for those tasks? ... (5 Replies)
Discussion started by: stealthdestroyr
5 Replies
Login or Register to Ask a Question