LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-12-2004, 04:52 PM   #1
johnnybezak
Member
 
Registered: Oct 2003
Location: Bendigo, Australia
Distribution: Have used Yellow Dog, thinking Mandrake for X86 System
Posts: 46

Rep: Reputation: 15
Can't get rid of Lilo, grub wont load why not?


Ok hres my problem - i've tried to install gentoo a few times, and im pretty sure that i got the kernel config, bootloader etc. right this time and it must be the umpteenth time that i've formatted /dev/hda - anyhow for some strange reason LILO still exists somewhere on my hard disk - how do i get rid of it so that grub will boot up gentoo for me? how can it still be on the hard disk even though i've deleted all partitions and put new filesystems on them time and again? Thanks
 
Old 02-12-2004, 05:15 PM   #2
busbarn
Member
 
Registered: Feb 2002
Location: Denver, CO US
Distribution: Arch
Posts: 453

Rep: Reputation: 30
emerge -C lilo

when you emerge grub, be sure to set it up on the mbr llike the documentation states. Good choice going with grub--it's much easier to deal with.
 
Old 02-12-2004, 05:18 PM   #3
darin3200
Guru
 
Registered: Dec 2002
Distribution: Gentoo!
Posts: 1,153

Rep: Reputation: 45
Its in your mbr. If you have a windows boot disk you can boot with that and
fdisk /mbr
I'm not sure how to do in linux though
 
Old 02-13-2004, 02:31 AM   #4
johnnybezak
Member
 
Registered: Oct 2003
Location: Bendigo, Australia
Distribution: Have used Yellow Dog, thinking Mandrake for X86 System
Posts: 46

Original Poster
Rep: Reputation: 15
what is the mbr? i just went with grub cos it's the default - the way they name hard disk partitions is wack! thnx for the help!
 
Old 02-13-2004, 02:37 AM   #5
johnnybezak
Member
 
Registered: Oct 2003
Location: Bendigo, Australia
Distribution: Have used Yellow Dog, thinking Mandrake for X86 System
Posts: 46

Original Poster
Rep: Reputation: 15
hmm i tried to open /mbr with fdisk but it said that it couldnt open it (i did that with my Gentoo LiveCD) any suggestions as to where its hiding? i didnt install lilo with gentoo will emerge -c gentoo still work? thnx guys
 
Old 02-13-2004, 09:35 AM   #6
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,688

Rep: Reputation: Disabled
Did you use a windows version of fdisk as darin3200 wrote?

In Linux do
Code:
dd if=/dev/nul of=/dev/hdx bs=1k count=1
where "x" in hdx is your actual drive letter.

After that the MBR contains a lot of zeros .

CAUTION. I'm not exactly sure about the actual size of the MBR and behind that comes the data for the file system structure. Thus I recommend you do a follow-up reading on this or you do it only when you re-install anyway from scratch. In that case you can change either bs=1M or count=100 to clear any file system remnants. Also
Code:
man dd

Last edited by JZL240I-U; 02-13-2004 at 09:37 AM.
 
Old 02-13-2004, 06:27 PM   #7
johnnybezak
Member
 
Registered: Oct 2003
Location: Bendigo, Australia
Distribution: Have used Yellow Dog, thinking Mandrake for X86 System
Posts: 46

Original Poster
Rep: Reputation: 15
thanks jzl - turns out i had actually just misconfigured grub, when i ran setup i entered grub> setup (hd0,0) instead of grub> setup (hd0)

thanks for your help anyway - problem solved
 
  


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
windows wont load from lilo (did before) petezilla Linux - Newbie 7 01-06-2006 02:24 AM
Installed lilo can't get rid of grub jon_k Linux - Software 2 10-25-2004 04:30 AM
Grub wont load Win XP Memzback Fedora 13 05-07-2004 12:39 PM
getting rid of grub and going back to lilo. Vlion Linux - Newbie 1 02-15-2004 05:55 PM
Can't get rid of LILO or GRUB bootloaders to reinstall Windows on Laptop CorpChAoS Linux - Newbie 5 11-25-2003 02:23 AM


All times are GMT -5. The time now is 06:04 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration