Server Fault is a question and answer site for system and network administrators. 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 have made a directory: sudo mkdir /ssd, the directory was supposed to be mounted to a raid array called md3. This was done by adding /dev/md3 /ssd auto defaults 0 0 to fstab. Then after a while where I had used the directory, I realized that I had forgotten to run sudo mount -a - and then I did, and now the data is gone. I tried to uncomment the line in fstab and run sudo mount -a but that didn't get back my data. What can I do!?


proc /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
/dev/md/0 none swap sw 0 0
/dev/md/1 /boot ext3 defaults 0 0
/dev/md/2 / ext4 defaults 0 0
/dev/md3  /ssd  auto   defaults  0 0
share|improve this question
up vote 3 down vote accepted

Unmount that filesystem and the files should be right where you left them.

First, type sudo umount /ssd, making sure that you are not currently working in that directory, to avoid "Directory in use" errors.

Then move the files in that directory to a safe place.

Finally, remount your filesystem with sudo mount -a.

share|improve this answer
What exactly do you mean by unmount? Should I run something like: sudo umount /dev/md3 ? – Niels Kristian Nov 30 '12 at 3:38
First, please copy and paste the output of mount (without the -a switch) so I can see exactly what you're talking about. – platforms Nov 30 '12 at 3:42
Okay done, see my update :-) – Niels Kristian Nov 30 '12 at 3:44
You probably just mounted a filesystem at the same mount point that your files are in. They were likely just obscured when you mounted the filesystem with mount -a. – platforms Nov 30 '12 at 3:44
Okay, but then what command should I use to get them back? I'm a little afraid of doing something wrong here – Niels Kristian Nov 30 '12 at 3:45

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.