Re: Boot loaders



Thank you... that's most helpful.

So just to clarify what this is doing (so I can learn):
*checking to see if /dev/hda exists
*It's coping the first 512 bytes or 1 block off of the hard disk
*checking those bytes for any strings it finds
*the bootloader should be in those first 512 bytes



Tommy Reynolds wrote:
On Mon, 11 Dec 2006 11:36:29 -0800, jeff.bethune wrote:

I have a question regarding how do you know which boot loader you're
using. The only thing I've been able to find is the presence of one of
these files in the /etc/ directory: grub.conf, lilo.conf,
yaboot.conf, etc.. But what if you have more than one of those files
present? How do you know which one bootloader is being used in such a
way that I could write code to obtain it?

No code needed:

$ sudo dd if=/dev/hda bs=512 count=1 | strings

and see if you get "GRUB". If you don't, you have lilo.

Cheers

.



Relevant Pages

  • Re: Boot loaders
    ... So just to clarify what this is doing: ... It is really the MBR portion (and not the complete bootloader) along the ... This Limited Warranty is void if failure of the Product has resulted ...
    (linux.redhat)
  • Re: Boot loaders
    ... Lenard wrote: ... So just to clarify what this is doing: ... It is really the MBR portion (and not the complete bootloader) along the ...
    (linux.redhat)