mythrandir2000 Posted March 7, 2004 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 Link to comment Share on other sites More sharing options...
Ghil Vertefeuille Posted March 7, 2004 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 Link to comment Share on other sites More sharing options...
phunni Posted March 7, 2004 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 Link to comment Share on other sites More sharing options...
aru Posted March 7, 2004 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. Link to comment Share on other sites More sharing options...
bvc Posted March 7, 2004 Share Posted March 7, 2004 win9x=boot to msdos floppy and do fdisk /mbr winxp-2k=boot to the cd>rescue from console>fixmbr Link to comment Share on other sites More sharing options...
mythrandir2000 Posted March 7, 2004 Author 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 Link to comment Share on other sites More sharing options...
Ghil Vertefeuille Posted March 7, 2004 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 Link to comment Share on other sites More sharing options...
phunni Posted March 7, 2004 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... Link to comment Share on other sites More sharing options...
roland Posted March 10, 2004 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 Link to comment Share on other sites More sharing options...
Cannonfodder Posted March 10, 2004 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. Link to comment Share on other sites More sharing options...
iphitus Posted March 12, 2004 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now