I have a drive which I have created two partitions on.
I had them both mounted and in use. I wanted to remove the second partition and recreate it to start fresh.
I removed all my existing SMB shares pointing to the partitions, removed all shared folders on the partitions and unmounted the partitions.
I rebooted then using a terminal I removed the second partition, wrote the changes to the disk, then created a new partition, wrote the changes then formatted it with sudo mkfs.ext4 /dev/sdd2
I rebooted again just to be safe, then when I go into storage > file systems I'm able to mount the new second partition abut when I try to mount the first partition /dev/sdd1 I'm getting a 500 internal server error.
I did have a quick look on the forum but didn't want to blindly try solutions and potentially make things worse.