LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-04-2004, 02:42 AM   #1
Slapdash
LQ Newbie
 
Registered: Mar 2004
Posts: 10

Rep: Reputation: 0
Question LiLo Boot????


Hi
I'm new to linux ( 5 days now )


I have 2 HDD drives in my PC. On the C:\ I have WinXP installed.
on the other Drive I have a Fat32 partision and a Linux partision.
It is in a Removable bay witch I take to work and back.
Now when both of the drives are in the PC I boot up with LILO and can select Linux or Windows etc. It boots int Linux by Default and if I select Windows it boots fine.

Now when I remove the drive with Linux on and try to Boot into Windows Normaly I get this kind of thing on my screen
L 010110110101010101010101
0101010101010101010110101
010101_

How can I get it to boot correctly into Windows If my other HDD is not attached and to boot into Linux if it is.

P.S I have MANDRAKE Linux 9.2
Please help.

Last edited by Slapdash; 03-04-2004 at 02:49 AM.
 
Old 03-04-2004, 03:11 AM   #2
eccles23
Member
 
Registered: Jun 2003
Location: Australia
Distribution: Gentoo/kernel 2.6.2
Posts: 45

Rep: Reputation: 15
well that's a hard one...
it is clear that there is no master boot record on your windows drive...
hmmm...
I seem to recall something way back in the mists of time...
perhaps if you put that HDD into another computer, booted with a windows boot disk (that has fdisk on it) and typed:

fdisk /mbr

? I cannot guarantee this will work - in fact it probably wont - from memory what it does is wipe the master boot record?

since you move that HDD around I assume it wouldn't be too big of a deal for you to back the stuff up on it and do a full windows reinstall?

if you can do that, then make it the only disk in the computer, do the windows reinstall, and then what you have is a proper windows master boot record on that drive...

then you can put it back into the linux box (as the slave drive) and add the appropriate lines to lilo to allow you to select it if you want to boot from it...

that's about the best I can suggest I am afraid - but I am sure that some of our clever friends here might be able to come up with something better

perhaps find a (good) windows forum and ask about recreating a proper windows master boot record that will work with winXP...

 
Old 03-04-2004, 03:14 AM   #3
aeolus
Member
 
Registered: Feb 2004
Posts: 66

Rep: Reputation: 15
you can use "dos boot disk",run "fdisk /mbr" , then boot correctly into windows
About linux, I can't entirely understand your meaning,but according to error message, your linux is installed on second IDE, so your lilo has some problem,you can add disk parameter on lilo.conf. It will be fine.
 
Old 03-04-2004, 03:20 AM   #4
Slapdash
LQ Newbie
 
Registered: Mar 2004
Posts: 10

Original Poster
Rep: Reputation: 0
THanks for the fast reply and help

I booted into XP Fine before I installed Linux on the other drive.

THe PC at work is not a Linux box its a Win 2000 box. but it boots into Win 2000 fine.

Do you think that there might be a setting for it on my C: drive?
Does LILO right itself into the Bios somehow?

If I do deside to make a clean install will it replace the Master boot record?

The thing is I really want to give Linux a go. but I also need to be able to boot to Windows without having the other drive in my PC all the time
 
Old 03-04-2004, 03:21 AM   #5
aeolus
Member
 
Registered: Feb 2004
Posts: 66

Rep: Reputation: 15
fdisk /mbr means delete none dos record and create dos record!
That is you can delete linux record in MBR and boot windows
 
Old 03-04-2004, 03:26 AM   #6
Slapdash
LQ Newbie
 
Registered: Mar 2004
Posts: 10

Original Poster
Rep: Reputation: 0
@ aeolus

"About linux, I can't entirely understand your meaning,but according to error message, your linux is installed on second IDE, so your lilo has some problem,you can add disk parameter on lilo.conf. It will be fine."

Thats correct yes. THe second drive is a slave drive. where is this lilo.conf on my PC? Will it be on the Linux partision or on the Fat32 partision on the slave drive? or on my C:\ drive?
Maybe that could solve it.

The thing I cant understand is how the h3ll does lilo pic up anything if the drive linux is installed on aint even attached to the PC?
 
Old 03-04-2004, 03:43 AM   #7
aeolus
Member
 
Registered: Feb 2004
Posts: 66

Rep: Reputation: 15
lilo.conf is on your linux partition.
"The thing I cant understand is how the h3ll does lilo pic up anything if the drive linux is installed on aint even attached to the PC?"
i don't see it
 
Old 03-04-2004, 03:45 AM   #8
Slapdash
LQ Newbie
 
Registered: Mar 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks.
I'll go give it a try tommorow.
I'll let you know.
 
Old 03-04-2004, 07:56 AM   #9
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Quote:
The thing I cant understand is how the h3ll does lilo pic up anything if the drive linux is installed on aint even attached to the PC?
Well it doesn't-- which is the problem!

All bootloaders come in two stages. There is one stage on the MBR (the Master Boot Record of the first hard drive). If you consider what is happening with the system at this point, you'll understand.

The system is booting, and has found the hard drives. It now needs to know if there are bootable OSes, and where they are, but since it doesn't know anything but the partition table at this point, the boot process has a problem. This is solved by the MBR which contains a pointer to where the details of how to actually boot the OS(es) are located. This is the second stage bootloader, which is located on the root partition of the OS (in C:\ if Windows, and in \ of the Linux partition).

The configuration file for the second stage of LiLO is in /etc/lilo.conf, and details how to display the menu, what the bootable OSes are, and where their boot files are located.

So if the Linux drive is not connected, the LiLO stage in the MBR can be found, but the location that it points to can't, so LiLO cannot load the second stage which tells the PC how to boot any of the OSes on the system.

I would suggest either:
  • using a third-party (Windows) boot manager such as Boot Magic (whose second stage is kept on the Windows partition, so if you don't have the Linux drive attached, you just won't choose Linux)
  • replacing LiLO with the Windows bootloader (boot from the XP install CD, go to the Recovery Console and login as Administrator and type FIX /MBR to restore the Windows bootloader). Linux will no longer be bootable from the XP bootloader menu, but you can add it to the Windows bootloader by copying the Linux bootsector to a floppy and then to the Windows C:\ drive, and adding an entry to the bootloader menu. Google for the details.
  • transferring LiLO to a floppy disc and then restoring the Windows bootloader as above. In this case, if the floppy wasn't present, the Windows bootloader would start normally. If you wanted to boot Linux, you'd have to both attach the drive and insert the floppy.

Hope this helps.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
lilo boot screen wont show windows to boot into!! please help Fear58 Linux - General 3 07-10-2004 10:55 PM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 06:00 PM
I install Slackware on small HDD with LILO, can't boot LILO? kleptophobiac Slackware 4 08-10-2003 05:50 PM
lilo and openmosix was just installed and was added to lilo boot menu but.. kublador Linux - Software 0 06-18-2003 02:59 AM
Made a bootdisk with RedHat 7.1 to boot: Gave me SYSLINUX, not LILO:Want to use LILO Colonel Panic Linux - Software 0 08-17-2001 07:21 PM


All times are GMT -5. The time now is 02:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration