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