LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 01-15-2006, 01:25 AM   #1
Kokoro
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Rep: Reputation: 0
Can LILO boot Win2k from logical partition?


I have this issue. I had a hard disk that was divided like this:

1 FAT32 Primary Active (Windows Me)
2 Extended Primary
3 Linux Ext3 Logical
4 Linux Swap Logical
5 Linux Ext3 Primary
6 Linux Ext3 Primary

I was using lilo to load windows and linux without problems.
I managed to make another logical partition for Win2k and the hard disk now looks like this:

1 FAT32 Primary Active (Windows Me)
2 Extended Primary
3 NTFS Logical (Windows 2k)
4 Linux Ext3 Logical
5 Linux Swap Logical
6 Linux Ext3 Primary
7 Linux Ext3 Primary

I installed Win2k and then reinstalling lilo. Now when I boot I can choose to boot from WinMe or Linux, and when I choose WinME I get the ntldr menu where I have to pick from Me and 2K. Ntldr is in the first partition.
I'd like to know if it's possible to boot directly to Win2k from lilo. I've read somewhere that Windows can't boot from a logical partition, but ntldr doesn't seem to have problems booting windows from there.
 
Old 01-15-2006, 10:07 AM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, Slackware, Slax, Knoppix, SysrescueCD
Posts: 1,328

Rep: Reputation: 51
You have to go through the nt loader because when you installed the second Windows OS it "saw" the first one. This is just Windows thinking it's the only fish in the pond, trying to be helpful, and screwing things up. See the URL below for a good description of what happened and how to prevent it next time.

Windows can boot from a logical partition. I do it myself. But it doesn't like to do this by default and you will have to make some minor changes to force it to do so. I wouldn't want the one nt loader booting the two different flavors of Windows either, because then they are dependent on each other. If you remove the wrong one, things won't boot.

The best website on this dual booting stuff that covers Windows in logicals as well as preventing the nt loader from it's default "I am king,I must control everything!" behavior, see:

http://www.goodells.net/multiboot/

Track down and follow every link on this website. It covers things from a Windows perspective, but there are many other sources that cover LILO and GRUB.

[edit]
The link on the above website labeled "Background - Multibooting Principles" covers specifically what the nt loader did to you.
[/edit]

Last edited by haertig; 01-15-2006 at 10:10 AM.
 
Old 01-15-2006, 11:12 AM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
If your Win2k is in partition 3 then it is NOT a primary partition.

All logical partitions start at the 5th position.

Yes Lilo can boot both WinMe and Win2k separately only if they were installed separately originally. The way it has been set up in your system means NTldr's boot files are deposited inside WinMe partition and may not be available in Win2k partition. These files are needed if Win2k is booted independently.

You can click this link[/url] to see an example of how 3 Dos and 3 Windows are booted by Grub. Lilo can be done similarly as it has its own method of hiding partitions and re-map the drive order.

Last edited by saikee; 01-15-2006 at 11:14 AM.
 
Old 01-18-2006, 09:22 AM   #4
Kokoro
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by saikee
If your Win2k is in partition 3 then it is NOT a primary partition.

All logical partitions start at the 5th position.
Yes, but I showed the physical layout.

Quote:
Originally Posted by saikee
Yes Lilo can boot both WinMe and Win2k separately only if they were installed separately originally. The way it has been set up in your system means NTldr's boot files are deposited inside WinMe partition and may not be available in Win2k partition. These files are needed if Win2k is booted independently.
Not necessarily, since I was able to fix it. Read on.

Quote:
Originally Posted by saikee
You can click this link[/url] to see an example of how 3 Dos and 3 Windows are booted by Grub. Lilo can be done similarly as it has its own method of hiding partitions and re-map the drive order.
I've read the tutorial, but it's not what I was looking for. You installed Windows on primary partitions only. The tutorial says "All Dos, Windows, Solaris and BSDs need to be installed and booted from primary partitions". That's wrong, by the way.

Quote:
Originally Posted by haertig
You have to go through the nt loader because when you installed the second Windows OS it "saw" the first one. This is just Windows thinking it's the only fish in the pond, trying to be helpful, and screwing things up. See the URL below for a good description of what happened and how to prevent it next time.

Windows can boot from a logical partition. I do it myself. But it doesn't like to do this by default and you will have to make some minor changes to force it to do so. I wouldn't want the one nt loader booting the two different flavors of Windows either, because then they are dependent on each other. If you remove the wrong one, things won't boot.

The best website on this dual booting stuff that covers Windows in logicals as well as preventing the nt loader from it's default "I am king,I must control everything!" behavior, see:

www .goodells. net/multiboot/

Track down and follow every link on this website. It covers things from a Windows perspective, but there are many other sources that cover LILO and GRUB.
Thank! That's exactly what I was looking for. You see, I wasn't trying to boot directly from LILO because I didn't want to press an extra button. By making each OS independent from each other I can, for example, get rid of the WinMe partition any day without losing the capacity to boot to Win2K.
I didn't followed the same procedure the tutorial explains bacause I had already installed Win2K, but all I needed to fix it was taken from there. It even explains how to fix the 8 GB barrier! I highly recommend this tutorial to understand how the booting process works.
These are the steps I took to fix the boot (once Win2K was installed):

1) I used the sys command to restore the boot sector of the WinME partition
2) I copied all the Win2K booting files from the WinMe partition to the Win2K partition (ntldr, boot.ini and friends)
3) I edited boot.ini to leave only the Win2K OS (so ntldr wont show the selection menu)
4) I fixed the boot sector of the Win2K partition as explained on the tutorial
5) I added the Win2K OS to lilo.conf and reinstalled lilo.

That's it! Now I can boot the three OS without problems.
So, to anwser the question ¿Can LILO boot Windows from a logical partition? That's a big YES!
 
Old 01-18-2006, 11:06 AM   #5
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, Slackware, Slax, Knoppix, SysrescueCD
Posts: 1,328

Rep: Reputation: 51
Quote:
Originally Posted by Kokoro
I highly recommend this tutorial to understand how the booting process works.
I couldn't agree more. Dan's website there is one of the greatest gems of the Internet, IMHO. I can't count the number of times I've referred back to it. Even given I'm much more Linux oriented than Windows now. For the casual "I just want to multiboot, spare me the details" user it would be quite overwhelming. For the user who knows enough to ask the question "Why would I ever want to boot multiple OS'es binding them together with a common partition?" then this website is wonderful.
 
Old 01-18-2006, 11:29 AM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Well it never occurs to me that people would alter the MS MBR to boot its products from the logical partition.

So we could be seeing Solaris and all the BSD systems going into extended partitions eventually.
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can Grub /LILO be installed on the logical partition? canaan Linux - Newbie 13 12-19-2005 09:18 PM
Can windows boot from a logical partition? faezeh Fedora 15 04-03-2005 12:12 PM
Can't boot linux on a logical partition poison5151 Linux - Newbie 4 02-03-2004 08:14 PM
Lilo boot hangs when trying to boot Win2K Gates1026 Linux - General 2 01-20-2004 10:42 AM
lilo and logical partition error iggymac Linux - Software 6 12-20-2001 11:50 AM


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