> #!/bin/bash
> #Attention: this didn't work for me!!
> dd if=/dev/hda bs=1024 count=1 | grep GRUB
> if [ $? = 0 ]; then
>   echo "GRUB"
> else
>   echo "not GRUB"
> fi
> 
> I noticed it doesn't work since i ran it in a system wich I'm shure is
> installed with grub and I ran it on the correct boot device, /dev/sda1 in my
> case, and it didn't find any GRUB string.

Does it work if you try /dev/sda (rather than sda1)?


-- 
Ian



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to