My pacman packages seem to have disassociated themselves with pacman, I'm not sure why or when because my server has been running OK for quite a while until I came to install php and mysql a couple of days ago to find pacman doesn't recognise that they are already installed but when I try to install them it fails because the files all exist on the filesystem.
I was wanting to do a fresh, clean install (on my GoFlex Home) but would prefer a simpler way that didn't involve starting again if I could somehow clean it all up.
Currently it is running from my 2TB HDD on a 20GB partition I created following an old tutorial on openstora.org that mounts the partition as an aufs(?) overlay.
Any suggestions on how I can clean it up?