LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-15-2009, 03:06 AM   #1
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
How to add slackware in grub boot loader?


I installed slackware 12.2 and lilo.
But could not get other linux distributions.
So i installed grub boot loader again.
This time can't get slackware in the list of grub boot loader.
How can i add slackware in grub boot loader?
 
Old 09-15-2009, 03:09 AM   #2
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
here is my slackware entry in /boot/menu.lst

Code:
title		Slackware 12-generic, kernel 2.6.27.7
root		(hd0,7)
kernel		/vmlinuz-generic-smp-2.6.27.7-smp root=/dev/sda11 ro quiet splash vga=791
initrd		/initrd.gz
quiet
the first root is your /boot partition and second root with vmlinuz is your root partition.
hope that helps.

mobin

Last edited by mobinskariya; 09-15-2009 at 03:12 AM.
 
Old 09-15-2009, 03:14 AM   #3
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Hello,

There's a nice how-to on this blog:

http://gnu-linux-slackware.blogspot....gnu-grand.html
 
Old 09-15-2009, 03:18 AM   #4
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Original Poster
Rep: Reputation: 65
Quote:
Originally Posted by mobinskariya View Post
here is my slackware entry in /boot/menu.lst

Code:
title		Slackware 12-generic, kernel 2.6.27.7
root		(hd0,7)
kernel		/vmlinuz-generic-smp-2.6.27.7-smp root=/dev/sda11 ro quiet splash vga=791
initrd		/initrd.gz
quiet
the first root is your /boot partition and second root with vmlinuz is your root partition.
hope that helps.

mobin
Error 15
File not found.

Can't boot.
 
Old 09-15-2009, 03:29 AM   #5
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
hope that you have replaced the device name with yours.
 
Old 09-15-2009, 03:32 AM   #6
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Original Poster
Rep: Reputation: 65
Quote:
Originally Posted by mobinskariya View Post
hope that you have replaced the device name with yours.
I did this:
Code:
title		Slackware 12-generic, kernel 2.6.27.7
root		(hd0,4)
kernel		/vmlinuz-generic-smp-2.6.27.7-smp root=/dev/sda5 ro quiet splash vga=791
initrd		/initrd.gz
quiet
N.B: There is nothing like vmlinuz-generic-smp,initrd.gz in / .
vmlinuz-generic-smp is in /boot.
 
Old 09-15-2009, 03:35 AM   #7
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
ohhh i forgot to mention that, you must replace that too with yours.. and also your initrd.gz
anyway give us the output of
Code:
ls -l /boot

Last edited by mobinskariya; 09-15-2009 at 03:36 AM.
 
Old 09-15-2009, 03:37 AM   #8
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Original Poster
Rep: Reputation: 65
Quote:
Originally Posted by mobinskariya View Post
ohhh i forgot to mention that, you must replace that too with yours.. and also your initrd.gz
anyway give us the output of
Code:
ls -l /boot
Where is initrd.gz?
 
Old 09-15-2009, 03:41 AM   #9
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Quote:
Originally Posted by cola View Post
Where is initrd.gz?
In /boot
 
Old 09-15-2009, 03:43 AM   #10
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Original Poster
Rep: Reputation: 65
Quote:
Originally Posted by gegechris99 View Post
In /boot
I don't know why.
This is the output after ls.
Code:
boot.0300                        diag1.img                            System.map-huge-2.6.27.7
boot_message.txt                 map                                  System.map-huge-smp-2.6.27.7-smp
config                           README.initrd                        vmlinuz
config-generic-2.6.27.7          slack.bmp                            vmlinuz-generic-2.6.27.7
config-generic-smp-2.6.27.7-smp  System.map                           vmlinuz-generic-smp-2.6.27.7-smp
config-huge-2.6.27.7             System.map-generic-2.6.27.7          vmlinuz-huge-2.6.27.7
config-huge-smp-2.6.27.7-smp     System.map-generic-smp-2.6.27.7-smp  vmlinuz-huge-smp-2.6.27.7-smp
 
Old 09-15-2009, 03:48 AM   #11
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Original Poster
Rep: Reputation: 65
After the installation i got the console based black login screen.
The only option was to login as root.
Being root i did kdm start.
 
Old 09-15-2009, 03:52 AM   #12
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
sorry i wasnt at the desk and so didnt respond. if the problem is solved then mark this thread as solved which is under thread tools.
 
Old 09-15-2009, 04:08 AM   #13
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Quote:
Originally Posted by cola View Post
After the installation i got the console based black login screen.
The only option was to login as root.
Being root i did kdm start.
To complete the installation of Slackware, please follow the instructions in Slackware-HOWTO. This file and other useful documents are available at the root directory of DVD (or first installation CD).
 
Old 09-15-2009, 04:47 AM   #14
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Original Poster
Rep: Reputation: 65
Solved.
From /etc/lilo.conf:
Code:
image = /boot/vmlinuz
  root = /dev/hda5
  label = Linux
  read-only
I added in the menu.lst:
Code:
title		Slackware 12-generic, kernel 2.6.27.7
root		(hd0,4)
kernel		/boot/vmlinuz root=/dev/hda5
quiet
Now booting Slackware.

@mobinskariya
ls -l:
Code:
total 18672
-rw-r--r-- 1 root root     512 2009-09-14 19:21 boot.0300
-rw-r--r-- 1 root root     209 2009-09-14 19:21 boot_message.txt
lrwxrwxrwx 1 root root      28 2009-09-14 19:20 config -> config-huge-smp-2.6.27.7-smp
-rw-r--r-- 1 root root   89202 2008-11-21 11:01 config-generic-2.6.27.7
-rw-r--r-- 1 root root   89505 2008-11-21 10:20 config-generic-smp-2.6.27.7-smp
-rw-r--r-- 1 root root   89081 2008-11-21 11:20 config-huge-2.6.27.7
-rw-r--r-- 1 root root   89384 2008-11-21 10:33 config-huge-smp-2.6.27.7-smp
-rw-r--r-- 1 root root    5040 2008-11-30 00:43 diag1.img
-rw------- 1 root root   80896 2009-09-14 19:21 map
lrwxrwxrwx 1 root root      37 2009-09-14 19:08 README.initrd -> /usr/doc/mkinitrd-1.3.2/README.initrd
-rw-r--r-- 1 root root   15754 2008-02-22 06:08 slack.bmp
lrwxrwxrwx 1 root root      32 2009-09-14 19:20 System.map -> System.map-huge-smp-2.6.27.7-smp
-rw-r--r-- 1 root root  927553 2008-11-21 11:01 System.map-generic-2.6.27.7
-rw-r--r-- 1 root root  965704 2008-11-21 10:20 System.map-generic-smp-2.6.27.7-smp
-rw-r--r-- 1 root root 1393024 2008-11-21 11:20 System.map-huge-2.6.27.7
-rw-r--r-- 1 root root 1432921 2008-11-21 10:33 System.map-huge-smp-2.6.27.7-smp
lrwxrwxrwx 1 root root      29 2009-09-14 19:20 vmlinuz -> vmlinuz-huge-smp-2.6.27.7-smp
-rw-r--r-- 1 root root 2220880 2008-11-21 11:01 vmlinuz-generic-2.6.27.7
-rw-r--r-- 1 root root 2347888 2008-11-21 10:20 vmlinuz-generic-smp-2.6.27.7-smp
-rw-r--r-- 1 root root 4540208 2008-11-21 11:20 vmlinuz-huge-2.6.27.7
-rw-r--r-- 1 root root 4727664 2008-11-21 10:33 vmlinuz-huge-smp-2.6.27.7-smp
vmlinuz=
Code:
lrwxrwxrwx 1 root root      29 2009-09-14 19:20 vmlinuz -> vmlinuz-huge-smp-2.6.27.7-smp
not
Code:
-rw-r--r-- 1 root root 2347888 2008-11-21 10:20 vmlinuz-generic-smp-2.6.27.7-smp
That's why it was not working:
Code:
title		Slackware 12-generic, kernel 2.6.27.7
root		(hd0,4)
kernel		/vmlinuz-generic-smp-2.6.27.7-smp root=/dev/hda5 ro quiet splash vga=791
initrd		/initrd.gz
quiet
And initrd is not needed.
Got from http://www.linuxquestions.org/questi...ckware-447626/
 
Old 09-15-2009, 04:55 AM   #15
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
huge kernels dont need initrd since filesystem drivers are compiled into the kernel..note that i have given you a generic kernel and it should have an initrd.img since the filesystem drivers are loaded as modules.and vmlinuz is only a softlink to your huge kernel..it doesnt matter here since i gave you the right generic kernel image and not vmlinuz

anyway congrats and always stick to one thread..if it is solved mark the thread solved using thread tools

regards
mobin
 
  


Reply



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
How do I add Windows XP to Grub boot loader? LUB997 Linux - Software 29 10-17-2009 11:11 AM
How to change from grub boot loader to lilo boot loader linuxjamil Linux - Software 1 05-27-2008 01:47 PM
boot loader (grub - slackware) sycamorex Slackware 6 06-11-2006 04:45 AM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 02:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:10 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration