Article 5SWW2 Server partition lost?

Server partition lost?

by
Oomu
from LinuxQuestions.org on (#5SWW2)
Hi,

Recently I have edited the file /etc/fstab and did something stupid.
At first it looked like this :

/dev/mapper/server--vg-root / ext4 errors=remount-ro 0 1
/dev/mapper/server--vg-home /home ext4 defaults 0 2
/dev/mapper/server--vg-tmp /tmp ext4 defaults 0 2
/dev/mapper/server--vg-var /var ext4 defaults 0 2

Then in /etc/fstab I did this change (3rd line, var -> home)

/dev/mapper/server--vg-root / ext4 errors=remount-ro 0 1
/dev/mapper/server--vg-home /home ext4 defaults 0 2
/dev/mapper/server--vg-tmp /home ext4 defaults 0 2
/dev/mapper/server--vg-var /var ext4 defaults 0 2

and did a reboot. The system did not like it so I switched back to original setup. After a reboot the system was unable to find the /home directory on my server.

Is there a possibility to recover those files? Nothing has be written since the reboot.

Thanks a lot for your help!latest?d=yIl2AUoC8zA latest?i=H1-a0l9oj-o:A8Ylz3Ib64I:F7zBnMy latest?i=H1-a0l9oj-o:A8Ylz3Ib64I:V_sGLiP latest?d=qj6IDK7rITs latest?i=H1-a0l9oj-o:A8Ylz3Ib64I:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments