I tried and it didn't work on /dev/sda...

Ian Mortimer wrote:
#!/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)?




--

****************************************************************
*   Luciano Rabelo (Boozy)   /\           ReggaeMon            *
*  http://www.rabelo.eti.br  /\    Essa Galera eh o que ha!    *
*    [EMAIL PROTECTED]     /\  http://www.reggaemon.cjb.net  *
*       UIN - 2507903        /\   [EMAIL PROTECTED]    *
****************************************************************


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

Reply via email to