mythrandir2000 Posted March 7, 2004 Report Share Posted March 7, 2004 Hi I'm just trying to install Linux (for the first time) as recommended OS in a programming course. I couldn't be bothered partitioning my system, so I installed a second HDD. Unfortunately, it was only 800MB and can only run as command prompt. Hence I must continue with Windows until I get a bigger drive (or partition). Problem is, the boot loader still runs, with Linux as the default. Can anyone please tell me how to either uninstall Linux, or set the boot loader for default Windows (and then how I'd convert the installation/boot loader to the new HDD). BTW, I've tried removing the second HDD but the boot loader isn't happy. Does some weird stuff in DOS. Thanks Myth Quote Link to comment Share on other sites More sharing options...
Ghil Vertefeuille Posted March 7, 2004 Report Share Posted March 7, 2004 (edited) the easiest way I know is to boot in dos (I had XP so I used my old Win98 boot disk) and type fdisk /mbr and that was all :P lilo never appeared again...until I reinstalled Linux, that is... but that's if you installed it on the master boot record, otherwise I won't be of any help :unsure: Edited March 7, 2004 by Ghil Vertefeuille Quote Link to comment Share on other sites More sharing options...
phunni Posted March 7, 2004 Report Share Posted March 7, 2004 If you edit /etc/fstab as root, there is an option to specify the default near the top. If you change that to the windows one then Linux will no longer be default Quote Link to comment Share on other sites More sharing options...
aru Posted March 7, 2004 Report Share Posted March 7, 2004 If you edit /etc/fstab as root, there is an option to specify the default near the top. If you change that to the windows one then Linux will no longer be default I guess you mean /etc/lilo.conf. Don't forget to run /sbin/lilo after changing /etc/lilo.conf. anyhow Ghil Vertefeuille's advice is what you have to follow to get rid of lilo. Quote Link to comment Share on other sites More sharing options...
bvc Posted March 7, 2004 Report Share Posted March 7, 2004 win9x=boot to msdos floppy and do fdisk /mbr winxp-2k=boot to the cd>rescue from console>fixmbr Quote Link to comment Share on other sites More sharing options...
mythrandir2000 Posted March 7, 2004 Author Report Share Posted March 7, 2004 Thanks guys I will clear the master boot record for now, but for future reference the default stuff is good. Only problem: I have never used linux before (shame). How do I edit all of this stuff? And "don't forget to run /sbin/lilo"? Why? How? Cheers Quote Link to comment Share on other sites More sharing options...
Ghil Vertefeuille Posted March 7, 2004 Report Share Posted March 7, 2004 for the /sbin/lilo thing, it was if you wanted to make Windows default instead of Linux in Lilo :P Quote Link to comment Share on other sites More sharing options...
phunni Posted March 7, 2004 Report Share Posted March 7, 2004 If you edit /etc/fstab as root, there is an option to specify the default near the top. If you change that to the windows one then Linux will no longer be default I guess you mean /etc/lilo.conf. Don't forget to run /sbin/lilo after changing /etc/lilo.conf. anyhow Ghil Vertefeuille's advice is what you have to follow to get rid of lilo. sorry - yes, I meant lilo.conf - think I was playing with my fstab at the time I posted... Quote Link to comment Share on other sites More sharing options...
roland Posted March 10, 2004 Report Share Posted March 10, 2004 How do I edit all of this stuff? And "don't forget to run /sbin/lilo"? log as root go to /etc: "cd /etc" (without the quotes an folowed by enter) type "vi lilo.conf" now you are entering the most surprising program for a DOS/Win person: the vi editor type "I" edit the file press the Escape key type ":wq" done now run lilo: type "lilo" that's all PS: see you soon back on Linux Quote Link to comment Share on other sites More sharing options...
Cannonfodder Posted March 10, 2004 Report Share Posted March 10, 2004 Simplest way to uninstall LILO after installing it, is lilo -U This restores the prior boot loader, meaning the mbr is no longer dependant on having the linux distro present. You can then delete your linux partitions if you want. It's all explained under man lilo fdisk /mbr is also good if you have a win98 boot floppy with the fdisk.exe application on it. Then you can simply restore the mbr using that command. Same difference. Quote Link to comment Share on other sites More sharing options...
iphitus Posted March 12, 2004 Report Share Posted March 12, 2004 (edited) Orr..... the 42nd way to do this is to boot the Mandrake CD type in rescue when it comes up, then go restore windows boot loader. Also, check the knowledgebase on Microsoft's site, funnily enough they have entries tht help in removal of linux :deal: :lol: Edited March 12, 2004 by iphitus Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.