LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 05-19-2005, 12:03 AM   #1
laforge
LQ Newbie
 
Registered: May 2005
Posts: 4

Rep: Reputation: 0
Grub


Ok well i installed mandreake linux and i rebooted after the extra add-ons you download later didn't work. No i am in a command menu with

Code:
grub>
I have no idea what to type, i just want to load mandrake linux.
 
Old 05-19-2005, 12:21 AM   #2
worldgnat
Member
 
Registered: Oct 2004
Posts: 337

Rep: Reputation: 30
Ouch! I've been in that possition before. Here's the easiest way I know to fix that:

1. Download and burn Knoppix (Download the ISO)
2. Insert the CD and reboot (Knoppix is LIve CD Linux)

Ok, now what you need to do is link the grub config file, which will either be /boot/gub/grub.conf, or /boot/grub/menu. something, to your kernel file, which should be like /boot/kernel-2.6. something.

A good guide for how to do this can be found here. Now the first thing that you'll realize is that that link is not about Mandriva. Basically, you need to ignore anything that tells you to "emerge" something or use grub-install.

Ok, this is what the Gentoo config file looks like:

# Which listing to boot as default. 0 is the first, 1 the second etc.
default 0
# How many seconds to wait before the default listing is booted.
timeout 30
# Nice, fat splash-image to spice things up
# Comment out if you don't have a graphics card installed
splashimage=(hd0,0)/grub/splash.xpm.gz

title=Gentoo Linux 2.6.11-r3
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r3 root=/dev/hda3

# The next four lines are only if you dualboot with a Windows system.
# In this case, Windows is hosted on /dev/hda6.
title=Windows XP
rootnoverify (hd0,5)
makeactive
chainloader +1

Go to /boot and ls:
Code:
#cd /boot 
#ls
Look for anything starting with kernel. Then go into your grub config file, and put the name of the kernel file in it, for example, if your kernel is mandriva-2.6.11, then in place of :

kernel /kernel-2.6.11-gentoo-r3 root=/dev/hda3

you need:

kernel /mandriva-2.6.11 root=/dev/hda3

Your grub config file should already be written for you by Mandriva installer, but if not let me know and we'll work something up. Good luck!

-Peter
 
Old 05-19-2005, 09:01 AM   #3
runlevel0
Member
 
Registered: Mar 2005
Location: Hilversum/Holland
Distribution: Debian GNU/Linux 5.0 (“Lenny”)
Posts: 290

Rep: Reputation: 31
Re: Grub

Quote:
Originally posted by laforge
Ok well i installed mandreake linux and i rebooted after the extra add-ons you download later didn't work. No i am in a command menu with

Code:
grub>
I hope you remember your partition settings, if not you can take a look at them using the rescue mode.

What you need to do is pass the correct parameters to grub. It's quite simple but you need to know linux's partition naming scheme.
Grub uses a weird system, so what we need to do is translate from the linux standard to Grub's notation:
Quote:
hda = hd0
hdb = hd1
...
1 = 0
2 = 1
The above means that harddisks has numbers starting at 0 instead of letters. The range of the partition number begins at 0 instead of 1.
Both parts are separated by a comma:

This means:
Quote:
(hd0,0) = hda1
(hd0,1) = hda2
(hd1,0) = hdb1
(hd2,1) = hdc2
h
With this in mind calculate your drives parameters. In my case it's hdc3,
as c = 2 and the second number is 2 i get:
Quote:
(hd2,2)
mandrake normally uses a little /boot partition which is located at the beginning of your disk, this normally is (hd0,0), so what you would have to write would be:
Code:
root (hd0,0)
setup (hd0)
quit
This means:
  • root (hd0,0) your root partition (the partition where the kernel resides) is in (hd0,0) or /dev/hda1
  • setup (hd0) the bootloader will install itself into the MBR of harddisk (hd0), which means the first harddisk on the first IDE or /dev/hda
  • quit close the grub shell

This should boot your system.

If your system boots you should use the quick and dirty approach for getting stuff done in Mandriva w/o bothering much:

Put the Install CD in the tray, reboot, go through the first steps of the installation procedure until you are asked whether to Install or to Update, choose update, go through the procedure until you are asked to select software. Select a package of your choice. It doesn't matter which, it's only to ensure that the install system updates it's databases and reruns the scripts.
Some parts of the install process will run again, you can either ignore them or check if there is something you would like to change.
After the process is complete just reboot.

You can use this approach to get rid of many strange errors, it's at least not specially dangerous and you will not loose any data.
 
Old 05-19-2005, 04:39 PM   #4
worldgnat
Member
 
Registered: Oct 2004
Posts: 337

Rep: Reputation: 30
That's a really a good idea. I never thought of that....

-Peter
 
  


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
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 08:01 PM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 08:13 PM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 04:55 AM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 09:16 AM

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

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