Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1101  / 2 Years ago, sat, june 11, 2022, 12:04:35

I cleaned /etc/fstab so I could fix my booting error of mounting drive, and I can not log into my main account. Although I can log in as "guest".



Also I have a backup of fstab in my home directory, but I don't remember the folders name. It may be something like __Back_UP.



How can I fix this?


More From » mount

 Answers
6

fstab is the file which helps linux decide which partition is to be mounted, which to be used as swap, which is the / (filesystem). Its essential to have that file.



As you said, you had the back up of fstab in your home directory, so as an initial step you can try to find the file:




  1. Log in somehow (guest account or live cd or live usb with any linux distro). If guest is able to access /home/ directory.


  2. Run the following commands in the Terminal:



    cd /home/[user account you were using before]
    find | grep -i back

  3. If you are lucky, that should result in a small list of matching files. From that list check if you are able to identify the backedup fstab file. Once found copy the file to /etc using:



    cp source-filename /etc/fstab

  4. Alternatively, if you were unable to find the file, comment here back with the output of:



    sudo blkid


[#37732] Sunday, June 12, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
skipu

Total Points: 366
Total Questions: 114
Total Answers: 112

Location: Saudi Arabia
Member since Mon, Sep 5, 2022
2 Years ago
;