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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-03-2004, 04:26 AM
|
#1
|
LQ Newbie
Registered: Jul 2004
Distribution: Fedora Core1, Mandrake 10.0
Posts: 19
Rep:
|
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.
|
|
|
08-03-2004, 04:54 AM
|
#2
|
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796
Rep:
|
mount the Mandrake partition and see what it says in boot/grub/grub.conf/menu.lst or /etc/lilo.conf if you chose LILO.
|
|
|
08-03-2004, 09:24 AM
|
#3
|
LQ Newbie
Registered: Jul 2004
Distribution: Fedora Core1, Mandrake 10.0
Posts: 19
Original Poster
Rep:
|
what is the proper command string to mount the partition?
|
|
|
08-03-2004, 09:28 AM
|
#4
|
LQ Newbie
Registered: Apr 2004
Location: Somewhere in Space
Distribution: RedHat
Posts: 10
Rep:
|
Quote:
Originally posted by jbolt
what is the proper command string to mount the partition?
|
execute 'man mount'
|
|
|
08-03-2004, 09:58 AM
|
#5
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073
Rep:
|
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
|
|
|
08-03-2004, 10:20 PM
|
#6
|
LQ Newbie
Registered: Jul 2004
Distribution: Fedora Core1, Mandrake 10.0
Posts: 19
Original Poster
Rep:
|
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
|
|
|
08-04-2004, 10:05 PM
|
#7
|
LQ Newbie
Registered: Jul 2004
Distribution: Fedora Core1, Mandrake 10.0
Posts: 19
Original Poster
Rep:
|
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?
|
|
|
08-05-2004, 02:03 AM
|
#8
|
LQ Newbie
Registered: Jul 2004
Distribution: Fedora Core1, Mandrake 10.0
Posts: 19
Original Poster
Rep:
|
Took me a while but I figured it out.
Thanks
|
|
|
All times are GMT -5. The time now is 04:50 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|