~~~~~ Warning !!! Content posted here are gained through the real world experience or some may come from training or any other Internet sources. Reading this blog may confuse you or may increase understanding of UNIX/Linux operating system and its component. It might help you to land on Real job or may fire your from the Real job. So, use on your own risk !!! No left or right reserved !!! -Kamal ~~~~~
Friday, May 19, 2023
RHEL8 - Boot process
RHEL8 - Boot Process of Linux
1.) Power-on (POST) and hardware initialization
2.) Bootloader
3.) Kernel initialization
4.) Initramfs (Initial RAM Filesystem)
5.) Init process
6.) Init system or systemd
7.) Login prompt or graphical User Interface
8.) User session
Note: boot process can be slightly vary between different Linux distributions
Wednesday, April 26, 2023
How to reset your RHEL 8 system password?
Reset your RedHat system password?
1. Reboot the system and interrupt the boot loader sequence by pressing any key.
2. Move the cursor to the entry (the kernel) that you want to boot.
3. Press e to edit the selected entry. Move the cursor to the kernel line
4. Go to end of the line and append rd.break at the end of the line.
5. Press “Ctrl+x” and reboot the system. You will see a root shell with the root file system which ia mounted read-only on /sysroot.
6. Remount /sysroot as read-write filesystem.
7. Switch to a chroot where /sysroot is treated as the root of the file system tree
8. Reset your new root password
9. Make sure that all unlabeled files (including /etc/shadow at this point) get relabeled during boot
10. Type exit twice. The first will exit the chroot jail, and the second will exit the initramfs debug shell. Let the system continue booting, perform a full SELinux relabel, then reboot again.
1. Reboot the system and interrupt the boot loader sequence by pressing any key.
2. Move the cursor to the entry (the kernel) that you want to boot.
3. Press e to edit the selected entry. Move the cursor to the kernel line
4. Go to end of the line and append rd.break at the end of the line.
5. Press “Ctrl+x” and reboot the system. You will see a root shell with the root file system which ia mounted read-only on /sysroot.
6. Remount /sysroot as read-write filesystem.
7. Switch to a chroot where /sysroot is treated as the root of the file system tree
8. Reset your new root password
9. Make sure that all unlabeled files (including /etc/shadow at this point) get relabeled during boot
10. Type exit twice. The first will exit the chroot jail, and the second will exit the initramfs debug shell. Let the system continue booting, perform a full SELinux relabel, then reboot again.
Subscribe to:
Posts (Atom)