LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 07-26-2004, 10:08 AM   #1
The Oate
Member
 
Registered: May 2004
Location: Massachusetts
Posts: 134

Rep: Reputation: 16
Question Bootloader Problem with Dual Boot


I have an 18gb hard drive that I partitioned 10gb for my Windows installation. When I installed Mandrake 10, I used about 7 for the main linux partition and the rest for the swap. My problem was that when it asked where I wanted to install the bootloader to, I chose to put it at the beginning of the / partition. However, when I restarted, the comp just booted into Windows like it would without any other OS installed. Should I have installed the bootloader to the MBR, and if not, where should I put it?
 
Old 07-26-2004, 10:13 AM   #2
mijenks
Member
 
Registered: Mar 2004
Location: NY
Distribution: Gentoo
Posts: 112

Rep: Reputation: 15
Using a LiveCD, run cfdisk or fdisk or whatever partition utility it comes with. There will be an option to toggle a certain partition bootable or not. Make the windows partition not-bootable and make the linux / partition bootable. That should solve your problems.

--EDIT--

You should keep it on the linux / partition as that is the safest thing. As long as that partition is bootable and not the windows partition, you should be all set. Make sure that you have an entry for windows, too. Here's how it should llook for lilo:

other=/dev/hda1
table=/dev/hda
label=<insert label of your choice here>

Last edited by mijenks; 07-26-2004 at 10:15 AM.
 
Old 07-26-2004, 11:27 AM   #3
The Oate
Member
 
Registered: May 2004
Location: Massachusetts
Posts: 134

Original Poster
Rep: Reputation: 16
What's this LiveCD that you say I need to use?
 
Old 07-26-2004, 02:17 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
No need for a liveCD.

Boot the Mandrake 1st install CD and select rescue mode. Do not mount the partitions. Then use fdisk or cfdisk to change the boot flag.
 
Old 07-27-2004, 04:58 PM   #5
The Oate
Member
 
Registered: May 2004
Location: Massachusetts
Posts: 134

Original Poster
Rep: Reputation: 16
I tried using the 1st install cd for Mandrake, but this just ended up making me reinstall. The good thing, though, was I did this and just put the bootloader on the MBR this time, and the dual boot now works great.
 
Old 07-28-2004, 09:10 AM   #6
mijenks
Member
 
Registered: Mar 2004
Location: NY
Distribution: Gentoo
Posts: 112

Rep: Reputation: 15
OK, so you solved your problem, but for anyone else that has trouble, here's a solution. Not sure how it works with Mandrake, but I have made this work with Slackware. I'm sure it works with Knoppix, too (I always keep a copy of it, for rescue reasons). The way to do it with Slackware (you could have actually popped the Slackware install disk, or any install disk for that matter, in and used it, even though you're using MDK) is you just hit enter at the boot: prompt, then log in as root, and type either 'cfdisk' or 'fdisk' at the command line. Simple as that, then follow above instructions for toggling the bootable option. Fedora Core 1 used Disk Druid, IIRC, when I installed it a few months back, and I think you have the ability to use the FC1 install disk in the same way as I've mentioned for the Slack disk. Anyhow, happy trails.
 
Old 07-28-2004, 10:30 AM   #7
snt
Member
 
Registered: May 2004
Posts: 53

Rep: Reputation: 15
All you needed to do was change the boot order in the BIOS.
 
Old 07-28-2004, 10:36 AM   #8
The Oate
Member
 
Registered: May 2004
Location: Massachusetts
Posts: 134

Original Poster
Rep: Reputation: 16
How would changing the boot order in BIOS help?
 
Old 07-28-2004, 10:41 AM   #9
snt
Member
 
Registered: May 2004
Posts: 53

Rep: Reputation: 15
Because the bootloader was installed onto a drive other than that with windows.

Assuming Windows is on HD0.
If the bootloader was installed on HD2, but HD0 is checked first in the BIOS, Windows would load, not the bootloader.

Windows may be on 2 and the bootloader on 0. But if 2 is checked first.... you get the idea.
 
Old 07-28-2004, 10:45 AM   #10
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Quote:
Originally posted by The Oate
I tried using the 1st install cd for Mandrake, but this just ended up making me reinstall. The good thing, though, was I did this and just put the bootloader on the MBR this time, and the dual boot now works great.
That's the way I tend to do it as well
 
Old 07-28-2004, 10:49 AM   #11
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Quote:
Originally posted by snt
Because the bootloader was installed onto a drive other than that with windows.

Assuming Windows is on HD0.
If the bootloader was installed on HD2, but HD0 is checked first in the BIOS, Windows would load, not the bootloader.

Windows may be on 2 and the bootloader on 0. But if 2 is checked first.... you get the idea.
You've lost me as well
 
Old 07-28-2004, 10:51 AM   #12
The Oate
Member
 
Registered: May 2004
Location: Massachusetts
Posts: 134

Original Poster
Rep: Reputation: 16
All you can change in BIOS is what physical drive to boot from. How would that help you when both OS's are on the same drive?
 
Old 07-28-2004, 10:55 AM   #13
snt
Member
 
Registered: May 2004
Posts: 53

Rep: Reputation: 15
Maybe I should ask this, do you have more then one hard drive your system?

I assume that you do. Windows was installed on one of the drives.
Lilo ( the linux bootloader) was installed on a DIFFERENT drive.

The bios is set to boot the Windows drive first, therefore never getting to the bootloader.
Changing the boot order in the bios to the drive with the bootloader on it would have solved the problem.

Of course, if you only have one hard drive in the system then everything I said is pointless and I will shut up now.
 
Old 07-28-2004, 10:57 AM   #14
snt
Member
 
Registered: May 2004
Posts: 53

Rep: Reputation: 15
Quote:
Originally posted by The Oate
All you can change in BIOS is what physical drive to boot from. How would that help you when both OS's are on the same drive?
It won't. I missed that part, so I will shut up now.
 
Old 07-28-2004, 10:58 AM   #15
The Oate
Member
 
Registered: May 2004
Location: Massachusetts
Posts: 134

Original Poster
Rep: Reputation: 16
No prob, thought maybe you knew some trick I didn't. Thanks anyway
 
  


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
Dual Boot & bootloader question perlMonkey Linux - Software 1 10-24-2005 07:14 PM
Windows XP/FC 3 dual boot, bootloader doesn't show up jacksaw Linux - General 2 03-31-2005 11:07 AM
Win 2K / Mandrake 10 Dual Boot Bootloader issues SamRaimi Mandriva 5 11-02-2004 02:28 PM
RH9, winXP dual boot - not bootloader screen Stanley George Linux - General 2 06-22-2003 10:45 AM
dual bootloader problem c0c0deuz Linux - General 3 06-13-2002 07:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 05:01 AM.

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