Results 11 to 16 of 16
Actually, I did check out the GRUB sources, and this is what turns out: There is a compiled in default of /boot/grub/menu.lst, but that's most probably not used. The GRUB ...
- 04-14-2003 #11Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Actually, I did check out the GRUB sources, and this is what turns out: There is a compiled in default of /boot/grub/menu.lst, but that's most probably not used. The GRUB stage2 file is actually modified when installed, so that some bytes after the first jmp instruction contains the path that's used to load the config file. That way, you specify what path to use when you use GRUB's install command. I guess, therefore, that Debian has set up /etc/menu.lst for you.
- 04-16-2003 #12Linux Engineer
- Join Date
- Nov 2002
- Location
- Queens, NY
- Posts
- 1,319
no /etc/menu.lst
I was fascinated to see that there was no /etc/menu.lst or /etc/grub.conf. I thought these would exist as a soft link but they don't. Regardless thanks for clearing up this confusion regarding which file was being used.
The best things in life are free.
- 04-16-2003 #13Just Joined!
- Join Date
- Apr 2003
- Posts
- 5
What about removing GRUB? Say, for instance, I want to totally remove Linux and install Windows or something, leaving no trace of GRUB. How do you completely get rid of it?
- 04-16-2003 #14Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
GRUB isn't something that can removed; it has to be replaced. Windows 9x/ME and DOS has FDISK /MBR that will write Windows' boot sector back. I don't know how to do it in NT/2000/XP, though.
- 04-17-2003 #15Linux Engineer
- Join Date
- Nov 2002
- Location
- Queens, NY
- Posts
- 1,319
just install windows
Finished,
Can I ask why you are removing linux? My theory is that linux just isn't the best personal computer when it comes to an average user. I use Windows2000 most of the time when I just need a pc. Then again, lately I've been getting very comfortable in linux but that's cause I've been tweaking things left and right making it just right for me. Come to think of it, I've been spending a lot more time in linux than I normally do. This is good for me!
As for you removing GRUB, Dolda is correct about not being able to remove GRUB. You'll have to install LILO or something else but GRUB is great so... that takes care of that.
This is the first time I'll say this but Dolda is correct to a certain point. If you want to reinstall Windows, providing that you reformat the hard drive and do a fresh installation, it WILL over write over the MBR which will remove GRUB. I've reinstalled Windows XP and Windows 2000 numerous times so I know that this works.The best things in life are free.
- 04-17-2003 #16Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Re: just install windows
That's precisely what I meant; it will overwrite GRUB. In effect, you can say that it removes GRUB, while in fact it does it by replacing it with Windows' boot code. The closest you could come to actually removing GRUB is to overwrite with zero-sectors, but that would render you computer unbootable, since you'd have usable boot code (and it would still be replacing). In the end it all comes down to that you can't really remove your MBR without removing your hard drive.
Originally Posted by bpark
And actually, Windows (at least 9x) overwrites GRUB whether you want it or not, even if you don't reformat your hard drive, which has been quite troublesome sometimes.


Reply With Quote
