LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-03-2004, 03:26 AM   #1
jbolt
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora Core1, Mandrake 10.0
Posts: 19

Rep: Reputation: 0
Need help reconfiguring GRUB


I've been running XP on hda and Mandrake on hdb. I added Fedora1 to hdb on seperate partitions from Mandrake. The Fedora installer overwrote the GRUB for Mandrake in the MBR. I need to add Mandrake back to the GRUB configuration but I'm not sure how to do that.
 
Old 08-03-2004, 03:54 AM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
mount the Mandrake partition and see what it says in boot/grub/grub.conf/menu.lst or /etc/lilo.conf if you chose LILO.
 
Old 08-03-2004, 08:24 AM   #3
jbolt
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora Core1, Mandrake 10.0
Posts: 19

Original Poster
Rep: Reputation: 0
what is the proper command string to mount the partition?
 
Old 08-03-2004, 08:28 AM   #4
spacer
LQ Newbie
 
Registered: Apr 2004
Location: Somewhere in Space
Distribution: RedHat
Posts: 10

Rep: Reputation: 0
Quote:
Originally posted by jbolt
what is the proper command string to mount the partition?
execute 'man mount'
 
Old 08-03-2004, 08:58 AM   #5
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
The command to mount a partition depends on where the partition is and where you want to mount it. If Mandrake is on /dev/hdb1 and you've made an empty /mandrake folder for it in /mnt/mandrake the command would be
mount /dev/hdb1 /mnt/mandrake
When you're configuring Grub, Grub counts from zero so all numbers are one less than you'd expect. Also it uses numbers not letters for drives (again, one less than you'd expect) so /dev/hdb1 is (hd1,0) to grub. /dev/hda5 would be (hd0,4) and so on. Grub's dead easy to work with when you get the hang of it as you don't need to run grub after you've edited /boot/grub/menu.lst
 
Old 08-03-2004, 09:20 PM   #6
jbolt
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora Core1, Mandrake 10.0
Posts: 19

Original Poster
Rep: Reputation: 0
Allrighty then.... thanks for the help on mounting the partition.

Okay here is the Mandrake lilo.config (I thought I had specified grub but there is no grub.conf?)

[root@localhost /]# cat /mnt/mandrake/etc/lilo.conf
# File generated by DrakX/drakboot
# WARNING: do not forget to run lilo after modifying this file

boot=/dev/hda
map=/boot/map
default="linux-enterprise"
keytable=/boot/us.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label="linux"
root=/dev/hdb2
initrd=/boot/initrd.img
append="devfs=mount acpi=ht resume=/dev/hdb10 splash=silent"
vga=788
read-only
image=/boot/vmlinuz
label="linux-nonfb"
root=/dev/hdb2
initrd=/boot/initrd.img
append="devfs=mount acpi=ht resume=/dev/hdb10"
read-only
image=/boot/vmlinuz-i686-up-4GB
label="linux-i686-up-4GB"
root=/dev/hdb2
initrd=/boot/initrd-i686-up-4GB.img
append="devfs=mount acpi=ht resume=/dev/hdb10 splash=silent"
read-only
image=/boot/vmlinuz-enterprise
label="linux-enterprise"
root=/dev/hdb2
initrd=/boot/initrd-enterprise.img
append="devfs=mount acpi=ht resume=/dev/hdb10 splash=silent"
read-only
image=/boot/vmlinuz-2.6.3-7mdk
label="263-7"
root=/dev/hdb2
initrd=/boot/initrd-2.6.3-7mdk.img
append="devfs=mount acpi=ht resume=/dev/hdb10 splash=silent"
read-only
image=/boot/vmlinuz-2.4.25-2mdk
label="2425-2"
root=/dev/hdb2
initrd=/boot/initrd-2.4.25-2mdk.img
append="devfs=mount acpi=ht resume=/dev/hdb10 splash=silent"
read-only
image=/boot/vmlinuz
label="failsafe"
root=/dev/hdb2
initrd=/boot/initrd.img
append="failsafe acpi=ht resume=/dev/hdb10 devfs=nomount"
read-only
other=/dev/hda1
label="windows"
table=/dev/hda
other=/dev/hdb1
label="windows2"
table=/dev/hdb
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80
other=/dev/fd0
label="floppy"
unsafe



And now the Fedora1 /boot/grub/grub.conf (this is the one that currently boots)

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,11)
# kernel /vmlinuz-version ro root=/dev/hdb11
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd1,11)/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2115.nptl)
root (hd1,11)
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdc=ide-scsi hdd=ide- scsi rhgb
initrd /initrd-2.4.22-1.2115.nptl.img
title DOS
rootnoverify (hd0,0)
chainloader +1
 
Old 08-04-2004, 09:05 PM   #7
jbolt
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora Core1, Mandrake 10.0
Posts: 19

Original Poster
Rep: Reputation: 0
I've tried to add what I think is the correct lines in grub.config but I keep getting errors. Based on the above lilo.confg file what should I add to grub.confg to get mandrake to boot?
 
Old 08-05-2004, 01:03 AM   #8
jbolt
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora Core1, Mandrake 10.0
Posts: 19

Original Poster
Rep: Reputation: 0
Took me a while but I figured it out.

Thanks
 
  


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
Reconfiguring a Kernel Kermlet Linux - General 6 11-08-2005 06:56 AM
[SOLVED] reinstalling grub or reconfiguring it to be put back on the mbr pintooo15 Red Hat 7 06-06-2004 10:49 AM
Reconfiguring X in Mandrake 8.2??? mike71ghia Linux - Distributions 1 07-26-2003 02:22 PM
reconfiguring X Lotmr Debian 5 07-05-2003 01:44 AM
reconfiguring the kernel nakkaya Linux - General 4 01-23-2003 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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