Linux - NewbieThis 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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hi
Hope some one can help. I had install Ubuntu on a AMD based machine. I have two separate partition with a swap partition as well. Ubuntu installation completed fine, and was to boot to it until I installed Fedora core 6 on a separate partition. That installation went fine as well and now I only able to boot to fedora core. Although when I installed fedora, I had that option to setup dual boot and I did select that option. however I am only able to boot to fedora core. I believe my Ubuntu partition is still active but able to boot to it. Hopefully some one give me some direction to correctly setup a dual boot Ubuntu/Fedora core system
Running both the latest distro of linux
Thanks! Pixellany
I believe I also have a separate /boot partition. Maybe that was my problem. Can your solution still work.
Last edited by bzeecongas; 12-28-2006 at 02:07 PM.
Reason: Another question
Hi
Hope some one can help. I had install Ubuntu on a AMD based machine. I have two separate partition with a swap partition as well. Ubuntu installation completed fine, and was to boot to it until I installed Fedora core 6 on a separate partition. That installation went fine as well and now I only able to boot to fedora core. Although when I installed fedora, I had that option to setup dual boot and I did select that option. however I am only able to boot to fedora core. I believe my Ubuntu partition is still active but able to boot to it. Hopefully some one give me some direction to correctly setup a dual boot Ubuntu/Fedora core system
Running both the latest distro of linux
This should be easy.....
Linux installers do a good job of detecting Windows, but a lousy job of detecting other Linuces.
Running from Fedora, do this (in a terminal):
(I assume Fedora on hda2 and Ubuntu on hda1---make whatever corrections needed to match your setup**)
Code:
cd /mnt --takes you to the folder where you will mount the Ubuntu partition
There may be already an entry for hda1--if so:
mount <name> (whatever it is named)---otherwise:
mkdir hda1mount /dev/hda1 /mnt/hda1cd /mnt/hda1/bootls --look for two files: initrd..soemthing, and vmlinuz..something make links like so:
ln -s vmlinuz* vmlinuz
ln -s initrd* initrd
Now to put the correct entries in the grub config file....
cd /boot/grub
ls look for a file named menu.lst or grub.conf
nano menu.lst (or grub.conf) --nano is a common editor, you can also use gedit.
Add to this file--after the Fedora entries:
title ubuntu
root (hd0,1) --tells grub that ubuntu's /boot is on disk 1, partition 2
(grub counts from zero and always uses hd--even if linux tells you sd)
<<EDIT: fixed typo here--was hda1, should have been hda2>>
kernel /boot/vmlinuz root=/dev/hda2 --points grub at the kernel in said partition, and tells the kernel to mount the filesystem in the same place
initrd /boot/initrdreboot
**This also assumes that there is no separate /boot partition for either Linux. Everything listed has to point either to the /boot partition or to the / partition--hopefully is obvious which is which.
Thanks! Pixellany
I believe I also have a separate /boot partition. Maybe that was my problem. Can your solution still work.
Absolutely!!
FIRST--I HAVE FIXED A TYPO IN THE STUFF BELOW--AND IN THE ORIGINAL -- ERROR LIKE THIS
In this code:
Code:
title ubuntu
root (hd0,1) --tells grub that ubuntu's /boot is on disk 1, partition 2
(grub counts from zero and always uses hd--even if linux tells you sd)
kernel /boot/vmlinuz root=/dev/hda2 --points grub at the kernel in said partition, and tells the kernel to mount the filesystem in the same place
initrd /boot/initrd
The root entry has to point to the partition where /boot is. Then the kernel entry has to have "root=" point to the partition where / is mounted.
So--suppose Ubuntu has /boot on /dev/hda1, and / on /dev/hda2. You would then do this:
Code:
title ubuntu
root (hd0,0)
kernel /vmlinuz root=/dev/hda2
initrd /initrd
<<edited 12/29 to fix a typo--last two lines above.>>
I made another boo-boo in this--the correct version is below. (When /boot is on a separate partition you do not put /boot in the kernel and inird entries.)
Code:
title ubuntu
root (hd0,0)
kernel /vmlinuz root=/dev/hda2
initrd /initrd
Hi Pixellany
Ok..Maybe that is why I was not able to get to work, I did not know that!
Here what my Grub file looks like under Fedora I also have a menu.lst file that reads the same
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,2)
# kernel /boot/vmlinuz-version ro root=/dev/hdd3
# initrd /boot/initrd-version.img
#boot=/dev/hdd
default=0
timeout=5
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.18-1.2798.fc6)
Hmmm--how did it wind up with a Ubuntu entry setup to chainload? That is the Windows is done--and you don't even have Windows.
So we see that with the Fedora install (which currently owns grub) does not have a separate /boot partition. curious, since Fedora often make /boot separate by default.
now we need to know if the Ubuntu install has a separate /boot and you will be rounding third base.....
Ubuntu entry in there because when I was installing Fedora it prompted me to to add secondary boot, which I did. So I will have to try your last solution to see if that works. I will post with the result later this week
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
You can install just reinstall Ubuntu - it seems to do a better job of detecting other Linuxes than Fedora.
But to fix the problem, boot up Fedora, and mount Ubuntu's root partition on /mnt as root.
Code:
mount /dev/hda1 /mnt
Open up /mnt/boot/grub/menu.lst, and find the entry that corresponds to the default Ubuntu entry. Copy that entry to Fedora's /boot/grub/menu.lst, just after the Fedora entry. Reboot your machine, and you should be able to select Ubuntu and boot it.
--Ian
Pixellany: Chainloading is useful for Linux as well. See this page. It makes things much more flexible in the long run, but we won't go in to that now
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
So you have mounted the Ubuntu root partition on /mnt? You should see the contents of your Ubuntu root partition (/bin, /boot, /etc ...).
If not, then you have (somehow) lost your Ubuntu installation. You will need to reinstall.
If you are interested, check out my Dual booting Linux page. If you follow my instructions (they look complicated, but they aren't really), it will work out simpler in the long run.
Hi Ian
I reinstalled Ubuntu again, and this time it worked as advertised....awesome!
Ubuntu partition may have disabled in my first attempt. I am now able to select either Ubuntu or fedora boot.
Thanks
bzeecongas
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.