LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-20-2008, 07:57 PM   #1
Raccoon1400
Member
 
Registered: Apr 2008
Distribution: Arch
Posts: 37

Rep: Reputation: 15
Help me create a grub entry for slackware[SOLVED]


I just installed slackware to an old desktop.
The desktop now tri-boots. (ubuntu, yoper, slackware 12)
I whiped out lilo so I could boot slackware with ubuntu's grub.
Here is my lilo entry for slackware. What would the slackware entry be for grub?

Code:
image = /boot/vmlinuz
 root = /dev/hdb5
 label = Linux
 read-only
Do you need more info?

Last edited by Raccoon1400; 05-20-2008 at 09:14 PM.
 
Old 05-20-2008, 08:30 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
not sure if you are using an initrd and I am not an expert on lilo but think pretty good on grub

not sure if you have a slack /boot partition or not....and other drives...read my signature pls

2) assuming all one partition and if ubuntu grub still in mbr and ubuntu or some other drive is on hd0 then try

title slack
root (hd1,4)
kernel /boot/vmlinuz root=/dev/hdb5

3) now I assume in wiping out lilo you can no longer boot slack?

in which case read my trouble shooter and try doing the commands to see if you can boot slack.

I suggest you may have an initrd....but based on vmlinuz...which is a symlink you probably have a symlink to initrd.img

The tab key is your friend.

4) if that gets too hard....boot ubuntu....manually mount slack's /boot partition or folder under slack's / and post the output of /boot....(for slack not ubuntu) pls
 
Old 05-20-2008, 08:53 PM   #3
Raccoon1400
Member
 
Registered: Apr 2008
Distribution: Arch
Posts: 37

Original Poster
Rep: Reputation: 15
your entry booted, but gave an error about how the filesystem had to be initially mounted as read-only. I could continue booting after pressing enter. It gave instructions to fix it, but they were for lilo.
This is a default slackware 12 install. I installed it a few hours ago.
Here is /boot


Code:
root@duncan-desktop:/media/disk0/boot# dir
boot.0300                        System.map
boot_message.txt                 System.map-generic-2.6.21.5
config                           System.map-generic-smp-2.6.21.5-smp
config-generic-2.6.21.5          System.map-huge-2.6.21.5
config-generic-smp-2.6.21.5-smp  System.map-huge-smp-2.6.21.5-smp
config-huge-2.6.21.5             vmlinuz
config-huge-smp-2.6.21.5-smp     vmlinuz-generic-2.6.21.5
diag1.img                        vmlinuz-generic-smp-2.6.21.5-smp
map                              vmlinuz-huge-2.6.21.5
README.initrd                    vmlinuz-huge-smp-2.6.21.5-smp
root@duncan-desktop:/media/disk0/boot#
 
Old 05-20-2008, 09:13 PM   #4
Raccoon1400
Member
 
Registered: Apr 2008
Distribution: Arch
Posts: 37

Original Poster
Rep: Reputation: 15
Okay. Fixed it. Your entry plus "ro" at the end of the kernel line.
Thanks.
 
Old 05-20-2008, 11:13 PM   #5
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
glad you fixed it....can you report size of diag1.img....does this open with a multimedia app or could this be an initial ram disk image? (initrd)
 
Old 05-21-2008, 12:03 AM   #6
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
I also boot Slackware with Ubuntu's grub. Here are my entries in Ubuntu's menu.lst for Slackware
Code:
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda5.
title           Slackware Linux generic-smp (on /dev/sda5)
root            (hd0,4)
kernel          /boot/vmlinuz-generic-smp-2.6.24.5-smp root=/dev/sda5 ro
initrd          /boot/initrd.gz
savedefault
boot


title           Slackware Linux huge-smp (on /dev/sda5)
root            (hd0,4)
kernel          /boot/vmlinuz-huge-smp-2.6.24.5-smp root=/dev/sda5 ro
savedefault
boot
If you switch to the generic-smp kernel, and you should according to Slackware's changes and hints.txt, you will need to make an initrd. Follow the instructions in Slackware's boot directory to create the initrd.

The first entry above is for Slackware's generic-smp kernel. Note the initrd line. The second entry is for the huge-smp kernel which does not need an initrd.
See post #4 from this thread to use grub's interactive mode to boot any distro:
http://ubuntuforums.org/showthread.php?t=393379
 
Old 05-21-2008, 03:06 PM   #7
Raccoon1400
Member
 
Registered: Apr 2008
Distribution: Arch
Posts: 37

Original Poster
Rep: Reputation: 15
Don't know if it makes a difference, but I switched to the huge kernel entry.
 
  


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 to create an entry in fstab file mathimca05 Linux - Newbie 6 12-02-2010 12:07 AM
GRUB Entry halfbrazilian Fedora - Installation 3 11-09-2007 07:15 AM
create init.d entry grimse Linux - Newbie 2 12-21-2004 07:37 AM
GRUB Entry for 2.6.8 Codegen Linux - Distributions 1 08-14-2004 08:54 PM
slackware and grub; what should the config entry be? CrazyPilot Slackware 4 04-11-2004 11:16 AM

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

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

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