If it works unplugged and flashing when you plug in, sorry to say your dvr pins might be shorted meaning faulty dvr, or power supply dont have enough amps, or hard disk is at fault and eating too much amps.
It can be any of those 3 components, easiest is to try with new supply. Older models...