How did you plug it? On a SATA slot or USB port?
"Says there's an error"? What error? You will have to be more specific.
Is it formatted? How do you know? Have you been able to use it with another operating system? Run these commands in Linux and check the output:
% su -
# fdisk -l
If it's USB, run this command: