LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 12-25-2003, 04:48 PM   #1
thort
Member
 
Registered: Nov 2003
Location: Sweden
Distribution: Linux Mint Cinnamon 18.2
Posts: 195

Rep: Reputation: 31
Editing Bootloader


Hi !

I had a dualboot whith Red Hat and Windows XP.

Now I have installed Mandrake 9.2. Red Hat is left untouched. Mandrake have created a new bootloader whith Mandrake and XP as options.

Where is Red Hat?

I am trying to edit the Mandrake bootloader and create a three options boot whith XP, Mandrake and Red Hat.

Here you can see my boot menu and the Add New Boot window:
http://home.swipnet.se/thor/pngs/Edi...loader - 1.png

How do I figure out which hda partition I shall choose to start Red Hat?

I have a lot of hda partitions to choose between.

What am I to write in the Label, Image and Append fields?
 
Old 12-25-2003, 04:54 PM   #2
juliancoccia
Member
 
Registered: Dec 2003
Posts: 51

Rep: Reputation: 15
As root, do fdisk /dev/hda and then type p and enter to show all partitions on /dev/hda
then hit q and enter to exit.

Be carefull with fdisk as you can delete partitions with this tool.
 
Old 12-25-2003, 06:23 PM   #3
thort
Member
 
Registered: Nov 2003
Location: Sweden
Distribution: Linux Mint Cinnamon 18.2
Posts: 195

Original Poster
Rep: Reputation: 31
Thank You !

I typed fdisk /dev/hda -l and got this output.

Is it possible to figure out which partition is the Red Hat boot partition?

hda5 is the boot partition for Mandrake.

Could it be so bad that Mandrakes installation program has renumbered the partitions? If so, is my Red Hat installation destroyed?
 
Old 12-25-2003, 07:27 PM   #4
juliancoccia
Member
 
Registered: Dec 2003
Posts: 51

Rep: Reputation: 15
By taking windows and swap partitions off the list, it narrows down to these:

Device Boot Start End Blocks Id System
/dev/hda3 10946 10957 96390 83 Linux
/dev/hda5 7365 8128 6136798+ 83 Linux
/dev/hda6 10887 10934 385528+ 83 Linux
/dev/hda7 10958 14528 28684026 83 Linux
/dev/hda11 8192 10886 21647556 83 Linux

Of which /dev/hda7 and /dev/hda11 seem to be the larger partitions. My guess is that it has hda7 is the root partition of the first linux you installed (RH) and hda11 is the root partition of the last one (Mandrake)

If you can boot into mandrake, simply do df in order to get the mounted partitions and determine if my assumption is true.

Once in Mandrake you can mount your hda7 partition and check its contents.

mkdir /hda7
mount /dev/hda7 /hda7
ls /dev/hda7
umount /dev/hda7
rmdir /hda7

If hda7 is the one, then add a block to /etc/grub/grub.conf using the one you have Mandrake as a reference, using hda7 as your root partition.

Good luck
Julian
 
Old 12-26-2003, 03:38 AM   #5
thort
Member
 
Registered: Nov 2003
Location: Sweden
Distribution: Linux Mint Cinnamon 18.2
Posts: 195

Original Poster
Rep: Reputation: 31
Thanks !

Quote:
Once in Mandrake you can mount your hda7 partition and check its contents
I found hda 7 is the Red Hat boot partition.



I added a new boot option in the Mandrake Bootloader pointing at hda7. When choosing this option when rebooting my computer Red Hat started to boot up. But a lot of the green OK marks where replaced by red FAILURE marks. And the startup halted halfway.



Is my Red Hat installation destroyed?

Can it be mended?

Or do I have to reinstall Red Hat?
 
Old 12-26-2003, 11:40 AM   #6
juliancoccia
Member
 
Registered: Dec 2003
Posts: 51

Rep: Reputation: 15
No doubt that is the right partition, but maybe it is unable to find your start init script (init=missing?) or maybe when you copied the Mandrake entry you left some options that do not apply to RH ?

Also, what is the last thing you see before it halts ? Any other relevant information during bootup will also be helpful so that I can try to help you out.

Cheers,
Julian
 
Old 12-26-2003, 02:20 PM   #7
thort
Member
 
Registered: Nov 2003
Location: Sweden
Distribution: Linux Mint Cinnamon 18.2
Posts: 195

Original Poster
Rep: Reputation: 31
Quote:
Also, what is the last thing you see before it halts ?
It is an adventure to follow the startup. As I said, there is a lot of red FAILED marks. It stopped at the line telling: starting system logger: _ I was looking at this screen several minutes writing down information. Then, suddenly, the startup continued and a lot of text passed before me. Then it checked for new hardware and the Hardware Discovery Utility started telling about my printer which it couldn't find. After that more text passed and now a window appeared. The text in the window read: I could not start the X server (your graphical environment) due to some internal error. Please contact your system administrator and check your syslog to diagnose. In the meantime this display will be disabled. Please restart gdm when. At the bottom was an OK button. I hitted it and more text passed by. At last everything stopped whith six lines telling: INIT : Id "6" respawning too fast: disabled for 5 minutes

That's it.

This seems complicated to solve.

Do you have some clue how to go on whith this?

Or is it simplier to erase the Red Hat partitions and reinstall?

Last edited by thort; 12-26-2003 at 02:25 PM.
 
Old 12-26-2003, 05:01 PM   #8
juliancoccia
Member
 
Registered: Dec 2003
Posts: 51

Rep: Reputation: 15
Oh, so it does boot up. It seems like your X server broke down for some reason. If you can reinstall the OS and have nothing to loose on that partition, I will probably take that road.

If you want to find out what happened to your X server, you can take a look at your /var/log/XFree86.0.log file
 
Old 12-26-2003, 07:08 PM   #9
estatik
Member
 
Registered: Oct 2003
Location: CA / NY
Distribution: Mandrake 9.1, 9.2, 10.1, Cooker
Posts: 145

Rep: Reputation: 15
thort,

Although I don't use Red Hat, here's what I did with getting my box to triple-boot windoze, mandrake 9.1 and 9.2:

1) Get into your Red Hat /boot partition and copy the "vmlinuz-2.4..." and "initrd-2.4... .img" to a directory (tmp?) in mandrake, a couple of floppies or burn them to a cd. And find out where the root partition is, /dev/hda7?

2) Boot into mandrake, and as root, make a directory in /boot, i.e. /RedHat

3) Copy the "vmlinuz-2.4..." and "initrd-2.4... .img" into that directory you just created

4) Edit/add to mandrake's /etc/lilo.conf

image=/boot/RedHat/vmlinuz-2.4....
label="RedHat"
root=/dev/hda7
initrd=/boot/RedHat/initrd-2.4... .img
append="devfs=mount ........."
read-only

5) Run lilo as root

6) Reboot and see if you can boot into RedHat now
 
Old 12-28-2003, 11:14 AM   #10
thort
Member
 
Registered: Nov 2003
Location: Sweden
Distribution: Linux Mint Cinnamon 18.2
Posts: 195

Original Poster
Rep: Reputation: 31
juliancoccia wrote:
Quote:
If you can reinstall the OS and have nothing to loose on that partition, I will probably take that road.
I go for that. I have nothing to loose. I will erase all Linux partitions and start from the beginning, installing Mandrake. Later on, maybe I dare to take the, as it seems, complicated step to install Red Hat also and set up a triple boot whith Windows, Mandrake and Red Hat.

Thanks everyone for helping me! I appreciate your long and detailed answers.
 
  


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
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 09:55 PM
bootloader gachejad Linux - Newbie 2 10-01-2005 05:52 AM
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 08:53 AM
I need create bootloader. How make bootloader? swipple Fedora - Installation 3 01-23-2005 12:22 PM
Bootloader howee1 Linux - General 2 10-18-2002 03:26 PM

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

All times are GMT -5. The time now is 12: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration