centos_not_booting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
centos_not_booting [2021/04/21 18:27] walkeradmincentos_not_booting [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 70: Line 70:
 Open the file in a text editor by using <color #ed1c24>vi /etc/fstab</color> Open the file in a text editor by using <color #ed1c24>vi /etc/fstab</color>
 \\  \\ 
 +<file>
 +#
 +# /etc/fstab
 +# Created by anaconda on Thu Nov  5 18:45:24 2020
 +#
 +# Accessible filesystems, by reference, are maintained under '/dev/disk'
 +# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
 +#
 +/dev/mapper/vg_main-lv_root /                       ext4    defaults        1 1
 +UUID=ce253ff9-86ee-480b-87b3-7efa803bedda /boot                   ext4    defaults        1 2
 +/dev/mapper/vg_main-lv_opt /opt                    ext4    defaults        1 2
 +/dev/mapper/vg_main-lv_var /var                    ext4    defaults        1 1
 +/dev/mapper/vg_main-lv_applogs /applogs            ext4    defaults        1 2
 +</file>
 +Above we see the contents of the <color #ed1c24>fstab</color> file (your own <color #ed1c24>fstab</color> will differ) and we know that the <color #ed1c24>journalctl -xe</color> was complaining about<color #ed1c24> /dev/mapper/vg_main-lv_var</color>
 \\  \\ 
 +\\ 
 +Each entry in the fstab file has six fields:
 +<file>
 +1                          2                                           5 6
  
 +/dev/mapper/vg_main-lv_var /var                    ext4    defaults        1 1 
 +</file>
 \\  \\ 
 +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.
 +\\ 
 +<file>
 +So we will change:
 +
 +/dev/mapper/vg_main-lv_var /var                    ext4    defaults        1 1
 +
 +to
 +
 +/dev/mapper/vg_main-lv_var /var                    ext4    defaults        1 0
 +</file>
 +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.1619026038.txt.gz · Last modified: 2023/03/09 22:35 (external edit)