LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-01-2006, 08:54 AM   #1
hsimah
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Slackware 12.1
Posts: 173

Rep: Reputation: 30
Removing Linux/Lilo from MBR


I installed Slackware on my mothers computer because its better than Windows for what she needs (its an old PC) using one of my spare hard drives (/dev/hdb). I left XP on the original drive (/dev/hda), and told Lilo to be installed to the MBR.

I need my drive back, but when I pull it out it won't load Lilo or go to Windows. I understand that it needs the other drive in there to start. I was wondering how to remove it all so the computer boots straight to XP. If I have to format it and reinstall XP I can do that, I was just hoping someone could help me set the computer back to its original state.

Thanks!
 
Old 09-01-2006, 09:13 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
This is asked a lot so if you had searched you could have got an answer quicker than starting a new thread. Take a look here and also search on google for "remove+lilo".
 
Old 09-01-2006, 09:43 AM   #3
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
If you have the windows install dvd, you can boot with it. Go to repair console and run fixmbr. That should sort it.
 
Old 09-01-2006, 09:57 AM   #4
slackb0t
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware64-current on Thinkpad Carbon X1
Posts: 264

Rep: Reputation: 63
If you have a win 98 boot disk (which everyone should imo)

boot with it then type

fdisk /MBR


and that should do it also.
 
Old 09-01-2006, 01:09 PM   #5
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Am I the only one in the world where "fdisk /mbr" leaves you with no bootloader what-so-ever? Supposedly, it's supposed wipe the MBR and then re-install the NT bootloader but that has NEVER happened the literal hundred or more times I've done it (I always use a 98 boot disk tho). It does exactally as it suggests. "Formats" the MBR. I always get a black screen after rebooting stating "No hard disks found..."

monsm's suggestion is the only thing that I've found that will re-install the NT bootloader to the MBR....

Last edited by jong357; 09-01-2006 at 01:11 PM.
 
Old 09-01-2006, 04:54 PM   #6
bonowax
Member
 
Registered: Jul 2006
Location: Suburbs of Lisbon, Portugal
Distribution: Slackware, FreeBSD
Posts: 75

Rep: Reputation: 16
Hello guys;

The DOS utility "fdisk /mbr" writes a standard PC style Master Boot Record. This MBR will load the primary partition marked "active" ( there can be only one ).
If none of your primary partitions is marked active ( or holds a valid image for booting ) then you'll be unable to boot... Maybe that's the case, jong357?
In any case, if you already have a XP partition on your drive, run fdisk and make sure that that partition is marked "active" and make it active if it's not; after that run "fdisk /mbr" and you should be good to go...

Cheers
 
Old 09-01-2006, 07:21 PM   #7
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Ahhhhhh... You could be spot on there... Thanks for the info...
 
  


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
Removing Linux + LILO Pr0metheus Linux - Newbie 3 03-20-2005 01:13 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
Removing RH from MBR esael Slackware 2 09-15-2002 05:26 PM
MBR, LILO and Linux Installation CtrlAltDel Linux - Distributions 4 12-07-2001 03:19 PM
removing LILO from the MBR keegan1 Linux - General 10 06-12-2001 04:10 AM

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

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