LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-28-2006, 09:59 PM   #1
stugi
LQ Newbie
 
Registered: Feb 2006
Posts: 4

Rep: Reputation: 0
Unhappy Keeps loading straight to Windows (even with Grub installed)


I'm trying to get Linux installed on my PC for the first time, but keep running into the same problem with the 2 distros I've tried (Fedora Core 4 and Ubuntu 5.10). My PC has 4 drives; a 125GB NTFS, a 120GB FAT32, a 80GB FAT32 and a 20GB NTFS. On the 20GB NTFS I have Windows XP installed. When I tried to install Fedora on the 120GB FAT32 drive, everything was running smoothly until it came to rebooting after installation. Although I'd selected Fedora as the default boot OS, with Win XP as the secondary, on reboot it'd just load straight into Win XP, without even as much as showing an option screen to give me a chance to select an OS.

Next up, I decided to give Unbutu 5.10 a try, but a similar problem occurs, this time half-way through installation. After stating that I wanted to use Grub, and it recognising I also have Win XP installed, it tells me to reboot the system (using the "continue" option) and take out the installation CD, then the installation process will continue. So I do this and to my disappointment, just as with the bodged Fedora installation, it loads straight into Win XP again.

Please does anyone have any suggestions? I'm dying to Linux installed, I'm fed up with Windows but can't afford to get rid of it yet just yet. I really need a dual-boot.
 
Old 02-28-2006, 11:39 PM   #2
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,463

Rep: Reputation: 299Reputation: 299Reputation: 299
When the installer asks you where to install grub, select your MBR.
 
Old 03-01-2006, 12:08 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
And by MBR, jens means boot record of the boot drive (presumably the 20Gig) - that's why it's the "MASTER" boot record.
It's possible the installer is installing to the boot record on the Ubuntu disk, which the BIOS won't attempt to look for if it finds a valid boot record earlier in the search sequence.
 
Old 03-01-2006, 12:51 AM   #4
stugi
LQ Newbie
 
Registered: Feb 2006
Posts: 4

Original Poster
Rep: Reputation: 0
With both distos it's asked me if I wanted to install GRUB to the MBR (to which I selected "yes"). I tried it again just now, to make sure as I wasn't 100% certain I'd done this before. I still get the same thing though, loading straight to Windows on reboot. Any other suggestions? This is driving me nuts.
 
Old 03-01-2006, 02:21 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Well personally I'd be looking at the boot record of each disk to see if any had been updated.
Perhaps you'd better check to see if you have any BIOS options (e.g. virus protection) turned on that would inhibit updating the MBR.
 
Old 03-01-2006, 03:21 AM   #6
stugi
LQ Newbie
 
Registered: Feb 2006
Posts: 4

Original Poster
Rep: Reputation: 0
It's been suggested by someone sle, that GRUB is being installed to a different MBR (on the drive reserved for Linux) to the one on the XP drive. I'm going to try selecting that drive to install GRUB on next time, if this doesn't work I've been advised to try changing the drive cable around, so the Linux drive is on the end plug. As a last resort I'm just gonna try creating another partition on the XP drive and installing on that.

I'm not too sure how to view the boot record for each disk, but I'll check the BIOS to see if anything's up there.

Much appreciated.
 
Old 03-01-2006, 03:35 AM   #7
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
You can configure the Windoz boot loader to load linux as well. So whenever you boot your system you will be presented with a boot menu from which, you can select which OS to boot. Conversely, you can install GRUB on the primary drive which in your case holds Windoz, and thus, you will have the choice to boot into linux or Windoz or any other OS.
 
Old 03-01-2006, 03:57 AM   #8
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Or, go into the BIOS, and put the Ubuntu disk before the Windows one in the boot sequence. This avoids having to change the cables. This way, it'll find the Grub that's installed on the Ubuntu disk before it reaches the Windows disk.

This is not a very clean solution. A better way would indeed be to put the Grub boot loader on the Windows disk and leave that disk to be the first disk in the boot sequence.
 
Old 03-01-2006, 04:12 AM   #9
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
just as a note, it's VERY bad to install Linux on a win/DOS filesystem (FAT16/32 and NTFS) because they can't handle proper Unix permissions. During installation you should get the option to partition your drive, do that and change FAT32 filesystem to ext3 or similar.

You can use your other FAT partition for transferring files easily between the 2 OS'
 
Old 03-01-2006, 07:29 AM   #10
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
When installing Ubuntu on a separate drive from Windows, I had a similar issue. I tool the lazy way out, and put GRUB on a floppy.

As I read this, I cannot recall the Ubuntu installer (or any other one for that matter) asking me WHICH DRIVE to put grub on.

To see what's where, use dd:
read the mbr:
dd if=/dev/hdX bs=512 count=1 |hexdump -C |more (replaceX with your drive id)
1st 446 bytes is grub, 64 bytes primary partition table, 2 bytes "signature"
(You may need to boot from a live-CD distro to do this)

On my list to try: The ultimate boot CD (can't find the link, but Google will)
 
Old 03-01-2006, 05:11 PM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Or if you're lazy, "hexdump /dev/hd?" - easier to remember ...
All the loaders, and especially their messages, make it pretty obvious who's been installed where.

Last I looked (a while back) the UBCD was a bit of a disappointment - I rarely find I need anything more than Knoppix.
 
Old 03-01-2006, 06:30 PM   #12
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
To clarify the issue:
What OS is on which drive?
Code:
fdisk -l /hdX
- where X is a,b,c,d

From which drive do you boot (BIOS setting)?

What is in /boot/grub/menu.lst? (currently Ubuntu is installed - right?)
Code:
cat /boot/grub/menu.lst
As an additional hint: you can use grub from the splash-screen you are apparently seeing:
press "c" when you see the splash-screen (TAB gives you a list of commands and auto-completes them)
everything after this is just assuptions right now - so, if you know how - do it - if you don't - post the requested info

Last edited by jomen; 03-01-2006 at 06:33 PM.
 
Old 03-02-2006, 08:49 AM   #13
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
stugi

you seem to be good at trying to troubleshoot so I will give my aussie cents worth.

1) if you are ok with opening up your computer.....and playing with your bios after recording the old settings.....disconnect all drives but the one you want linux installed on......change its jumper to master if its IDE....change bios to boot order cd then hd....install linux and put grub into the mbr (its mbr for the seeable drive).....if that fails I deserve to go to MS, heh heh


2) now I am guessing the 120 is the current slave to ide controller 1 so its jumper will have to change

3) if that worked...if you try it....then reset jumpers and the bios will jump to mbr for the XP drive...no problem.....if you have a live cd....eg knoppix or kanotix or the linux install cd may have a rescue/recovery option you can put grub into the mbr for the first drive.....but I suggest you read my tut first


since I suspect you have ide drives you are still likely to have a floppy drive so put grub onto floppy for a test pls if you are cautious
 
  


Reply



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
GRUB not loading SUSE or Windows Dougal Linux - Newbie 43 02-11-2006 08:21 AM
Loading Windows with GRUB scouture Linux - Software 3 03-09-2005 06:07 PM
SuSE 9.1 and Windows Xp refuse to live in harmony: error loading windows through GRUB sanctumtacete Linux - Newbie 3 10-19-2004 07:47 AM
GRUB loading windows teamstatic84 Linux - General 5 12-29-2003 08:46 PM
GRUB has installed itself over Windows Gramphos Red Hat 3 09-25-2003 03:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:59 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
Open Source Consulting | Domain Registration