LinuxQuestions.org
Review your favorite Linux distribution.
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 07-20-2004, 03:39 AM   #1
ebit
Member
 
Registered: Jul 2004
Distribution: Slackware 10.1
Posts: 39

Rep: Reputation: 15
Removing lilo


I'm selling my laptop so I need to remove lilo so I can reinstall windows XP. I've only got a recovery cd ( one that came with laptop ), lilo -u doesn't work because it doesn't have a saved xp bootloader and I havn't got a floppy drive so cant boot from a win98 floppy.

Yes I've done search. I can renember reading that mandrake cd1 can install xp bootloader but cant find anything about it.

So how do I get rid of lilo?

Last edited by ebit; 07-20-2004 at 03:48 AM.
 
Old 07-20-2004, 04:14 AM   #2
eddieman
LQ Newbie
 
Registered: Dec 2003
Distribution: Mandrake 9.2
Posts: 28

Rep: Reputation: 15
Ummm...reinstalling XP should automatically get rid of the bootloader...it writes over the boot sector...

But...for future reference

Put XP CD in Drive
Let it load up...until you come to a screen that says push F3 or R or something to enter the recovery console

Inside the recovery console simply type "fixmbr" and it will ask you...warning this will replace boot sector blah blah blah...do you wish to continue...choose...yes...and it will write it over...and tell you it has successfully done so...and then...no more Lilo
 
Old 07-20-2004, 04:21 AM   #3
ebit
Member
 
Registered: Jul 2004
Distribution: Slackware 10.1
Posts: 39

Original Poster
Rep: Reputation: 15
Its not a full XP, just the recovery cd to restore the hd. Doesn't overwrite lilo.

Last edited by ebit; 07-20-2004 at 04:22 AM.
 
Old 07-20-2004, 04:23 AM   #4
kater0000
Member
 
Registered: Aug 2003
Distribution: Gentoo
Posts: 43

Rep: Reputation: 15
put in any winxp cd, use the repair mode and type 'fixmbr' at the prompt. All done !
 
Old 07-20-2004, 04:28 AM   #5
ebit
Member
 
Registered: Jul 2004
Distribution: Slackware 10.1
Posts: 39

Original Poster
Rep: Reputation: 15
I've only got a CD to restore the HD so I cant use fixmbr.
 
Old 07-20-2004, 07:29 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,676

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Do you have access to a Windows 98SE install CD? You can boot to a DOS prompt and run fdisk.

fdisk /mbr
 
Old 07-20-2004, 04:38 PM   #7
ebit
Member
 
Registered: Jul 2004
Distribution: Slackware 10.1
Posts: 39

Original Poster
Rep: Reputation: 15
I've havn't got a win98 cd. Any other idea's?
 
Old 07-20-2004, 07:11 PM   #8
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
Here is an idea... but since it doesn't look like you tried the others I doubt it will help you.

Change /etc/lilo.conf so that it expects to boot windows from the first partition and nothing else.
Install the new lilo
Now, install Xp.
Boot xp from lilo
open a command prompt and type "fdisk /mbr"

There done.
 
Old 07-21-2004, 02:12 AM   #9
MadSkillzMan
Member
 
Registered: Jul 2004
Distribution: SuSE, Mandrake
Posts: 142

Rep: Reputation: 15
a restore CD should wipe the HDD, unless in this case theres a hidden partition which would be bad...

What about the Ultimate Boot Disk?
 
Old 07-23-2004, 03:33 AM   #10
ebit
Member
 
Registered: Jul 2004
Distribution: Slackware 10.1
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by frob23
Here is an idea... but since it doesn't look like you tried the others I doubt it will help you.

Change /etc/lilo.conf so that it expects to boot windows from the first partition and nothing else.
Install the new lilo
Now, install Xp.
Boot xp from lilo
open a command prompt and type "fdisk /mbr"

There done.
I thought you could only do fdisk /mbr from a recovery console?

Quote:
a restore CD should wipe the HDD
Doesn't overwrite the mbr
 
Old 07-23-2004, 07:27 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,676

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
You can download a DOS bootdisk from bootdisk.com that includes the fdisk utility.
 
Old 07-28-2004, 03:31 AM   #12
ebit
Member
 
Registered: Jul 2004
Distribution: Slackware 10.1
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by michaelk
You can download a DOS bootdisk from bootdisk.com that includes the fdisk utility.
As I said in the first post I aint got a floppy drive.

What I did in the end was install XP on a 18 gig partition (18.6 gig drive ) and install a small slack onto the remaining 600mb partition. I set lilo to boot straight into windows with no option for lilo. So now all you get is a message at the start saying

"lilo 2.? loading Windows"

Good enough to sell.
 
  


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 slackware + lilo Noido Linux - Newbie 9 09-06-2005 08:41 AM
Removing Linux + LILO Pr0metheus Linux - Newbie 3 03-20-2005 01:13 PM
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 10:54 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