I've got a huge database (2.6TB) installed over a 4TB drive.
I had to reinstall Ubuntu 22.04 after the main drive crashed (not the database drive). Now I'm trying to reinstall PostgreSQL and reuse the old drive, however, I failed to find how to do it without copying the data from the old drive to a new location. I can't move the files because there is no room for the copy.
How can I point the newly installed PostgreSQL to use the old drive?