LinuxQuestions.org
Help answer threads with 0 replies.
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 09-23-2005, 06:50 AM   #1
Astropicachu
Member
 
Registered: May 2003
Location: London U.K.
Distribution: dual b. XP Pro and Mandrake 10
Posts: 75

Rep: Reputation: 15
Unhappy Editing Lilo or MBR...HELP ME SOMEBODY...!


Hello people...

Hope u all ok,

I really need some of your help in here please.
In the last week i made so many clean installs that i can't even remember...
I'm not sure if these are newbie questions on not, cause i'm guessing that for most of u this is easy stuff,... anyway...
Lest's say that i've got 1 hdd with win xp pro and other with the new mandriva. Because, when at the linux install on my F(slave) which was put there after i had win installed on my C(master), linux puts Lilo in the C MBR, (is this right or m i completely wrong?), what happens if i want to take that F drive to another machine? I supose i'll have to reinstall lilo on the mbr of the other master. Is this right? and if so how do i do that?
And in the same way i'll have to delete lilo from my C in the first machine, dont i?
Last week, before this installation i'm talking about, i had a dual boot on the same hdd and decided to delete the linux partitions, which i did and after that i could not get anything up, not even windows, ... it would just crash there and then. I supose that the reason was that lilo was still in the mbr and would freak out becdause there was no linux partitions.
Oh guys... i'm suffering... please help me.

I dont know if i went on n on ... and could not explain myself adequately.
I hope you understood my dilema.

Thanks a million in advance

all the best
 
Old 09-23-2005, 07:38 AM   #2
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
Lilo installing to the mbr of C: is right.
Right, if you move the drive to another machine you would have to install lilo there.
Right, if you're going to remove the linux partition you want to uninstall lilo from the mbr as it contains location information for bootable partitions. The uninstall command is lilo -U or -u

There are other options for where to install lilo but I personally had no luck with them.
 
Old 09-23-2005, 09:21 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
dracolich is basically correct - what is unsaid is that this all requires a bootable Linux system. Say Knoppix, or your install disk in a recovery or chroot mode.

What might be easier for you is to change the BIOS boot device to make your current secondary the boot disk, then install Linux with lilo going to the MBR of that disk.
Change the BIOS back, boot the XP disk, go to recovery console and run fixmbr.

This way the two disks will be independent, but will require you to change the BIOS to flip-flop between operating systems.
However, you will be able to take the secondary out, and use it as a boot disk on another machine without having to do any "clean-up" - on either machine.
 
Old 09-23-2005, 09:45 AM   #4
Astropicachu
Member
 
Registered: May 2003
Location: London U.K.
Distribution: dual b. XP Pro and Mandrake 10
Posts: 75

Original Poster
Rep: Reputation: 15
Thanks a lot dracolich and syg00,
but what u r saying syg, if i got it right is a new linux install on my slave drive,(set as master), and getting lilo in there; and then fixing the mbr on what it was my master with xp. But then if lilo is working at boot time from my linux drive which by now would be the master one, if i take that drive away what is going to boot the xp drive left? (which at this point i would have to set as master again).
M i getting confused?...
U see, my question is:
If lilo on the linux drive was taking over the boot of both drives, stops because i take the drive away...what is going to boot win?
Would win still boot? ...
 
Old 09-23-2005, 10:00 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
The answer to your question is that each disk has a boot record - the fixboot will put the XP one back on your C: drive - which must be the boot disk when you do it. Which of the boot records is the (active) MBR (M is for MASTER) is determined by which disk the BIOS designates as the boot device.
Once the Linux disk is removed, and the XP made boot, its boot record (by definition) is the MBR.

If you are lucky, you may be able to dual boot from the Linux disk - it's easy enough to set up, but the installers typically don't handle the situation very well when the XP disk is non-primary; as will be the case when you boot the Linux disk.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lilo on MBR tez Slackware - Installation 3 10-22-2004 09:20 AM
lilo won't go into the MBR breakerfall Linux - General 2 10-09-2003 11:11 AM
No new kernel-option in LILO after editing lilo.conf corwax Debian 3 08-26-2003 08:55 PM
LILO on the MBR Culbert Linux - Newbie 6 03-21-2003 07:01 PM
mbr had over write so lilo is gone how to rewrite lilo to mbr mch Linux - Software 4 10-25-2002 02:55 PM

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

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