centos_not_booting
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
centos_not_booting [2021/04/21 18:25] – walkeradmin | centos_not_booting [2023/03/09 22:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 65: | Line 65: | ||
==== The Remedy ==== | ==== The Remedy ==== | ||
\\ | \\ | ||
- | We need to tell the system to not perform the fsck at boot, and to do this we need to edit the file fstab in the etc directory (this is for CentOS).\\ | + | We need to tell the system to not perform the <color #ed1c24>fsck</ |
+ | \\ | ||
+ | \\ | ||
+ | Open the file in a text editor by using <color # | ||
+ | \\ | ||
+ | < | ||
+ | # | ||
+ | # / | ||
+ | # Created by anaconda on Thu Nov 5 18:45:24 2020 | ||
+ | # | ||
+ | # Accessible filesystems, | ||
+ | # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info | ||
+ | # | ||
+ | / | ||
+ | UUID=ce253ff9-86ee-480b-87b3-7efa803bedda /boot | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | Above we see the contents of the <color # | ||
+ | \\ | ||
+ | \\ | ||
+ | Each entry in the fstab file has six fields: | ||
+ | < | ||
+ | 1 2 | ||
+ | |||
+ | / | ||
+ | </ | ||
+ | \\ | ||
+ | It is the last number we want to change, and we will change this to a zero, this will mark this partition (and only this partition) to ignore fsck at boot. | ||
+ | \\ | ||
+ | < | ||
+ | So we will change: | ||
+ | |||
+ | / | ||
+ | |||
+ | to | ||
+ | |||
+ | / | ||
+ | </ | ||
+ | Save this file, and now you should be able to do a test reboot, and the system should boot normally to user login page rather than emergency mode. | ||
+ | \\ | ||
+ | \\ | ||
\\ | \\ | ||
centos_not_booting.1619025933.txt.gz · Last modified: 2023/03/09 22:35 (external edit)