[Nottingham] Which Bootloader?

David Bean david at dbean.uklinux.net
Mon Mar 8 20:18:10 GMT 2004


On Mon, 2004-03-08 at 15:21, Johannes Kling wrote:
> Hello,
> 
>   Is there a generic way to check which bootloader a machine is using
> if both LILO and GRUB are installed and configured without actually
> rebooting?

file seems to produce different output for lilo as grub:


# dd if=/dev/hda ... of=mbr.grub
# file mbr.grub
mbr.grub: x86 boot sector, code offset 0x48, OEM-ID "  3.0\372\374\276",
Bytes/sector 191, sectors/cluster 6, reserved sectors 51340, FATs 142,
root entries 35792, sectors 36582 (volumes <=32 MB) , Media descriptor
0xc0, sectors/FAT 55438, hidden sectors 3914966515, sectors 3036383744
(volumes > 32 MB) , physical drive 0x2, reserved 0xcd, dos < 4.0
BootSector (0x16)

# apt-get install lilo
# dd if=/dev/hda ... of=mbr.lilo
# file mbr.lilo
mbr.lilo: x86 boot sector


David Bean




More information about the Nottingham mailing list