LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-05-2006, 02:27 PM   #1
Rawjoe
LQ Newbie
 
Registered: May 2006
Posts: 13

Rep: Reputation: 0
removing LILO


I want to kill LILO off my CF card. All my other CF cards, I could just fdisk and delete the partitions on /dev/sda1. This one doesn't seem to work, I will fdisk, delete all partitions, and it will still boot into LILO. I try installing syslinux after deleting all partitions, and it still boots to LILO.

LILO isn't installed on my copy of linux, so i can't lilo -u /dev/sda1. I don't want to install LILO on my machine.

Thanks in advance.
 
Old 07-05-2006, 05:50 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Try something like:
Code:
dd if=dev/zero of=/dev/sda1 bs=512 count=1
- that sould wipe MBR and partition table.

Lilo probably lives in the MBR, not in any of your partitions.


Cheers,
Tink
 
Old 07-06-2006, 07:58 AM   #3
Rawjoe
LQ Newbie
 
Registered: May 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks Tinkster. I tried what you suggested and it's still booting LILO. The command seems to have worked right, i get the 1+0 records in/out, 512 bytes copied statement, and fdisk has no partitions, but when i boot of the CF card, LILO still tries to load a kernel.
 
Old 07-06-2006, 12:48 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hmmm ... it's not something silly like it's actually accidentally booting
of a DIFFERENT device?


Cheers,
Tink
 
Old 07-07-2006, 06:37 AM   #5
Rawjoe
LQ Newbie
 
Registered: May 2006
Posts: 13

Original Poster
Rep: Reputation: 0
No, it's the only device. I used some tools that came with syslinux, like mkdiskimage and cat mbr.bin > /dev/sda. This all seemed to get LILO to stop booting, and then I was able to install syslinux. Never had this trouble before. I noticed things worked better when I screwed with /dev/sda and not /dev/sda1. From what I understand, /dev/sda1 is just the first partition on /dev/sda. So would LILO hav enever been in /dev/sda1, and I should have done
Code:
dd if=dev/zero of=/dev/sda bs=512 count=1
to get the MBR? Or am I completely misunderstanding /dev/sda & /dev/sda1? Sorry, this may be kind of a newbie question.
 
  


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 On
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 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
removing LILO from the MBR keegan1 Linux - General 10 06-12-2001 04:10 AM

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

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