LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-04-2007, 10:51 PM   #31
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130

To install any other OS, you do exactly the same: select a partition, mount under "/" and install GRUB - you can either have it installed to floppy or have it overwrite your present GRUB. In the latter case, you may need to add your first OS manually if it isn't picked up (it would be unbootable otherwise). To make it easier, you should have a look at the file grub.lst before you install a second OS - the file is in the /boot/grub directory. Just copy out the parts that look like this:

title XXXXXXXXXXXXXXXXXXXXXX
kernel /XXXXXXXXXXXXXXXXXXX
initrd /XXXXXXXXXXXXXXXXXXX

These can then be added - by hand - to your newer GRUB.

Plenty of tutorials, manuals, how-tos etc. - just use google and you'll find more than you could ever read.

For now, you can visit the ubuntu site and have a look at all their docs and wikis.
 
Old 06-05-2007, 09:34 AM   #32
zephyrcat
Member
 
Registered: Jun 2007
Posts: 107

Original Poster
Rep: Reputation: 15
Ok. I found this in boot/grub/menu.lst:

Code:
title		Ubuntu, kernel 2.6.20-16-generic
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.20-16-generic root=UUID=39a42c88-ce12-42d9-860d-a15d6b15da79 ro quiet splash
initrd		/boot/initrd.img-2.6.20-16-generic
quiet
savedefault

title		Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.20-16-generic root=UUID=39a42c88-ce12-42d9-860d-a15d6b15da79 ro single
initrd		/boot/initrd.img-2.6.20-16-generic

title		Ubuntu, kernel 2.6.20-15-generic
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.20-15-generic root=UUID=39a42c88-ce12-42d9-860d-a15d6b15da79 ro quiet splash
initrd		/boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title		Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.20-15-generic root=UUID=39a42c88-ce12-42d9-860d-a15d6b15da79 ro single
initrd		/boot/initrd.img-2.6.20-15-generic

title		Ubuntu, memtest86+
root		(hd0,1)
kernel		/boot/memtest86+.bin
quiet
So when I install the second OS I find it's version of the file and add this to the end of it?
 
Old 06-05-2007, 11:05 AM   #33
zephyrcat
Member
 
Registered: Jun 2007
Posts: 107

Original Poster
Rep: Reputation: 15
EDIT: I can't boot Ubuntu. I will post the error in just a second. I want to check something in Fedora first.

EDIT2: Now I can't boot Fedora either. I will post the errors in the next post, since they are kinda long.



Well now it works! Thank you for your help everyone, especially jay73. The computer now boots Ubuntu automatically unless I press a key. That gives me the choice between Ubuntu and Fedora. I did't have to use that information I posted above at all, just the Fedora 7 Installer. Thanks so much!

Last edited by zephyrcat; 06-05-2007 at 11:58 AM.
 
Old 06-05-2007, 12:06 PM   #34
zephyrcat
Member
 
Registered: Jun 2007
Posts: 107

Original Poster
Rep: Reputation: 15
Ok. Here are the errors for Ubuntu and Fedora.


Ubuntu Error:
Code:
  Booting 'Ubuntu'

Rootnoverify (hd0,1)
chainloader +1

Error 13: Invalid or unsupported executable format.

Press any key to continue...
That takes me back to the choice between Fedora and Ubuntu


Fedora gives this and then boots up fine:

Code:
ata2.00: Failed to set xfermode (err_mask=0x4)
ata2.00: Failed to set xfermode (err_mask=0x4)
ata2.00: Failed to set xfermode (err_mask=0x4)
 
Old 06-05-2007, 12:25 PM   #35
zephyrcat
Member
 
Registered: Jun 2007
Posts: 107

Original Poster
Rep: Reputation: 15
I changed menu.lst on fedora by replacing the Ubuntu entry with the first of the parts that I posted before. Now it appears to be working than the screen goes blank forever. I am going to go back and change the file. Not sure how, but I bet thats where the problem is.
 
Old 06-05-2007, 12:49 PM   #36
zephyrcat
Member
 
Registered: Jun 2007
Posts: 107

Original Poster
Rep: Reputation: 15
Ok. I am still getting the same problem. It is very hard to see what goes by before it blanks out. If you think this will give an obvious clue I will try to figure out what it says. Here is a list of what I have tried:

- replacing what fedora generated for Ubuntu with what Ubuntu generated for itself
- adding irqpoll to the end of the line (based on what it said here)


Note about the Ubuntu problem: Right before the screen goes blank it says Loading, please wait... and flashes something at the bottom of the screen. I will change this if I figure out what it says.

EDIT:
I got it to do something diffrent by removing the quiet splash part. This is what the Ubuntu part of the menu.lst file looks like now:
Code:
title Ubuntu, kernel 2.6.20-16-generic
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=39a42c88-ce12-42d9-860d-a15d6b15da79 ro
    initrd /boot/initrd.img-2.6.20-16-generic
I took a picture of what it does now. I will try to find a way to post that.

http://img517.imageshack.us/img517/1...4186qd2.th.jpg

This is better:
http://img517.imageshack.us/my.php?image=img4186qd2.jpg

Last edited by zephyrcat; 06-05-2007 at 01:49 PM.
 
Old 06-05-2007, 02:41 PM   #37
zephyrcat
Member
 
Registered: Jun 2007
Posts: 107

Original Poster
Rep: Reputation: 15
I have tried everything I can think of. Anyone have any ideas?
 
Old 06-05-2007, 03:19 PM   #38
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
I'm back. Could you summarize where you're at right now? I've seen you posted so much that it's become confusing.
What works, what doesn't?
Which GRUB are you using: the one generated by Ubuntu or the one generated by Fedora?
Did you modify the original entry for Ubuntu and, if yes, how?
 
Old 06-05-2007, 03:28 PM   #39
zephyrcat
Member
 
Registered: Jun 2007
Posts: 107

Original Poster
Rep: Reputation: 15
Sorry. I have been going along and I was afraid that if I edited the posts I could confuse someone if people were watching, just not posting. Anyway, this is where I am now:

Code:
title Ubuntu, kernel 2.6.20-16-generic
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=39a42c88-ce12-42d9-860d-a15d6b15da79 ro
    initrd /boot/initrd.img-2.6.20-16-generic

This is what the Ubuntu part of the menu.lst looks like. The grub I am using now was installed by Fedora.
 
Old 06-05-2007, 03:54 PM   #40
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
OK, if Ubuntu fails to boot, you need to make a minor adjustment:

its kernel /vmlinuz .... line should have root=/dev/sda2 instead of root=UUID=....

Ubuntu uses a different syntax to identify the root device; you need to "translate" it if you want it to boot from a GRUB other than its own.

The quiet and splash thingies you removed before can be put back - they are in now way involved in this. They only indicate whether you want to see the full boot messages while booting or whether you prefer to hide them.

Last edited by jay73; 06-05-2007 at 03:56 PM.
 
Old 06-05-2007, 04:43 PM   #41
zephyrcat
Member
 
Registered: Jun 2007
Posts: 107

Original Poster
Rep: Reputation: 15
Ok. It is now saying that /dev/sda2 does not exist. I will post a screenshot as soon as I can take a picture.

http://img267.imageshack.us/img267/4940/img4187da7.jpg

Last edited by zephyrcat; 06-05-2007 at 04:51 PM.
 
Old 06-05-2007, 04:53 PM   #42
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
i've used this way too. I have some like this on my system, and some in other partitions.

http://www.faqs.org/docs/Linux-mini/...istro-Dev.html
 
Old 06-05-2007, 06:47 PM   #43
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
OK, replace sda2 with hda2
 
Old 06-05-2007, 07:41 PM   #44
zephyrcat
Member
 
Registered: Jun 2007
Posts: 107

Original Poster
Rep: Reputation: 15
Ok. That takes me back to this:

http://img517.imageshack.us/my.php?image=img4186qd2.jpg
 
Old 06-05-2007, 07:53 PM   #45
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
I don't like the look of that. It seems your filesystem got damaged although I fail to see why.

Pop in your Gparted cd and double-click the terminal icon. When a terminal comes up type this:

fsck.ext3 /dev/hda2

Then try booting Ubuntu again.

Note: don't just power down a Linux system by clicking on the reset button- it's one of the main causes of filesystem corruption. You may get away with it using windows but Linux is less forgiving. If you ever get stuck on a command line, you can power down safely like this:
init 6
or
shutdown -h now
or if you want to reboot
reboot

Last edited by jay73; 06-05-2007 at 07:57 PM.
 
  


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
Can't boot!! Kernel Panics!! Two machines, several versions!!! WHAT AM I DOING WRONG? Czar420 Linux - Newbie 11 05-18-2007 02:03 PM
How to lilo: 2 mdk versions with dual boot? ronaldv Mandriva 4 12-06-2005 11:56 AM
Multi Boot (Red Hat 9 and 2 versions of Win XP) Slindner Linux - Newbie 1 08-30-2004 04:43 AM
Unable boot multiple kernel versions off of Redhat machine liangjz Linux - Newbie 3 03-16-2004 11:01 AM
Boot loader lilo for two Redhat versions emmanuelmathew Linux - Newbie 1 08-16-2003 06:44 AM

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

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