Make a copy of the file you’re working sudo copy /etc/fstab /etc/fstab.bak
Ask a particular question to ChatGPT How do I mount a samba sharein Ubuntu Server22.04?
Read through the commands and try them out. ChatGPT is great for stuff like this, especially with follow-up questions, and giving you detailed info on error messages.
If you fubar, then simply restore your backup file and try again.
Something that works fairly well for me:
sudo copy /etc/fstab /etc/fstab.bak
How do I mount a samba share in Ubuntu Server 22.04?
You can also replace ChatGPT with Devin and achieve the same results*
*Your mileage may vary depending on the quality of your Devin