On Red Hat-based systems (like RHEL, CentOS, or Fedora), using rd.break in GRUB is the correct first step to reset a forgotten root password. However, if pressing <kbd>Enter</kbd> after adding rd.break only brings you back to the normal login prompt, it usually means the system did not actually drop you into the emergency shell as expected.
Here’s how to properly reset the root password using rd.break:
rd.breaklinux or linux16 or linuxefi.rd.break to the end of this line.rhgb and quiet if present (to see the boot process).textlinux16 /vmlinuz-... root=/dev/mapper/rhel-root ro crashkernel=auto resume=/dev/mapper/rhel-swap rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rd.break
textswitch_root:/#
bashmount -o remount,rw /sysroot
bashchroot /sysroot
bashpasswd root
bashtouch /.autorelabel
exit twice to leave the chroot and emergency shell.rd.break (not rdbreak or similar).systemd.unit=emergency.target instead of rd.break.init=/bin/bashIf rd.break doesn’t work, try:
ro with:
textrw init=/bin/bash
/ as read-write:
bashmount -o remount,rw /
passwd root, then reboot.rd.break on a different GRUB entry (e.g., recovery mode).--- Let me know:
rd.break?This will help narrow down the issue.
Le Chat can make mistakes. Check answers. Learn more