LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 02-08-2008, 05:28 PM   #1
gzero
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Rep: Reputation: 0
Added Fedora 6 to Windows XP - Single hard drive


I have an old XP box that I was wanting to dual boot Fedora onto to get my feet wet with Linux systems. I wiped out my 30g HD and made two partitions, one half for Windows XP and the other for Fedora. I installed XP all was great. I then installed Fedora on second partion(I think) and Fedora install went good. When I start up Fedora 6 boots up. I figured it was suppose to ask which OS I wanted to boot from. Where should I start?
 
Old 02-08-2008, 05:35 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, SolydK 2013
Posts: 7,434

Rep: Reputation: 134Reputation: 134
Quote:
Originally Posted by gzero View Post
I have an old XP box that I was wanting to dual boot Fedora onto to get my feet wet with Linux systems. I wiped out my 30g HD and made two partitions, one half for Windows XP and the other for Fedora. I installed XP all was great. I then installed Fedora on second partion(I think) and Fedora install went good. When I start up Fedora 6 boots up. I figured it was suppose to ask which OS I wanted to boot from. Where should I start?
You edit the file: /boot/grub/menu.lst which is the grub boot loader configuration file.

Here is a tutorial on the grub boot loader:

http://www.gnu.org/software/grub/manual/grub.html

What you need is a title section in menu.lst for Fedora and one for XP.

Post your current menu.lst here and we will help you configure it.

-------------------
Steve Stites
 
Old 02-09-2008, 09:02 AM   #3
gzero
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Original Poster
Rep: Reputation: 0
How do I find menu.lst or grub for that matter. I'm as green as they get when it comes to linux os.


Also, my computer seems to show hda1, hda2, and hda3. I'm guessing these are partitions. One should have Windows, Linux and the last I think was 7mb of unused space. If I remember right.
 
Old 02-09-2008, 12:31 PM   #4
Natilous
Member
 
Registered: Sep 2005
Location: Iran
Distribution: Parsix 1.0 , Debian etch 4.0r1
Posts: 31

Rep: Reputation: 15
Hi,
you must fix or install grub boot loader.
boot the system with a liveCD-Linux (like Parsix,Knoppix,ubuntu,...) and run "grub" command in super user..follow this link.

good luck.
 
Old 02-09-2008, 01:14 PM   #5
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, SolydK 2013
Posts: 7,434

Rep: Reputation: 134Reputation: 134
Quote:
Originally Posted by gzero View Post
How do I find menu.lst or grub for that matter. I'm as green as they get when it comes to linux os.


Also, my computer seems to show hda1, hda2, and hda3. I'm guessing these are partitions. One should have Windows, Linux and the last I think was 7mb of unused space. If I remember right.
You are booting into Fedora correctly so you do not need to use a Live CD. Boot into Fedora and login as user. You can look at menu.lst as user but user cannot change menu.lst, so whenever you get to the point that you want to change menu.lst log in as root.

Start out by logging in as user. The file that you are looking for is /boot/grub/menu.lst. You can start the gui text editor called gedit and then open /boot/grub.menu.lst in gedit.

You can check what the partitions are by looking at /etc/fstab. Log in as user and use gedit to look at /etc/fstab.

----------------
Steve Stites

Last edited by jailbait; 02-09-2008 at 01:21 PM.
 
Old 02-17-2008, 04:38 PM   #6
gzero
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jailbait View Post
You edit the file: /boot/grub/menu.lst which is the grub boot loader configuration file.

Here is a tutorial on the grub boot loader:

http://www.gnu.org/software/grub/manual/grub.html

What you need is a title section in menu.lst for Fedora and one for XP.

Post your current menu.lst here and we will help you configure it.

-------------------
Steve Stites

Here is my menu.lst

Code:
# boot=/dev/hdb

default=0
timeout=5
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.618-1.2798.fc6)
root (hd0,1)
kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-1.2798.fc6.img

title Ohter
rootnoverify (hd0,0)
chainloader +1
This is as good as I could do it. I had to write all this down on a piece of paper and then type it in on a different computer. There was some commented code at the top before everything but I didn't include that. Is that something you might need? If so, let me know and I can post it as well.

Last edited by gzero; 02-17-2008 at 08:38 PM. Reason: forgot about comments
 
Old 02-17-2008, 11:48 PM   #7
gzero
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Original Poster
Rep: Reputation: 0
fdisk -l

Here's what I have when I type "fdisk -l" in terminal...

Code:
Disk /dev/hdb: 30.0 GB, 30020272128 bytes
16 heads, 63 sectors/track, 58168 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

    Device Boot          Start          End               Blocks            Id     System
/dev/hdb1   *                  1         29085          14658888+        c        W95 FAT32 (LBA)
Partition 1 does not end on cylinder boundary.
/dev/hdb2                29086         29294           184422+           83      Linux
Partition 2 does not end on cylinder boundary.
/dev/hdb3               29294           58156          14546857+        8e     Linux LVM
Partition 3 does not end on cylinder boundary.
***There may be some typos. I had to type this out by hand because I'm not on that same computer.***

Could someone please help me set this configuration up correctly. I want to be able to start up the computer and have it ask me which OS to boot.
 
Old 02-18-2008, 01:47 PM   #8
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, SolydK 2013
Posts: 7,434

Rep: Reputation: 134Reputation: 134
Quote:
Originally Posted by gzero View Post

# boot=/dev/hdb

default=0
timeout=5
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.618-1.2798.fc6)
root (hd0,1)
kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-1.2798.fc6.img

title Ohter
rootnoverify (hd0,0)
chainloader +1
Get rid of hiddenmenu. hiddenmenu tells grub to not display the menu of OS choices. I don't know whether splashimage and quiet will interfere or not.

---------------------
Steve Stites
 
Old 02-18-2008, 05:18 PM   #9
gzero
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Original Poster
Rep: Reputation: 0
I took out the hiddenmenu and everything seemed to work great! It takes awhile to bootup to the selection menu but all was good.

I was also told to change timeout from 5 to 30. Is this a good idea? Is this just the amount of time it waits before it boots the default OS?

Thanks for all the help so far

Last edited by gzero; 02-18-2008 at 05:56 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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed with windows xp ntfs transfer to linux partition single hard drive Fb1985 Linux - Newbie 9 11-18-2007 03:54 PM
can't write to recently added hard drive (fedora 7) Levethix Linux - Hardware 1 08-27-2007 04:43 PM
cant view windows hard drive while in fedora 7 lordicon Linux - Desktop 6 07-10-2007 12:47 AM
kernel panic when added new hard drive kaviazzz Suse/Novell 4 03-04-2007 06:02 PM
Added a second Hard Drive chriszurawski Linux - Hardware 2 04-11-2006 01:29 PM


All times are GMT -5. The time now is 08:13 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration