User Tools

Site Tools


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:30] walkeradmincentos_not_booting [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 69: Line 69:
 \\  \\ 
 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> <file>
Line 85: Line 84:
 /dev/mapper/vg_main-lv_applogs /applogs            ext4    defaults        1 2 /dev/mapper/vg_main-lv_applogs /applogs            ext4    defaults        1 2
 </file> </file>
-Above we see the contents of the fstab file (your own fstab will differ) and we know that the journalctl -xe was complaining about /dev/mapper/vg_main-lv_var+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.1619026220.txt.gz · Last modified: 2023/03/09 22:35 (external edit)