LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-13-2003, 11:18 PM   #1
Nappa
Member
 
Registered: Nov 2003
Posts: 42

Rep: Reputation: 15
Help uninstalling Lilo from hda MBR


I installed Lilo thinking it would see one of my NTFS partitions. It didn't, so when I used Partition Magic to boot into NTFS, Lilo came up and the only option I could do was to boot into DOS (Fat 32), so it made my hard drive freeze up. I used Partition Magic rescue disks to get back to my FAT32 partition and load Slackware. I don't know how to remove LiLo from the MBR now. Any help would.....help.
 
Old 12-13-2003, 11:25 PM   #2
Whitehat
Senior Member
 
Registered: Feb 2003
Location: The Cold North
Distribution: SuSE 9.1
Posts: 1,289

Rep: Reputation: 45
You should be able to boot up with a Windows 98 boot disk and do "fdisk /mbr".

That always works for me. YOu also have to make sure you make whatever partition you want to boot "active".

I hope this is what you are talking about....

Peace,
Whitehat
 
Old 12-13-2003, 11:29 PM   #3
Nappa
Member
 
Registered: Nov 2003
Posts: 42

Original Poster
Rep: Reputation: 15
Yes...I forgot about the fdisk mbr..thank you
 
Old 12-13-2003, 11:30 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Re: Help uninstalling Lilo from hda MBR

Quote:
Originally posted by Nappa
I installed Lilo thinking it would see one of my NTFS partitions. It didn't, so when I used Partition Magic to boot into NTFS, Lilo came up and the only option I could do was to boot into DOS (Fat 32), so it made my hard drive freeze up. I used Partition Magic rescue disks to get back to my FAT32 partition and load Slackware. I don't know how to remove LiLo from the MBR now. Any help would.....help.
Kinda hard to understand what you got going on there. If you have removed your Linux distro, and just want to run Windoze, simply use your boot disk to get to a DOS prompt and type ->
fdisk /mbr
which will rewrite your master boot record, and that should fix you right up, removing LILO from your MBR and giving you the go with your Windoze OS.

On the other hand, if you are trying to dual boot Windoze and Slackware (I think this is what you're saying) and LILO is messed up, please post the output of ->
$ fdisk -l (lower case L)
$ df -h
$ pico /etc/lilo.conf

and perhaps we can get you going.

Please put your Linux distribution into your user cp (control panel) and let us know what OSes you're trying to run on this comp.

 
Old 12-13-2003, 11:36 PM   #5
Nappa
Member
 
Registered: Nov 2003
Posts: 42

Original Poster
Rep: Reputation: 15
I feel stupid now, thank you for your help...all I had to do was to fdisk mbr and make sure that the fat32 was active. I'm trying to learn my way out of Windows so that I'm totally Linux dependent, but it's just going to take some time. I understand that the fdisk command in Linux works somewhat the same as the DOS fdisk righ??
 
Old 12-14-2003, 12:11 AM   #6
Rodrin
Member
 
Registered: May 2003
Location: Upstate NY, U.S.
Distribution: Slackware
Posts: 247

Rep: Reputation: 31
The Linux version of fdisk is for the same purpose as the DOS one, and they are both command line programs, but the similarities don't go much further. For a more user friendly and less buggy version of fdisk under Linux try using cfdisk (a much better program in almost every way). One thing you will notice, however, is that there is no mbr switch for Linux fdisk (or cfdisk).
 
Old 05-04-2004, 11:42 AM   #7
oxleyk
Member
 
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309

Rep: Reputation: 30
I just want to get confirmation on this topic. I installed Slackware on a scavenged 4gig drive in my WindowsXP computer. The system is dual-booting WinXP and Slackware. The Slackware drive seems VERY slow and might have problems associated with aging (it's about eight years old but was owned by a little old lady who only drove it on Sundays). I want to remove the Slackware drive and remove the dual-boot option. What I've been able to find in my search is that fdisk /mbr will remove the dual-boot from WinXP. Is this correct? It won't corrupt my drive? Has anyone encountered problems doing this?

Thanks,
Kent
 
Old 05-04-2004, 04:01 PM   #8
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
Correct. The command: fdisk /mbr will overwrite your MBR and return it to a Windows-friendly/Windows-only state. Note that it will do nothing to the data on the Slack drive -- its only effect is to "reset" the MBR. After you perform this command and reboot, it should immediately boot into XP. As always, you should consider backing up any important data first, just to play it safe.

That being said, I've run the fdisk /mbr command a number of times when I was initially setting up my PC, with no ill effects at all. -- J.W.
 
Old 09-30-2006, 12:02 AM   #9
FlyingPenguin
LQ Newbie
 
Registered: Sep 2006
Distribution: Red Hat, Debian
Posts: 9

Rep: Reputation: 0
A drastic way to remove LILo or any bootloader is to use a Linux-LIVE-CD or rescue disk and do:-

dd if=/dev/zero of=/dev/hda bs=446 count=1; reboot

This removes the bootloader from the partition table by writing zeros to the first 446 bytes on your first hard disk. If you have a SCSI disk, then you need to use the device name for a SCSI disk..eg /dev/sda.

I would use this as a last resort though.
 
Old 09-30-2006, 12:20 AM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,223

Rep: Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019
The M$oft supported (and documented) way to do this since Win2k is to boot the install CD, get into recovery console and run "fixmbr".

Lilo should chainload NTFS fine - but it has been years since I used lilo. I suspect a user error rather than an fault with lilo.

Zapping the loader code in the MBR is a no-no unless you really have to - a virus say. Generally just installing a new loader "over the top" is sufficient - and safest.
 
Old 09-30-2006, 06:44 AM   #11
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
Yeah, LILO has no problems at all booting up WindowsXP (even using NTFS instead of VFAT). Just pretend you're telling LILO to boot a DOS partition and you'll be fine.

I really don't understand what people's problems are with this. It was never an issue when I was dual-booting NT 4.0, either. :/
 
Old 09-30-2006, 07:32 AM   #12
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,142
Blog Entries: 4

Rep: Reputation: 121Reputation: 121
Did you guys see the date this thread was first posted?
 
Old 09-30-2006, 07:44 AM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,223

Rep: Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019
Now that you mention it - NO, I hadn't.
Don't you hate it when something just (re-)appears.

Ah well ...
 
Old 09-30-2006, 09:25 AM   #14
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,141
Blog Entries: 3

Rep: Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406
Quote:
Originally Posted by harishankar
Did you guys see the date this thread was first posted?
Hi,

I noticed the date but the problem still persists for some users!
I'm always digging people out with issues of this type.
 
  


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
lilo: hda is the cd svar Linux - General 2 12-04-2005 03:06 PM
Reinstall lilo to hda, using hda lilo.conf tomjermy Linux - General 1 03-16-2005 05:27 PM
Will "grub-install /dev/hda" kill Windows XP MBR? Zullocrit Linux - Newbie 3 09-25-2004 09:50 AM
fdisk gives unable to read /dev/hda... mbr is gone... what can it be? slackie1000 Linux - Hardware 5 01-27-2004 04:29 AM
mbr had over write so lilo is gone how to rewrite lilo to mbr mch Linux - Software 4 10-25-2002 02:55 PM


All times are GMT -5. The time now is 04:18 AM.

Main Menu
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