LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-06-2005, 05:57 AM   #1
Noido
Member
 
Registered: Apr 2005
Location: Cambridge, UK
Distribution: Slackware 10.2
Posts: 48

Rep: Reputation: 15
removing slackware + lilo


recently, I got hold on a nice cheap laptop for installing linux onto. Unfortunately, I now need to remove the linux partition from my main PC because I've run out of space on my hard drive.

I have slackware installed on a secondary (slave) hard drive, along with a windows data partition. what I need to know is how to uninstall linux *and* lilo so my PC boots normally to windows.

I found this http://support.microsoft.com/kb/q171611/

which tells you how to remove lilo, but I'm not sure if this will let my computer boot normally, and if I can just erase the linux partitions with partition magic or somesuch program once it is gone.

Also, I'm not sure where lilo IS installed, if it's on the MBR of my master hard drive, or the linux root partition... I used the BitBender forums guide to installing slack if that helps.

http://www.bitbenderforums.com/vb22/...?postid=311808


thanks in advance for any help!

~noido
 
Old 09-06-2005, 06:09 AM   #2
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Put in your WinXP install CD and boot from it. At the recovery console, type:
Code:
fixboot
and
Code:
fixmbr
Then, use any partition program you like to delete the partitions. This should successfully remove any and all traces of Linux.
 
Old 09-06-2005, 06:12 AM   #3
Noido
Member
 
Registered: Apr 2005
Location: Cambridge, UK
Distribution: Slackware 10.2
Posts: 48

Original Poster
Rep: Reputation: 15
no CD

I haven't got a winXP cd

I bought a compaq (woops) so I don't get anything with it. I have a recovery partition, and no CDs.

how wonderful.

is there a way I can get a CD/make one?
 
Old 09-06-2005, 06:58 AM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
never had to boot into a recovery partition but i imagine it works the same as a disk.

in which case you could change lilo to boot into that recovery partition, execute fixmbr and then reboot.

You could borrow a win cd from a friend/work to use its recovery feature, or buy a copy (i would reccomend this if you use windows a lot, you wil lcome to a point it needs reinstalling).

Last edited by ethics; 09-06-2005 at 07:00 AM.
 
Old 09-06-2005, 07:14 AM   #5
Noido
Member
 
Registered: Apr 2005
Location: Cambridge, UK
Distribution: Slackware 10.2
Posts: 48

Original Poster
Rep: Reputation: 15
oh no, the recovery partition won't let you run that, it's some weird compaq thing that isn't XP what about that microsoft lilo -u thing?
 
Old 09-06-2005, 07:55 AM   #6
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Try a bootdisk, a dos one should do it, but you can also use an xp one.
http://bootdisk.com/bootdisk.htm

EDIT: oops, a dos bootdisk doesn't do fixmbr, but: fdisk /mbr
 
Old 09-06-2005, 08:19 AM   #7
Noido
Member
 
Registered: Apr 2005
Location: Cambridge, UK
Distribution: Slackware 10.2
Posts: 48

Original Poster
Rep: Reputation: 15
hehe, don't mean to be annoying, but to clarify: fdisk /mbr will remove lilo and I can boot normally? (and then remove linux partitions of course)
 
Old 09-06-2005, 08:20 AM   #8
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
hi,
/sbin/lilo -u restores original MBR.

regards
 
Old 09-06-2005, 08:23 AM   #9
Noido
Member
 
Registered: Apr 2005
Location: Cambridge, UK
Distribution: Slackware 10.2
Posts: 48

Original Poster
Rep: Reputation: 15
heh thanks i'll try lilo first, then fdisk if that fails (which i doubt it will)
 
Old 09-06-2005, 08:41 AM   #10
Noido
Member
 
Registered: Apr 2005
Location: Cambridge, UK
Distribution: Slackware 10.2
Posts: 48

Original Poster
Rep: Reputation: 15
right ^^ that worked perfectly, thanks everyone for the help, and for putting up with me!

~noido
 
  


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 LILO -=Sabin=- Linux - Software 5 01-08-2008 12:06 AM
Removing Linux + LILO Pr0metheus Linux - Newbie 3 03-20-2005 01:13 PM
Removing lilo ebit Linux - Newbie 11 07-28-2004 03:31 AM
Removing LILO sunday2 Linux - Software 4 05-15-2004 06:26 PM
Removing LILO mrobi Linux - General 2 01-21-2003 01:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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