2

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!?

CONTENT OF FSTAB:

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
Niels Kristian
  • 358
  • 2
  • 13

1 Answers1

3

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.

platforms
  • 1,118
  • 10
  • 23