Check which bootloader you have

Here is a script to check inside the first sector of the hard drive for what boot manager it is using:

Assuming your hard drive is at SDA then:

sudo dd if=/dev/sda bs=512 count=1 2>&1 | grep GRUB – For GRUB
sudo dd if=/dev/sda bs=512 count=1 2>&1 | grep LILO – For LILO
sudo dd if=/dev/sda bs=512 count=1 2>&1 | grep ACRON – For Acronis
sudo dd if=/dev/sda bs=512 count=1 2>&1 | grep RED – For RedBoot

If ONE of the above outputs this line Binary file (standard input) matches then you have found the match for your boot loader.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s