LinuxQuestions.org
Review your favorite Linux distribution.
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 09-07-2009, 11:07 PM   #16
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229

Quote:
Originally Posted by axnst1 View Post
Chilly, I didn't FDisk the last HD since that isn't playing a role in this.

Larry, here's what I get:
_____________________________________________________________________________

[liveuser@localhost ~]$ su
[root@localhost liveuser]# grub
Probing devices to guess BIOS drives. This may take a long time.


GNU GRUB version 0.97 (640K lower / 3072K upper memory)

[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename.]
grub> root (hd0,1)
root (hd0,1)
Filesystem type unknown, partition type 0x7
grub>
________________________________________________________________________________

BTW, how do I type multiple lines in Terminal without executing each line after entering it. I am assuming that you wanted all of those lines executed all at once, kind of like a batch file, correct?

grub>

When you see the above is what we are looking for. Type what I have above and hit enter after each line and on the last line (boot) it should boot your windows.
 
Old 09-07-2009, 11:14 PM   #17
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
If my prior post does boot your windows XP then you can edit your sdb1 grub conf. to read

title Windows XP
root (hd0,1)
makeactive
map (hd0,1) (hd0,0)
map (hd0,0) (hd0,1)
chainloader +1
 
Old 09-08-2009, 12:14 AM   #18
louieb
Member
 
Registered: Jun 2006
Location: Texas
Distribution: Ubuntu 8.04
Posts: 94

Rep: Reputation: 17
So do I have this right?
  • XP is on the 80GB drive (shown as sda)
  • Fedora is on the 60GB drive (shown as sdb) Guess this drive had windows on it before installing Fedora - windows boot code in the MBR.
  • the 120GB drive is for data and other stuff (shown as sdc). This drive also show a windows install?
  • Currently when you boot your not getting the Grub menu - just a blank screen.
Have you switched drives around? looks like you should be getting the grub menu.

at this point I would get a Super Grub Disk it has the ability to find and boot both windows and Linux. I just can't see a reason Fedora won't boot.

As for windows your grub menu is trying to boot if from sda1 when it looks like its in sda2.

Once you get the GRUB menu showing up Window should boot if you change the root statement like Larry Webb suggested.

Last edited by louieb; 09-08-2009 at 10:10 AM.
 
Old 09-08-2009, 09:13 AM   #19
axnst1
LQ Newbie
 
Registered: Aug 2009
Location: Pittsburgh, PA
Distribution: Fedora 11
Posts: 19

Original Poster
Rep: Reputation: 0
louieb - Yes, you have it right...
Larry - I will try what you suggested tonight when I get home!

THANK YOU SO MUCH FOR HELPING ME WITH THIS EVERYONE!!!!!!!!!!!!!!!
 
Old 09-08-2009, 10:11 AM   #20
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
If you find we have helped you solve your problem please mark it solved with the thread tools at the top of the page.
 
Old 09-08-2009, 11:21 AM   #21
axnst1
LQ Newbie
 
Registered: Aug 2009
Location: Pittsburgh, PA
Distribution: Fedora 11
Posts: 19

Original Poster
Rep: Reputation: 0
Larry, you guys have already helped me tons, and I truly appreciate it! I will most certainly close this thread out ASAP! I can't wait to be off work so that I can go home and try what you suggested! Once I am able to boot, I will close this issue out and let you move on to rescuing someone else!

Then I am going to spend some time trying to figure out how this whole dual boot thing actually works...I don't just want it to work....I want to know how and why/why not it works...and what went wrong with my install...that way next time maybe I can help someone else!

Actually, I am thinking about starting my own website dedicated to my quest of installing, using, and advancing Linux. Kind of like a diary. I want to gather up all the different things I have/had to Google, all the different apps I have/had to download, all the different problems I have/had to over come and I want it all to be available in a single place. For the next brave soul to read and implement!
 
Old 09-08-2009, 12:35 PM   #22
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
I left something out last night about hiding the first partition. I think if you have the time here is the way I boot. The method is called chainloading. This is one of the most complete tutorials I have come across

http://www.justlinux.com/forum/showt...hreadid=147959

In his signature at the bottom of his posts there is another good link called Just booting tips. Once setup this way you never have to worry about deleting a partition and loosing grub as long as it is not the grub partition you delete.
 
Old 09-08-2009, 01:16 PM   #23
axnst1
LQ Newbie
 
Registered: Aug 2009
Location: Pittsburgh, PA
Distribution: Fedora 11
Posts: 19

Original Poster
Rep: Reputation: 0
Great! Thanks! I will check it out!
 
Old 09-09-2009, 09:52 AM   #24
axnst1
LQ Newbie
 
Registered: Aug 2009
Location: Pittsburgh, PA
Distribution: Fedora 11
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Larry Webb View Post
When you try to boot either os do you get a grub prompt or boot screen? If not with your live cd in terminal as root see if you can bring up the grub prompt by typing grub then hit enter. If you get a
grub>
enter the following

root (hd0,1)
makeactive
map (hd0,1) (hd0,0)
map (hd0,0) (hd0,1)
chainloader +1
boot

Windows is particular and needs to think it is booting from the first partition but appears on the second. If this boots windows then we will straighten out your menu.lst
Hi Larry,

After running the above suggested commands, I am still not able to boot. It made no difference.

So I started reading up on the Grub bootloader in order to try to get my system to boot again and I am starting to make sence of it. There are a few things though that I still don't know.

1. Where can i find and how can I edit my menu.lst file?
2. Is there a single menu.lst file, or is there one on each drive?
3. Where do I find the OS image files so that I can reference them in the menu.lst file?

There's so much to learn...
 
Old 09-09-2009, 12:23 PM   #25
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,990

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Your boot info script shows Grub in the master boot record of sda (hd0) pointing to your Linux partition on sdb for boot files. It also shows windows files in master boot record of sdb. You should have sda (hd0) set as first boot priority and it should boot if that information is correct. Your windows entry in menu.lst file should be:

rootnoverify (hd0,1)
chainloader +1

If you have sdb set to first boot priority (Fedora disk) that disk has windows in the master boot record and you will have to modify the boot.ini file if you want to use that to boot Fedora (more complicated).

Quote:
Where can i find and how can I edit my menu.lst file?
The menu.lst file is under the directory /boot/grub/. You can use any text editor to edit it as long as you are logged in as root.

Quote:
Is there a single menu.lst file, or is there one on each drive?
Depends. Each Linux distribution that used Grub will have the files. If you choose to install Grub (standard), each will then have a menu.lst file. It is not necessary to have one on each drive and usually you will only use one menu.lst file regardless of the number of operating systems. Depends upon the method used to boot each.

Quote:
Where do I find the OS image files so that I can reference them in the menu.lst file?
If you are referring to the kernel and initrd files, they are usually in the /boot directory.
 
Old 09-09-2009, 12:32 PM   #26
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
First can you boot Fedora without the live cd?

You should have one menu.lst per linux distro inatallation.

The boot loader in the mbr of the hd points to the (hopefully) right menu.lst.

Try the command as root

find /etc./grub/grub.conf (That command should tell you the location.)

Being honest I have no experience with fedora but if nobody jumps in I will stay with you.
 
Old 09-09-2009, 12:42 PM   #27
axnst1
LQ Newbie
 
Registered: Aug 2009
Location: Pittsburgh, PA
Distribution: Fedora 11
Posts: 19

Original Poster
Rep: Reputation: 0
Thank you everyone! Unfortunately, I can't try out any of this until I get home tonight again! Sorry!
 
Old 09-15-2009, 10:02 PM   #28
axnst1
LQ Newbie
 
Registered: Aug 2009
Location: Pittsburgh, PA
Distribution: Fedora 11
Posts: 19

Original Poster
Rep: Reputation: 0
Sorry everyone for not responding to this sooner. We have a new baby in the house and it's pretty hard to find time for hobby right now...

Here's what's in my Windows boot.ini file:
_________________________________________________________________________________
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Home Edition" /noexecute=optin /fastdetect
_________________________________________________________________________________

I see no reference to Linux or a redirection to GRUB.




When I tried to find out what my Grub.conf file contains, here's what I got:
_________________________________________________________________________________
[liveuser@localhost ~]$ su
[root@localhost liveuser]# cd /
[root@localhost /]# find /etc/grub/grub.conf
find: `/etc/grub/grub.conf': No such file or directory
_________________________________________________________________________________

As a matter of a fact, there is no /etc/grub directory at all...

I am so lost...Please help!


Thanks...
 
Old 09-15-2009, 10:20 PM   #29
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
I am sorry but I gave you the wrong command, I forgot you have more than one hd.

Using the fedora cd from terminal or the command line

find /dev/sdb/etc./grub/grub.conf


You will not see no reference to grub in your windows inf. file.

Last edited by Larry Webb; 09-15-2009 at 10:22 PM.
 
Old 09-15-2009, 11:10 PM   #30
axnst1
LQ Newbie
 
Registered: Aug 2009
Location: Pittsburgh, PA
Distribution: Fedora 11
Posts: 19

Original Poster
Rep: Reputation: 0
Hi Larry,

No problem! I just appreciate the help!

Here's what I get when I run what you mentioned above:
_____________________________________________________________________________________
[liveuser@localhost ~]$ su
[root@localhost liveuser]# find /dev/sdb/etc./grub/grub.conf
find: `/dev/sdb/etc./grub/grub.conf': Not a directory
_____________________________________________________________________________________



There is no such directory as '/dev/sdb'
_____________________________________________________________________________________
[root@localhost liveuser]# cd /
[root@localhost /]# cd dev
[root@localhost dev]# cd sdb
bash: cd: sdb: Not a directory
_____________________________________________________________________________________


Thanks!
 
  


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
Dual Boot Win Xp Pro and Fedora 1o abejr Linux - Newbie 6 07-13-2009 07:47 AM
Dual Boot Win XP/Fedora 6 Techno T Fedora 21 05-19-2007 11:19 PM
Fedora Core 6 and Win Xp dual boot eugen.serban Linux - Newbie 2 04-04-2007 01:23 AM
When I boot my comp. (dual boot sys-Suse 10.1 & Win XP) the first boot stalls. philip niedermeyer Linux - Desktop 5 11-13-2006 07:04 PM
Fedora Core 3 + Win XP Dual Boot azrael808 Linux - Software 19 01-17-2006 01:15 PM


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