I asked ChatGPT o4 how to recover my corrupt OS Password. Here is what it said

Steps to Recover Password in Zorin OS (Without Reinstalling)

  1. Boot into Live USB (Try Zorin Mode): Start your computer with a Zorin OS live USB and choose "Try Zorin" mode.

  2. Open Terminal: Access the terminal (Ctrl + Alt + T).

  3. Identify the Old OS Partition: Use lsblk to locate the old OS partition (e.g., /dev/sda2).

  4. Mount the Old Partition: Create a mount point and mount the old system:

sudo mkdir /mnt/oldsystem
sudo mount /dev/sda2 /mnt/oldsystem

  1. Bind Critical Directories: Prepare for chroot by binding system directories:

sudo mount --bind /dev /mnt/oldsystem/dev
sudo mount --bind /proc /mnt/oldsystem/proc
sudo mount --bind /sys /mnt/oldsystem/sys
sudo mount --bind /run /mnt/oldsystem/run

  1. Enter the Old System: Use chroot to operate within the old OS environment:

sudo chroot /mnt/oldsystem

  1. Reset the Password: Identify the username using ls /home and reset the password:

passwd username

  1. Exit and Reboot: Exit chroot, unmount directories, and reboot:

exit
sudo umount /mnt/oldsystem/{dev,proc,sys,run}
sudo umount /mnt/oldsystem
sudo reboot

The 'de facto' solution:

Download the unofficial manual for Zorin 17 for alternative solutions on preceding and following page/s.

1 Like

I tried that. It didn't work.

Have you tried deleting Xauthority file?

No. Is that in the old files? How do I access it?

Thanks Hobs

Download the unofficial manual from here and go to page 350 onwards:

What? You did this? All of it? Impressive. How long did it take you to write it?

About a week over Christmas 2023. I did have the Unofficial Manual for Zorin 15 I authored as a starting point. That can be found here:

1 Like