There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet java laptop malware memory monitor motherboard music network obp printer problem ram registry repair router slow software sound toshiba trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Dual Boot Mishap

Reply  
Thread Tools
scorpio101's Avatar
Junior Member with 3 posts.
 
Join Date: Sep 2004
Experience: Intermediate
19-Sep-2004, 11:49 AM #1
Dual Boot Mishap
I have a problem with my computer that consumed up most of yesterday. Loaded Fedora onto a second internal hard drive using Grub, I believe on the partition not MBR. Now, computer boots with Fedora but not Windows XP. Primary hard drive with XP is listed on hard ware devices in Fedora but can't be accessed. I reintstalled XP (didn't reformat drive) but still won't boot. I know I should configure Grub boot loader using a text editor but don't know the line code to use, or how to save it properly. Any suggestions much appreciated.

PG
saikee's Avatar
Senior Member with 3,408 posts.
 
Join Date: Jun 2004
Location: Newcastle
Experience: A Linux user gone nuts on multi-boot
19-Sep-2004, 01:46 PM #2
Timely question when I posted a boot menu booting a bunch of Linux and several WIndows, ha!

If will help us to sort your problem out if we know

List of hard disks and their partitions. If you are in FC2, just click system tools/terminal, type fdisk -l and copy and paste the output here.

Also Grub controls the booting process by a file /boot/grub/menui.lst. Post it here and we can take it from there.

Your Windows should boot unless you have a 3rd party boot manager controlling the Windows booting.
scorpio101's Avatar
Junior Member with 3 posts.
 
Join Date: Sep 2004
Experience: Intermediate
19-Sep-2004, 07:36 PM #3
Attempting fix
Thanks Saikee for your prompt response. I'm trying to get you the information you requested to help solve the problem.
Terminal will not reconize fdisk command. I am posting response to my instructions.

Output:
[jeff@localhost jeff]$ fdisk -l
bash: fdisk: command not found

However, under Hardware Browser it displays the following:

Drive/dev/hda (Geom: 155061/16/63) (Model: WDC WD800BB-00CAA1)
Drive/dev/hdb (Geom: 19929/255/63) (Model: Maxtor 6Y160P0)

DEVICE START END SIZE(MB) TYPE

/dev/hda
hda1 1 155040 76309 ntfs
155041 155061 10 free space

/dev/hdb
hdb1 1 13 102 ext3
hdb2 14 19799 155206 ext3
hdb3 19800 19929 1020 linux-swap

Terminal can not find grub file

output:
[jeff@localhost jeff]$ boot/grub/menui.lst
bash: boot/grub/menui.lst: No such file or directory
saikee's Avatar
Senior Member with 3,408 posts.
 
Join Date: Jun 2004
Location: Newcastle
Experience: A Linux user gone nuts on multi-boot
20-Sep-2004, 06:39 AM #4
OK we now know you boot with hda and it got only Windows.

Hdb has the Linux and you might have /boot set up as hdb1 while rest of the Fedora is in hdb2 with swap in hdb3.

The reason fdisk -l didn't work is you have to log in as the root user in order to have the privilege. You need to switch user (type "su" and supply the password of the root user. The command prompt will change slightly possibly with the word "root" included).

I would suggest to you to do the following

(1) Protect the installed Fedora by making a bootable floppy if you haven't done it already. To make a new one, log in as root user and at terminal mode type "grub-install /dev/fd0". That floppy will boot your Fedora if you lose Grub in the MBR.

(2) Restore the MBR of Windows. You try this to get confidence on dual boot by knowing that you can get everything back whenever you want. There are two methods.

Method (A) - you boot with the XP installation CD, go to recovery console and in command prompt just type "fixmbr". Exit and reboot and XP will be back to normal.

Method (B) - Just get a DOS or Win9x bootable floppy with fdisk.exe program inside. Boot it up and type "fdisk /mbr". Exit and reboot.

The above will allow Windows to overwrite Grub in the MBR of hda and your Fedora should become unbootable. That is when the bootable floppy comes in.

(3) Having restore Windows MBR you boot up with Fedora floppy and reinstate Grub. Same procedure as making the Grub floppy except this time you type

grub-install /dev/hda

You now have the PC boot to Fedora exactly where you start. However this complete loop shows you how the various bootloaders work. People don't lose the systems. They couldn't find them because they don't know where the bootloaders are.

(4) Finally you can amend Grub's boot menu to include Windows for booting if it hasn't got the necessaryu entries. You can use Linux editor "vi" if you haven't got GUI. If you have Fedora desktop just click the same file and open it with "gedit". In terminal mode (as root user!) you type

"vi /boot/grub/menu.lst"

Grub will boot if it has the following 3 lines

title Windows XP
rootnoverify (hd0,0)
chainloader +1

The second line tells Grub the Windows is at hda1 and there is no need to verify it as a Linux bootloader. Grub counts from zero and (hd0,0) means first partition of the first hard disk from the booting sequence.

I think you are pretty close to master your dual boot.
scorpio101's Avatar
Junior Member with 3 posts.
 
Join Date: Sep 2004
Experience: Intermediate
20-Sep-2004, 10:34 PM #5
Thank you so much for your help. I'm trying now and will let you know how I make out.

p.s. I'm now aware of the need for baby steps with Fedora before making the leap to dual booting.
Sting3R's Avatar
Member with 42 posts.
 
Join Date: Mar 2004
Location: virginia beach
24-Sep-2004, 09:36 AM #6
Thumbs up linux dual boot
easy resolve!

there is a program that was made by powerquest and now symantec has acquired it....."Partition Magic". Great program! I installed it on xp last night.....set up the linux partition and rebooted to the redhat install disks and it installed and is running fine on a dual boot. I wouldnt recommend using the "automatic partition" within the fedora install. This will take over the MBR and make your life a nightmare. Simply install the partition as an ext3 file system.....place the partition behind the windows partition and make your DOS the primary. You also want to make sure the linux is a "logical" partition.

hope this helps!

-sting3r
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:32 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.