recover fstab
how to recover stab file
i have run the query on my system rm -f /etc/fstab i am using Cantos 7 |
Hello, nandial, and welcome to LQ.
Can you restore the file from the last backup you made? If not, your best bet is to recreate the file. Alternatively you can try to undelete the file using a data recovery utility. |
IF this is a 'real' ..., tell us why you did this. Anyway, here's some things to try:
Code:
# grep -v ^# /etc/fstab.hidden #Goal is to *RE-construct like* this: |
If you really know what you're doing, you can recreate currently mounted entries based on /etc/mtab. But there will be a heck of a lot of lines in /etc/mtab which you do NOT want in /etc/fstab. Any lines with file system type "ext4", you will want.
|
All times are GMT -5. The time now is 12:15 AM. |