Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to make sure my backup are safe. I use one main SSD running Ubuntu and I have 2X 2Tb HDD in RAID1 for my data. How to know when a disk fail?

share|improve this question
up vote 2 down vote accepted

You could definitely check the disk SMART data.

If you use ubuntu desktop, run the Disk utility in ubuntu: Disk utility - SMART data

If you use a server, you can install smartmontools:

sudo apt-get install smartmontools
sudo smartctl -a /dev/sdx

where you substitute "/dev/sdx" with your drive.

share|improve this answer
It say that SMART status is not supported? – 01BTC10 Feb 9 '12 at 15:25
On the SSD or on the 2Tb HDDs ? Try the second solution, using smartmontools – medigeek Feb 9 '12 at 15:27
The SSD is supporterd but not the 2Tb HDDs. I will try smartmontools solution. – 01BTC10 Feb 9 '12 at 15:29
/media/52306816306802F9: Unable to detect device type Smartctl: please specify device type with the -d option. – 01BTC10 Feb 9 '12 at 15:32
It is working with the SSD /dev/sda – 01BTC10 Feb 9 '12 at 15:42

If you don't have a GUI, you can ask mdadm about the status of the RAID array

sudo mdadm --detail /dev/md0

That will list the Active, Working, Failed, and Spare devices for the array

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.