LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-19-2005, 01:58 PM   #1
Pr0metheus
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Rep: Reputation: 0
Help removing


I orginally had WinXP installed. I then installed Slackware on a new partition. I now wish to remove Slackware and the LILO boot loader. When installing i wrote LILO to the MBR thinge. Now if i use lilo -u /dev/hda to uninstall LILO, i get an error on starting up "missing operating system". (Luckily i had a slackware boot disk lying around to replace lilo). So how can I get rid of Slackware and LILO, but leave WinXP?
 
Old 03-19-2005, 02:04 PM   #2
cylix
Member
 
Registered: Dec 2004
Location: Ohio
Distribution: Fedora Core 3
Posts: 125

Rep: Reputation: 15
Boot into XP

If your mbr is damaged, boot the XP cdrom, drop to the recovery console, type fixmbr.

That should get you back to XP and from there you can delete your linux partitions with the disk manager utility.
 
Old 03-19-2005, 02:05 PM   #3
Pr0metheus
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Original Poster
Rep: Reputation: 0
BIG problem - no xp cd came with my computer! so ne other way around it?
 
Old 03-19-2005, 02:16 PM   #4
Pr0metheus
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Original Poster
Rep: Reputation: 0
I found out that i have the recovery console on the computer as a partition. And fixmbr just gives me the same error as lilo -u


Any other ideas?
 
Old 03-19-2005, 03:05 PM   #5
cavalier
Member
 
Registered: Feb 2005
Location: Denver, CO
Distribution: Slack 12, tweaked just so (though I'm also a fan of Ubuntu)
Posts: 198
Blog Entries: 1

Rep: Reputation: 30
If you can get an old 95/98 boot disk with fdisk on it you can run
Code:
fdisk /mbr
to rewrite the MBR and get rid of LILO completely.
 
Old 03-19-2005, 03:06 PM   #6
Pr0metheus
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Original Poster
Rep: Reputation: 0
[this has already been suggested, and tried, and produced an error on start-up!]

Sorry, mis-read your post. This hasnt been tried bcos M$ says not to do it if more than 4 partitions exist, and i have more than 4.

Last edited by Pr0metheus; 03-19-2005 at 03:27 PM.
 
Old 03-19-2005, 03:12 PM   #7
cylix
Member
 
Registered: Dec 2004
Location: Ohio
Distribution: Fedora Core 3
Posts: 125

Rep: Reputation: 15
Boot XP Recovery console.

Run chkdsk /r

You might be lucky and have the ability to check from another partition.

You might be looking at a bad sector on your MBR. In which case there is only one thing you can do... use the drive warranty and get it replaced.

If you can't restore the MBR, it sounds like your hard drive is borked or the IDE controller is gone.

Just by chance, have you used fdisk in linux to verify the windows partition is there? You might have removed your XP partitions by accident or simply corrupted the partition table.

fdisk /dev/hda

Then p for print and when done reading, q for quit (m for help)
 
Old 03-19-2005, 03:17 PM   #8
numb
Member
 
Registered: Mar 2005
Location: Canada
Distribution: Slackware
Posts: 47

Rep: Reputation: 15
Quote:
Originally posted by Pr0metheus
this has already been suggested, and tried, and produced an error on start-up!
fdisk /MBR << I think the slash and the caps make a diff.. Been a while since I have used it though.. just a thought. gl
 
Old 03-19-2005, 03:31 PM   #9
Pr0metheus
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Original Poster
Rep: Reputation: 0
in reply to cylix:

yes im sure winXp exists, as im on it rite now! (slackware couldnt detect network card and neva got round 2 fixing it).

so far,


"lilo -u /dev/hda" gives an error on start-up missing operating system
"fixmbr" gives the same error

and im not doing fdisk /mbr incase something goes completely wrong.

EDIT:

If i have LILO boot straight to XP without showing the prompt/menu, is it safe to remove the linux partions? Plz be very sure when you answer me here as linux as been my way-out to reconfigure LILO wen something goes wrong!

Last edited by Pr0metheus; 03-19-2005 at 03:33 PM.
 
Old 03-19-2005, 04:01 PM   #10
numb
Member
 
Registered: Mar 2005
Location: Canada
Distribution: Slackware
Posts: 47

Rep: Reputation: 15
Quote:
and im not doing fdisk /mbr incase something goes completely wrong.
I
I have done this a million times.. nothing will go wrong.. it simply takes everything out of your mbr and totally re-writes it with the microsoft defaults.. this is the only I have ever been able to remove lilo and it has worked for me at least 10 times (million was an exageration :P )
 
Old 03-19-2005, 04:05 PM   #11
Pr0metheus
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Original Poster
Rep: Reputation: 0
I found a solution! When slackware was installed, LILO was written to the MBR and the linux parition set as the "active" one. So when fixmbr was run, it did fix the MBR, but for the linux partition.

The solution was:
Boot on XP
Use the disk manager to set the WinXP partion to active
Restart to System Recovery
fixmbr

and thats it sorted (i hope)

I loads straight to XP without any mention of LILO, so im hoping that means I can get rid of the linux partions now!

Thanks for all your help people!
 
Old 03-19-2005, 05:19 PM   #12
cylix
Member
 
Registered: Dec 2004
Location: Ohio
Distribution: Fedora Core 3
Posts: 125

Rep: Reputation: 15
Yes, you have successfully remove lilo and you can remove your linux partitions.

In your case, it looks like lilo was installed on the linux partition and the linux partition set active. (then you had your choice of where to boot)
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing files wihtout removing containing Direcotry caps_phisto Linux - General 2 10-07-2004 08:16 AM
removing grub joe_hoax Linux - General 1 11-30-2003 11:37 AM
removing XP SP1 DAChristen29 General 2 10-16-2003 01:57 PM
Removing newline. Tarts Programming 2 10-16-2003 11:49 AM
Removing hotplug.... CryptDragoon Linux - Newbie 1 10-11-2003 07:12 AM

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

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