LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-15-2004, 08:36 PM   #1
AlessPT
LQ Newbie
 
Registered: Nov 2004
Posts: 10

Rep: Reputation: 0
GRUB + Debian install


Hi

Can someone help me out with this grub configuration?

I'm currently running Fedora core 2 with GRUB as a system boot loader,
i have the current partition scheme:


hda0 (primary partition) (Fat32)

hda1 (primary partition) (ext2) mountpoint: /boot ::active:: *GRUB is installed here*

hda2 (primary partition) (ext2) mountpoint: / *Fedora is installed here*

hda3 (extended partition)
hda5 /swap
hda6 (ext2) *Debian instalation here*



I need to add the Debian instalation to GRUB. How can i do it?
Here's my grub.conf:

Code:
#boot=/dev/hda2
default=0
timeout=25
splashimage=(hd0,1)/grub/splash.xpm.gz
title Fedora Core (2.6.5-1.358)
	root (hd0,1)
	kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ rhgb quiet
	initrd /initrd-2.6.5-1.358.img
title WinXP
	rootnoverify (hd0,0)
	chainloader +1
 
Old 12-16-2004, 01:43 AM   #2
winsnomore
Member
 
Registered: May 2004
Location: USA
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315

Rep: Reputation: 31
It's rather simple.
mount hda5 under FC2 .
You need the kernel copied to the boot partition ..
Find the Debian Kernel .. it should be in your /dev/hda5/boot directory ...

Copy the vmlinz.xxxx (not the link .. but the full name ) System_map and initrd.img .... (3 files) to the /boot partition .. in your case
/dev/hda1

then you have to edit the /dev/hda1/grub/menu.lst.

For reference Look under the grub/meu.lst under /dev/hda5/boot .. Debian might have put a couple of lines there.
Just insert these to the /dev/hda1/grub/menu.lst.

The syntax is simple

title ---- means just the name

In the next line you can put kernel boot commmand .. simple thing like

- kernel /<vmlinz-debia-2.x.5.5.5.....your kernels name> root=/dev/hda5
should do it.
if initrd is needed then then add that as it is in your hda5/grub ..


BTW Debian install is pretty decent .. if you let it install grub, it will keep older install's alive while it sticks itself in.

make a safe boot floopy ... with
dd if=/dev/hda? (where mbr is ) .. of=/dev/fd0 count=1 bs=512 .. even if you mess up boot record you should be able recover
with a floopy or a CD with it .. you can make a CDROM from this 1 block file also. .. just to keep handy.

hope this helps
 
Old 12-16-2004, 03:39 PM   #3
AlessPT
LQ Newbie
 
Registered: Nov 2004
Posts: 10

Original Poster
Rep: Reputation: 0
It did the trick!
Tanx allot for the help
Was a bit confused cause i had LILO installed on the partition from
the debian instalation, and did not know how to call the debian kernel
from there. After all was just a simple copy paste...
On next reformat i'll wipe out the Fedora thing, this Debian is so much more
responsive and user-friendly... apt-get roxz
Also i'm going to follow yor advice and make a boot CD, just in case...
Tanx again for the help, props
 
Old 12-17-2004, 10:47 AM   #4
bossfrog
LQ Newbie
 
Registered: May 2004
Location: USA
Distribution: Fedora Core 3
Posts: 10

Rep: Reputation: 0
apt-get for Fedora

AlessPt,

Slightly off-topic, but you can use apt-get and synaptic (and/or yum and gyum) with Fedora as well. See: http://fedoranews.org/contributors/s...nley/fc3_note/

I have apt-get with synaptic on my Fedora 3 installation, and they work well.
 
  


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
How can I re-install grub from debian-sarge cd rosariowong Debian 3 12-13-2004 02:43 PM
grub 17 error post debian install teh_zero Linux - Newbie 1 11-16-2004 05:35 PM
re-install grub from the cd of debian sarge hraposo Debian 1 11-04-2004 08:13 AM
debian grub problem on install takisd Debian 8 05-13-2004 04:58 PM
How to Install Grub in Debian? velan Debian 2 04-16-2004 01:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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