Lost partition ?

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
oomu
Posts: 1
Joined: 09 Dec 2021, 16:14

Lost partition ?

#1 Post by oomu »

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!

recuperation
Posts: 2729
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: Lost partition ?

#2 Post by recuperation »

You should post this question in a linux forum.

Locked