LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 12-04-2002, 01:56 PM   #1
Rav
Member
 
Registered: Dec 2002
Location: Melbourne, Australia
Distribution: Slackware 10.0
Posts: 52

Rep: Reputation: 15
Installing Linux on the 1st partition and booting Windows off the 2nd


Hi again everyone

Atm, I have Windows XP installed on the first partition of my primary master drive. Linux is currently installed on the second partition. However, I've had enough of this setup. It's time to deny Windows it's self professed inherent right to be there and put Linux on the throne.

The first step is easy. Repartition the first partition and install Linux there. Next step is to install Windows to what used to be the second partition. I'm going to put Windows 98SE there for now. I just need something to run a few apps and games I don't want to be without. If I boot up with a 98SE startup disk, it wont see the Linux partitions. Good. Then I'll install Windows and it will overwrite the MBR with it's own shit. Bad. Then I'll use a Linux boot disk to get into Linux and reinstall and configure LILO. Good. Then I'll reboot and have the option to boot into either successfully. I hope!

Have I missed anything? I just wanted to check here to make sure. I've googled this and it's hard to find any specific info about anything other than the "Install Windows THEN Linux" shit.
 
Old 12-04-2002, 03:39 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
It's been a while since I last toyed with DOS,
but I do believe it (and thus Win9x/ME) WON'T
boot of anything other than C:, which has to be
the first primary partition on the first hard drive.

Cheers,
Tink
 
Old 12-04-2002, 04:55 PM   #3
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
In grub.conf, add these:

# this will fool windows
title Windows 98
map (hd0,0) (hd0,1)
map (hd0,1) (hd0,0)
rootnoverify (hd0,1)
chainloader +1

lilo can do the same. man lilo.conf for info

Last edited by born4linux; 12-04-2002 at 04:58 PM.
 
Old 12-04-2002, 07:13 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,740

Rep: Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923
Windows doesn't have to be on the 1st partition. On one of my PC's its the 3rd. Just set the bootable flag for that partition.

Don't know if it will work on a logical drive of an extended partition.
 
Old 12-04-2002, 08:44 PM   #5
sandman
Member
 
Registered: Sep 2002
Distribution: arch
Posts: 232

Rep: Reputation: 30
windows xp actually suggests in the book that comes with it that if you plan to dual boot with any other os to put xp on the second partition and let the other os have the first partition(c).
 
Old 12-04-2002, 09:45 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
basically it will install on any partition, when you install it just use the partition you want to install it on
 
Old 12-05-2002, 06:47 AM   #7
Rav
Member
 
Registered: Dec 2002
Location: Melbourne, Australia
Distribution: Slackware 10.0
Posts: 52

Original Poster
Rep: Reputation: 15
Thanks for the replies guys.

Windows wont let me do it. Not any version. It throws a wobbly because it needs to write files to a primary partition. Sure, you can install it to any partition you want, as long as it installs the boot files to a primary partition. Damnit!

Born4linux: Those instructions you gave look like the ones you use when you want to trick Windows into believing it's on the first hard drive. Cool trick, but not what I want. The second hard drive in my system is for data, temp files, preliminary backups and other general stuff. I'd like to keep it that way. The other problem is that when I installed the 2nd HD, I used Partition Magic to set it up and it doesn't contain a primary partition, so I can't install Windows on it even if I wanted to. I tried just to suss things out. It threw the same wobbly. I'm not repartitioning it. It's got about 60 GB of data on it and it will be a major hassle.

I don't like to give up when it seems that something can't be done, but should be possible to do, so I ended up coming across the following site:

http://home.wanadoo.nl/geurt/

It's a utility called XOSL (Extended Operating System Loader). It's free, and does look pretty cool. But I've never liked the idea of fancy boot managers at all. However, using this software, it's possible to install and boot Windows from a logical partition by installing it to a primary partition first, copying everything to a logical partition, using XOSL to hide the primary partition from Windows, and then doing a sys c: (on the logical partition that has now become c drive as far as Windows is concerned) - but XOSL has to manage it all. I understand the process involved perfectly after reading the FAQ, and it's given me an idea.

I'll have to throw in an old HD temporarily as my primary drive to install Windows. Then I could copy that installation to the logical partition I now have waiting. I'm wondering if there is any way to get LILO or grub to trick Windows like XOSL does (ie. Hide a primary partition from Windows). It's a long shot I know, but I feel it's worth asking. There'll be details to deal with I know, but if this is possible then I'll devote as much time as I need to in order to get it happening.

Thanks again everyone
 
Old 12-05-2002, 02:07 PM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
that's why you can't install windows 98 over winXP, it will wipe out the boot stuff




Why not install windows, and then install linux


you can also move linux and then fix lilo to boot it, this way you can keep your linux system

Last edited by DavidPhillips; 12-05-2002 at 02:08 PM.
 
Old 12-06-2002, 02:07 PM   #9
Rav
Member
 
Registered: Dec 2002
Location: Melbourne, Australia
Distribution: Slackware 10.0
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Why not install windows, and then install linux
That's how I've always done it.

But, I really do want Linux to reside on the outside of the disk, where your primary OS should be. I could pretend that it's just because the outer edge of a HD is faster (and it is) but it's mostly because I'm very particular, and I want Linux there.

I haven't had any luck finding more info about this yet, and maybe I wont because perhaps it's just not possible. But for me it's the ideal setup, and I'll keep looking for a way to do it

Thanks again for your replies
 
Old 12-06-2002, 05:38 PM   #10
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
try making the active partition the one you want to install windows on before installing it
 
Old 12-07-2002, 01:37 PM   #11
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
it's about pride then,
 
Old 12-18-2002, 03:55 AM   #12
jimdood3
LQ Newbie
 
Registered: Dec 2002
Location: South Carolina
Distribution: Mandrake 9 and Xandros 1
Posts: 2

Rep: Reputation: 0
You are right it does have to be installed on a primary partition, but you can have 4 primary partitions on 1 hard drive. You cannot use fdisk to create them, but partition magic will create as many primaries as you need up to 4. Works great. Partition magic can also hide primaries as needed. By the way the "extended" partition counts as a primary.

Jimmy
 
Old 12-18-2002, 04:09 AM   #13
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you can also do it with fdisk in linux
 
Old 12-20-2002, 07:17 AM   #14
finidi
Member
 
Registered: Dec 2002
Location: World
Distribution: Fedora Core 4
Posts: 127

Rep: Reputation: 15
I have Linux on hd0 and W98SE on hd1. GRUB doesn't work, but the machine can boot W98 changing boot device in BIOS. I tried all conceivable commands in grub.conf , the last attempt was:

chainloader (hd1)+1

but no success. If anyone knows how to make GRUB work......

Last edited by finidi; 12-20-2002 at 07:41 AM.
 
Old 12-21-2002, 11:11 AM   #15
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
did you install Grub in the first part of the harddrive or in the MBR?
Why do you say it doesn't work?, does it show up in screen, but you can't boot Linux from it?, do you not see a Linux label?, what exactly do you mean when you say "it doesn't work"?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
1st Linux + 2nd WinXP !!! E@zyVG Linux - General 10 04-02-2005 12:00 PM
Dual boot on Fedora/Windows || 1st hd=sata 2nd hd=IDE Mustard010 Linux - General 4 11-28-2004 02:54 PM
How to partition a (new) 2nd hdr so that it can be r/w by both Linux and Windows? Ace_Azzameen Linux - Newbie 6 03-17-2004 02:04 PM
Linux on 1st windows on 2nd hd... Teclavow Linux - Newbie 1 02-02-2004 06:12 PM
Can't boot 1st OS now after installing 2nd jillyt Linux - Newbie 3 01-05-2004 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:12 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