On Wed, 21 May 2008 09:07:28 -0700, Mark Knecht wrote:

> > dd if=/dev/sda bs=446 count=1 2>/dev/null | strings | grep GRUB

>    That single command would have saved me some heartache in the past.
> I think it could be a good one-line addition to even something like
> the Quick Install guide - I.e. "If you want to sanity check your grub
> installation then run this command to ensure grub is located where you
> think it's located..."

You could check for all instances with

for i in /dev/[hs]d*
dd if=$i bs=446 count=1 2>/dev/null | strings | grep -q GRUB \
&& echo "GRUB found in $i"
 

-- 
Neil Bothwick

OS/2: Obsolete Soon, Too

Attachment: signature.asc
Description: PGP signature

Reply via email to