简体   繁体   中英

Ubuntu 18.04 login loop caused after running fsck [on hold]

I have been a linux(Ubuntu) user for over 5 years now,currently running ubuntu 18.04 on my acer laptop. I always put my laptop to sleep instead of shutting it down to resume from whatever I was doing quickly. Sometimes if I try restarting it, it boots to the advanced section saying some part of the disk is corrupt and requires I run fsck . I have never ran into a major issues performing this operation until recently. After executing the fsck on the /dev/sda4 (Which is my main hard drive) I couldnt log in again. It became an infinite login loop. I tried every solution online none worked . I even created another user through tty and could successfully log into the new account. But the other account NO WAY .

I switched to tty using ctrl + alt + f3 on the ubuntu login view. Entered the username and password, then logged in. I deleted the /home/<account-name>/.config folder which I believe harbors some files that might be executed on login and after that I was able to login SUCCESSFULLY . Maybe the fsck operation messed up some files there. This after 2 weeks of headache and surfing the web for solutions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM