I deleted a line in fstab and lost my home directory

Hello

I deleted the swap partition’s line in my fstab by mistake (I was trying to edit another system).
Now it doesn’t boot graphically but the terminal seem to work.

The boot show me these errors:
Failed to start X Display Manager.
Failed to start Postfix Mail Transport Agent.
Failed to start Security Audit Logging Service.
Failed to start NVIDIA Persistence Daemon.

I tried to get the files using command lines but neither my home nor root’s home appear in the root directory.

When I use chroot from a live usb I can access the drive and see system files but my home directory appear empty.

I can reinstall my system if needed, my objective is only to copy my home directory

Thanks

You must have done (much) more, because just removing swap will not result in all the other trouble you see.

At least try to get (and post) a listing of what is now in the systems /etc/fstab

From the live usb there’s no fstab in /etc. So I tried from opensuse and it just booted on the desktop normally.
I don’t know. Maybe I selected another snapshot than the last times, maybe having slept well helped, maybe I did yet another thing differently? Anyway I have backed up my home now.

Before I edit a file, especially a system-related file, I always make a backup:

mach:/etc # cp ./fstab  ./fstab-backup

After editing (I always insert comment lines that describe the change(s) I make), I then run a diff tool to double-check the changes I made. And I don’t remove the backup - it’s good to have for future reference.

Also:
Backup is right, but I prefer a comment-character to disable the line in a conf…
No deleting.

But every people do, what they must do…

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.