1. Start or reboot a system to get into the boot menu.
2. Press any key to stop the auto selection of a menu item.
3. Ensure the kernel you intend to boot into is highlighted and press the "e" key to edit the entry.
4. Navigate to the linux16 kernel line and hit the "end' key to go to the end of the linux16 line.
5. Append rd.break to the linux16 kernel line.
6. Hit crtl + x to continue.
7. The system will boot into an emergency mode that has the /sysroot directory mounted as read only.
8. Mount the /sysroot directory with read and write permissions.
mount -oremount, rw /sysroot
9. Switch into chroot jail and set the /sysroot as the root file system.
chroot /sysroot
10. Reset the root password.
passwd root
11. Clean up, -> Make sure that all unlabled files get relabeled during the boot process (for SELinux).
touch /.autorelabel
12. Exit chroot jail.
exit
13. Exit the initramfs debug shell.
exit
Troubleshooting notes:
Go though the process and reboot but password not changed?
- Chances are the touch ./autorelabel was missed or performed incorrectly.
- Chances are the file system was not mounted as read/write so the changes made were not persistent.
'Linux' 카테고리의 다른 글
Monitoring and calculating CPU load averages (0) | 2015.06.29 |
---|---|
nice, renice, and ps (0) | 2015.06.29 |
pgrep, pkill, kill, and jobs (0) | 2015.06.29 |
Powering Off Systems (0) | 2015.06.29 |
Interrupt The Boot Process To Change The Boot Target (0) | 2015.06.29 |
Time Zone 확인 및 변경 (0) | 2015.02.06 |
iptables (0) | 2015.02.05 |
NTP 설정 (0) | 2015.02.05 |
SHMMAX 값 확인 및 변경하기 (0) | 2015.01.27 |
kernel 설정 파일 (0) | 2015.01.27 |