Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Without rebooting the machine, how can one know about the bootloader installed ?? and lilo.conf and grub.conf are both present..(supposing i have both istalled grub and lilo at different times)..plz F1..
(Obviously replace hda with the appropriate drive, if necessary.)
If you get some output, you have grub installed, if you get no output, it's LILO.
Sidenote: You must grep for GRUB, don't try LILO, because if you installed lilo, then installed grub, the mbr will still have "LILO" in the "filesystem descriptor string" (it's not called that, but I can't remember the correct name off-hand) as grub doesn't change that.
Last edited by dawkcid; 06-09-2007 at 02:20 PM.
Reason: typo
i have done that..i have installed grub as my bootloader.. so when i read the contents of mbr i find GRUB in the output..but i hane never installed lilo ( even when i try to install lilo, i get lot of dependency issues-thats a long list)
when i try to read the mbr, please tell me about the output of these three conditions :
1. u have installed lilo only and no other bootloader.
2. first u have installed grub then u install lilo.
3. u've lilo at first, then u install grub..
when i try to read the mbr, please tell me about the output of these three conditions :
1. u have installed lilo only and no other bootloader.
2. first u have installed grub then u install lilo.
3. u've lilo at first, then u install grub..
plz reply..
I'm not sure how this will help you....someone would have to do all those combinations and then dump the mbr contents---very tedious task which I'd be willing to bet has not ever been done and documented.
What is your end goal?
Do you have a working system and you need to change something?
see mr. always a thing is not done for benefit ..this is just an interest.. just a query came in my mind and i posted. and i dont work anywhere, im just a fresher anyways thanx..
The mbr has 5 parts (this applies to x86 DOS mbr).
1. a short jump to the start of the boot loader
2. a bunch of drive parameters--number of heads/tracks etc (google for the details).
3. boot loader code
4. partition table.
5. the last two bytes are 0x55AA to indicate a valid boot loader.
Obviously grub and lilo have their own boot code, which will overwrite whatever was there before. The other parts aren't changed by grub or lilo, since that isn't their business. That's really the only difference, except as I mentioned before, there is an 8 byte text field (space padded) to describe the OS/filesystem (which might contain something like "FAT32" or whatever), which lilo writes to, but grub doesn't bother, so it will contain whatever was there before you installed grub.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.