Peter says to Ubuntu 台灣社群
I asked gpt-4o for you 😂 To reset the CentOS root password: 1. **Restart CentOS** and access the GRUB menu. 2. Press **`e`** to edit the GRUB boot entry. 3. Find the line starting with `linux` or `linux16`. 4. Append **`rd.break`** at the end of the line. 5. Press **Ctrl+X** to boot into emergency mode. 6. Remount the root filesystem: ```bash mount -o remount,rw /sysroot ``` 7. Switch to the new root environment: ```bash chroot /sysroot ``` 8. Reset the password: ```bash passwd root ``` 9. Relabel the filesystem: ```bash touch /.autorelabel ``` 10. Exit and reboot: ```bash exit reboot ```