LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-20-2001, 07:45 AM   #1
whepin
Member
 
Registered: Dec 2001
Location: thunder bay, on, Canada
Distribution: Windows vista & Ubuntu
Posts: 113

Rep: Reputation: 15
How could i remove lilo and boot the pc?


I have two sys.I installed win98 first and bootmagic,then i installed linux too(lilo also),so i have two boot tools,first bootmagic,then lilo,Imagin how uninterested!Please tell me how could i remove lilo and boot the pc with bootmagic only?Thanks!

:smash:
 
Old 12-20-2001, 08:03 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
To uninstall lilo just run:

/sbin/lilo -u /dev/hdaX

Make sure you use the right devicename.

Lilo saved a copy of the old boot record in /boot usually called something like boot.XXxx the number depends on the device. XX is the major number of the device and xx is the minor number of the device. You can manually restore it with dd but it's safer to use lilo to do the job.

After removing lilo you need to make sure bootmagic is pointing directly to your /boot partition.
 
Old 12-20-2001, 08:30 AM   #3
whepin
Member
 
Registered: Dec 2001
Location: thunder bay, on, Canada
Distribution: Windows vista & Ubuntu
Posts: 113

Original Poster
Rep: Reputation: 15
when i /sbin/lilo -u /dev/hda2 ,It says fatal error.

Fatal:timestamp in boot sector differs from date of /boot/boot.0302.Try using the -U option if u know what u r doing .
How should i do then!
Good luck!

And could i install lilo in the MBR?

Last edited by whepin; 12-20-2001 at 08:32 AM.
 
Old 12-20-2001, 09:34 AM   #4
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well the boot.0302 file only gets created the first time. So if you run lilo several times after making changes then the timestamp won't match up anymore. You can use the -U instead of -u to force the uninstall without checking the timestamp.

You can install lilo in the MBR if you would rather use lilo instead of boot magic. Just change the line boot=/dev/hda in /etc/lilo.conf and rerun /sbin/lilo
 
Old 12-20-2001, 02:05 PM   #5
PuterFreaK
Member
 
Registered: Nov 2001
Location: Seattle, WA, USA
Distribution: RedHat Linux 7.2
Posts: 84

Rep: Reputation: 15
Why not dump BootMagic and just use lilo/grub?

BTW, i read somewhere dos fdisk can clear the master boot record...
From a *caugh*windows*caugh* bootdisk type:
c:\
fdisk /MBR


It doesnt actually say that it did anything and its never actually fixed anything for me...
 
Old 12-20-2001, 09:51 PM   #6
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
Quote:
Originally posted by PuterFreaK
Why not dump BootMagic and just use lilo/grub?

BTW, i read somewhere dos fdisk can clear the master boot record...
From a *caugh*windows*caugh* bootdisk type:
c:\
fdisk /MBR


It doesnt actually say that it did anything and its never actually fixed anything for me...
Fdisk /MBR won't really "fix" anything, it will just rewrite/restore the MBR to its glorious (*cough*), Windows-only state of being.
 
Old 12-20-2001, 11:23 PM   #7
whepin
Member
 
Registered: Dec 2001
Location: thunder bay, on, Canada
Distribution: Windows vista & Ubuntu
Posts: 113

Original Poster
Rep: Reputation: 15
So what should i do then?I am still not clear

Good luck all of u.
 
Old 12-20-2001, 11:58 PM   #8
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
whepin, I'm a little confused. When you boot up, which boot loader is running?
 
Old 12-22-2001, 09:36 AM   #9
Dayewalker
LQ Newbie
 
Registered: Nov 2001
Location: Texas
Distribution: Redhat 7.2
Posts: 23

Rep: Reputation: 15
Quote:
Originally posted by DMR
Fdisk /MBR won't really "fix" anything, it will just rewrite/restore the MBR to its glorious (*cough*), Windows-only state of being.
From my experience, I've never been able to fix anything with the FDISK /MBR command. I tried using it after I screwed up the MBR on my second harddrive using GRUB and could no longer boot to Windows and apparently it wasn't very happy with me or anything that I had done to it.
 
  


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
Remove GRUB or LILO Boot screen CircuitSix Linux - General 4 07-27-2005 08:04 PM
Remove Lilo from daul boot system moredoug Linux - Software 7 02-01-2005 10:38 PM
How to Remove LILO Murdock1979 Slackware 3 10-13-2003 09:49 PM
Howto: remove lilo & put win2k boot loader back? hugodog Linux - General 2 05-10-2002 01:45 PM
How to remove entries in the lilo boot menu? Rampage2884 Linux - Newbie 4 04-09-2002 11:51 PM

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

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