LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-08-2007, 10:30 PM   #1
biksuni
LQ Newbie
 
Registered: Feb 2007
Posts: 13

Rep: Reputation: 0
Smile Dual Boot Vista & Fedora


Hi Everyone!

I am having a problem booting Vista after installing Fedora.
I have 2 hard drives. Vista has been installed in first partition of first drive. ie. (hd0,0)
and I installed Fedora 6 in first partition of second drive. ie. (hd1,0)
Both installation went well.
But when I restarted the computer, fedora boots wells. But when I choose to boot vista, computer restarts automatically.
And that goes on and on.
I did change the menu.lst as well with:
title "Windows Vista"
root (hd0,0)
chainloader +1

Could anyone please tell me what went wrong? And how would I be able to use both Vista and Fedora.

cheers,
biksuni
 
Old 04-09-2007, 02:53 AM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
Usually you need "makeactive" in the Windows section, and make sure there is a one line gap between the Windows and the Fedora entries.
 
Old 04-09-2007, 03:16 AM   #3
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Use rootnoverify instead of root.

Last edited by jay73; 04-09-2007 at 03:19 AM.
 
Old 04-09-2007, 03:52 AM   #4
biksuni
LQ Newbie
 
Registered: Feb 2007
Posts: 13

Original Poster
Rep: Reputation: 0
didn't work

Thanks for your response.
I did exactly what you said but didn't work.

The line of code is like this:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd1,0)
# kernel /boot/vmlinuz-version ro root=/dev/hdc1
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd1,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Window Vista
rootnoverify (hd0,0)
makeactive
chainloader +1

title Fedora Core (2.6.18-1.2798.fc6)
root (hd1,0)
kernel /boot/vmlinuz-2.6.18-1.2798.fc6 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18-1.2798.fc6.img
 
Old 04-09-2007, 04:20 AM   #5
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
Boot from Fedora Core Linux 1st CD or DVD and type the following commands at shell prompt:
Code:
boot: linux rescue
Just follow on screen instructions, when prompted let installer search Linux installation. If the search operation is successful, your Linux installation will be available at special directory called /mnt/sysimage.
Prepare system for GRUB reinstallation
Code:
# chroot /mnt/sysimage
# cd /boot/grub
Install grub to the drive set to boot in the bios, if it is the first drive which is a SATA drive, use this command:
Code:
# grub-install /dev/sda
If above command returned any error, return with –recheck option to probe a device map even if it already exists:
Code:
# grub-install --recheck /dev/sda
Exit from chrooted enviroment and reboot Linux:
Code:
# sync;sync;exit;exit
# reboot

Last edited by Junior Hacker; 04-09-2007 at 04:38 AM.
 
Old 04-09-2007, 07:22 AM   #6
greeniguana00
Member
 
Registered: Feb 2007
Distribution: Gentoo AMD64
Posts: 42

Rep: Reputation: 15
If you don't have it working already, just redo it the way that will give you the least troubles:

1. First, disable the Linux drive in the BIOS, set the Vista drive as the boot drive in the BIOS, and see if you can boot Vista.
*If you can, you are all set. Go to step 2.
*If you cannot boot Vista, use the Vista CD to reinstall the Vista bootloader.

2. Set the Linux drive as the boot drive in the BIOS. See if you can boot Linux.
*If you can, go on to step 3.
*If you cannot, you need to install GRUB onto this hard drive and make sure Linux can boot with only the hard drive it is on.

3. Make sure you can boot both Linux and Windows by going into the BIOS and changing boot priority. Keep the Linux drive as the boot drive. Add the following lines to grub.conf

title Windows Vista
rootnoverify (hd1,0)
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

Why is this the best method? Well, if either drive fails, you will still be able to boot into the other OS!

http://www.gnu.org/software/grub/man...ode/index.html
 
Old 04-09-2007, 07:43 AM   #7
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
You don't need to map Windows when it is on the primary drive in the first partition, and Fedora does not use "rootnoverify" Fedora only uses "root". And there should be a one line gap between "hiddenmenu" and "title Window Vista".

Last edited by Junior Hacker; 04-10-2007 at 05:20 AM.
 
Old 04-09-2007, 07:51 AM   #8
greeniguana00
Member
 
Registered: Feb 2007
Distribution: Gentoo AMD64
Posts: 42

Rep: Reputation: 15
Quote:
Originally Posted by Junior Hacker
You don't need to map Windows when it is on the primary drive in the first partition, and Fedora does not use "rootnoverify" Fedora only uses "root".
The point is that he can set it up in a better way. The way he has it, the Linux drive requires the Windows drive to boot.

Last edited by greeniguana00; 04-09-2007 at 07:52 AM.
 
Old 04-09-2007, 08:12 AM   #9
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
It does no matter which drive is set to boot in the bios, as long as grub is installed in the MBR of the drive that is set to boot in the bios. But Windows expects to be on the first drive in a primary partition, so just leave it the way it is and put grub in the MBR of the primary partition and it "the bootloader" will pass boot instructions to the PBR (partition boot record) you choose. You "greeniguana00" obviously do not know the order of the boot process, and you should read up on this topic!

http://www.webopedia.com/DidYouKnow/...ootProcess.asp
 
Old 04-09-2007, 08:34 AM   #10
greeniguana00
Member
 
Registered: Feb 2007
Distribution: Gentoo AMD64
Posts: 42

Rep: Reputation: 15
Quote:
Originally Posted by Junior Hacker
It does no matter which drive is set to boot in the bios, as long as grub is installed in the MBR of the drive that is set to boot in the bios. But Windows expects to be on the first drive in a primary partition, so just leave it the way it is and put grub in the MBR of the primary partition and it "the bootloader" will pass boot instructions to the PBR (partition boot record) you choose. You "greeniguana00" obviously do not know the order of the boot process, and you should read up on this topic!

http://www.webopedia.com/DidYouKnow/...ootProcess.asp
Not to add gasoline to the fire, but it really does matter which hard drive GRUB is installed on. The way you are suggesting, the MBR of the Vista drive loads GRUB from the boot partition of the Linux drive. This means to boot any operating system at all, both drives must be working. If the Linux drive fails, you can't load Vista because the MBR refers to a bootloader on a non-existent drive instead of the Vista bootloader. If the Windows drive fails, the Linux drive will have nothing in its MBR to load GRUB.

The way I am suggesting, if the Vista drive were to fail, the Linux drive would still boot fine, and if the Linux drive were to fail, Vista would still boot fine.

"But Windows expects to be on the first drive in a primary partition" which is why I included the lines
map (hd0) (hd1)
map (hd1) (hd0)
 
Old 04-09-2007, 02:56 PM   #11
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
OK people, you're talking about different things so there isn't any point in arguing. If BIOS is set to boot off the Windows drive, then there isn't any need for mapping. But if you change the order and set BIOS to boot off the Linux drive, then you do need the map statements.

biksuni, if you are still struggling with this issue, then I do think it may be worthwhile following greeniguana's advice. That way, each drive will have its own bootloader so you can simply go into BIOS and change boot discs if you want to boot windows. This is rather inconvenient but at least you'll be able to get into windows while you're looking for a solution to your issue.

Btw, Fedora does use rootnoverify. Leave off the "noverify" and try booting something like FreeBSD or Solaris - it won't work. Whether windows accepts both root and rootnoverify, I don't know. I've always used the latter and I've never had any issues.

Last edited by jay73; 04-09-2007 at 03:16 PM.
 
Old 04-09-2007, 06:36 PM   #12
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
Quote:
Originally Posted by biksuni
I have 2 hard drives. Vista has been installed in first partition of first drive. ie. (hd0,0)
and I installed Fedora 6 in first partition of second drive. ie. (hd1,0)
This is what tells me where the boot loader should be.

http://apcmag.com/5046/how_to_dual_b...nstalled_first

Failing hard drives is a pure long shot, when you have the install discs, you can boot into any one and alter the MBR. If you find Grub is too much of a pain in the butt and would rather use Vista's boot loader, all the information you need is in the link above and below.

http://apcmag.com/5485/dualbooting_vista_and_xp

EDIT: Jay, looks like I'm retiring Etch, gonna stay with testing.
EDIT: In my prior post, I meant to say "MBR of the primary drive" not partition.

Last edited by Junior Hacker; 04-09-2007 at 06:46 PM.
 
Old 04-09-2007, 06:48 PM   #13
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 393

Rep: Reputation: 47
Quote:
Originally Posted by Junior Hacker
You don't need to map Windows when it is on the primary drive in the first partition, and Fedora does not use "rootnoverify" Fedora only uses "root". And there should be a one line gap between "hiddenmenu" and "title Window Vista".
Fedora uses rootnoverify. Here's a cut from my grub menu, untouched by human hands.

title Windows XP
rootnoverify (hd0,0)
chainloader +1
 
Old 04-09-2007, 07:12 PM   #14
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 59
My mistake, got too many distributions, and don't see Fedora too often, still haven't made it there yet to check, probably won't be today neither. I was looking at Mandriva's, another red hat derivative.
 
Old 04-10-2007, 04:19 AM   #15
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 393

Rep: Reputation: 47
Quote:
Originally Posted by Junior Hacker
My mistake, got too many distributions, and don't see Fedora too often, still haven't made it there yet to check, probably won't be today neither. I was looking at Mandriva's, another red hat derivative.
That's one of the fun things about Linux. There's so many distros and so little time.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual boot SuSE10.2 & Vista is not possible riba43 Suse/Novell 20 12-29-2007 02:53 PM
HP Laptop with dual boot Linux & Vista Radiolarian Linux - Laptop and Netbook 16 07-11-2007 05:51 AM
Vista, dual boot & other stories Grife General 21 03-26-2007 12:07 PM
Mandriva &Vista dual boot question ichimeno Linux - Newbie 2 03-24-2007 07:47 AM
Trying to dual boot Vista Ultimate/Fedora 6.0--Install Problems SlashAxlX Fedora - Installation 1 03-22-2007 02:38 PM


All times are GMT -5. The time now is 06:46 PM.

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