LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-17-2006, 04:33 PM   #1
phyre-x
LQ Newbie
 
Registered: May 2006
Posts: 9

Rep: Reputation: 0
how do i add Slackware to GRUB ??


I just installed slackware after hearing good things, except i didnt install lilo as i was hoping to add slackware to my already present GRUB bootloader from ubuntu.

i installed slackware to /dev/hda5 with the bare.i kernel and im stuck what to add to my GRUB menu.lst file in ubuntu so that it will let me boot slackware (if it is after all possible)

thanks

Phyre-x
 
Old 05-17-2006, 04:46 PM   #2
gare
LQ Newbie
 
Registered: May 2006
Location: iowa, us
Distribution: Ubuntu, Red Hat
Posts: 16

Rep: Reputation: 0
Perhaps:

from /usr/doc/Linux-HOWTOs/Multiboot-with-GRUB


Quote:
Create the following menu.lst for GRUB. This file lives in /boot/grub.



#
# Sample boot menu configuration file
#

# Boot automatically after a minute.
timeout 60

# By default, boot the second entry.
default 1

# Fallback to the first entry.
fallback 0

title Windows 2000
unhide (hd0,0)
hide (hd0,1)
hide (hd0,2)
rootnoverify (hd0,0)
chainloader +1
makeactive

# For booting Linux
title Linux
root (hd0,7)
kernel /boot/vmlinuz-2.2.17 root=/dev/hda8 video=matrox:vesa:261

title Windows 98
hide (hd0,0)
hide (hd0,1)
unhide (hd0,2)
rootnoverify (hd0,2)
chainloader +1
makeactive

title DOS 6.22
hide (hd0,0)
unhide (hd0,1)
hide (hd0,2)
rootnoverify (hd0,1)
chainloader +1
makeactive

# For booting Linux
title Linux (single user)
root (hd0,7)
kernel /boot/vmlinuz-2.2.17 root=/dev/hda8 video=matrox:vesa:261 single
 
Old 05-17-2006, 05:14 PM   #3
phyre-x
LQ Newbie
 
Registered: May 2006
Posts: 9

Original Poster
Rep: Reputation: 0
thanks - took me a few minutes to figure out it starts counting at 0 but got there finally - now just the freezing at probing pcmcia to resolve now that im 3/4 booted
 
Old 05-20-2006, 10:36 PM   #4
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 358

Rep: Reputation: 31
Quote:
Originally Posted by phyre-x
thanks - took me a few minutes to figure out it starts counting at 0 but got there finally - now just the freezing at probing pcmcia to resolve now that im 3/4 booted
Hey - can you post your GRUB menu.lst file ? I also am stuck with Grub at the moment and will be adding Slackware into the list soon.
What is the command to 're-install' grub to mbr after updating the menu.lst file..?
Thanks!
 
Old 05-21-2006, 02:06 AM   #5
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Rep: Reputation: 53
For Graz.....

If you update your menu 1st you do not have to re-install GRUB. Simply updating only applies your update to the boot list. It is not like LILO where you have to re-run it each time you make a change.

Bob
 
Old 05-21-2006, 04:56 AM   #6
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 358

Rep: Reputation: 31
Hi Bob, Nice one - thanks for the info - will give this a go..

problem at the moment is i had a few issues when installing ubuntu and ended up letting it use my entire 80GB drive.. I want to now resize the partition to say 20GB + 20GB for slackware and 40GB as dumping ground..
Looks like i may have to backup ubuntu and then start over with partitioning...
Last time i tried to resize a ext3 parition i had some problems

my understanding of the partimage program is that if i make an image of a 80GB volume i cannot restore to a smaller drive... so looking like i may have to tarball the whole thing...
hrmm
 
Old 05-21-2006, 09:31 AM   #7
multios
Member
 
Registered: Mar 2006
Location: Homer, Alaska USA
Distribution: OpenBSD, FreeBSD, Slackware64-current
Posts: 276

Rep: Reputation: 58
Graz, can't you resize the partition(s) with qtparted or partition magic?
 
Old 05-22-2006, 05:52 AM   #8
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 358

Rep: Reputation: 31
i would but i have tried both g/qtparted in the past and then my system would not boot...
last time i did this propelry i dumped an image with 'partimage' to s spare partition and then blew it away and re-created and then pushed the image back.,...
I think i then had a filesystem that was smaller than the partition size and then used something called resize2fs
Ill have to do some thinking as i dont wnat to lose anything this time
 
Old 05-22-2006, 12:30 PM   #9
BobNutfield
Senior Member
 
Registered: Dec 2005
Location: United Kingdom
Distribution: Fedora , Ubuntu, Slackware-Current
Posts: 1,526

Rep: Reputation: 53
Graz

I recently resized an 80GB drive to make room for LFS and aside from having to tweak ALSA I had no problems (used Gparted). If you do a full back-up, you might want to give it a try. I think you might be pushing your luck to try three partitions, though. Not really sure. Either way, it is realatively easy to add new linux distros for grub to boot.

Bob
 
Old 05-23-2006, 01:11 AM   #10
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 358

Rep: Reputation: 31
Hi Bob,

Excellent - this is calming to here =)
I wanted to hjave 4 partitions (2 x linux distro's , 1 x swap and 1 x fat32 area)
I have had it like this in the past but partitioned the drive like this prior to loading anything...

How do you recommend backing up my existing system? Problem with Partimage is i do not beleive i can restore an image taken from a 80Gb drive back to a 40Gb part..
i guess i could tarball the entire fs

(sorry moderators - i realise this should be posted seperately - was a side issue)
 
  


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
Can't chroot to slackware to 'mkinitrd' to add to grub menu surfbass Linux - General 1 05-02-2006 02:22 PM
Grub 0.97 issues on slackware - grub-install is very slow, & updating menu.lst fails dieyouspammer Linux - Software 1 02-27-2006 01:06 PM
Trying to add os to grub fannymites Linux - Software 1 07-18-2005 08:27 PM
How to add GRUB ? wlaw Linux - Newbie 1 07-20-2004 09:44 AM
Add something to grub Pauli Fedora 6 03-24-2004 05:07 PM

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

All times are GMT -5. The time now is 10:41 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