I am trying to move the initial Postgres data dir from
to another harddrive. The harddrive is accessable within the terminal via
I used this guide to switch my data dir. Postgres is starting up after modifying the
postgres.conf file but im not able anymore to access the database through pgadmin or the terminal.
When trying to access the database its asking if the database is running on port 5432 and accepting connections.
Why? What am I doing wrong?
Update: After clean install of ubuntu and postgres all errors still remain. The postgres log output is:
2018-07-06 14:16:04.958 CEST  LOG: listening on IPv4 address "127.0.0.1", port 5432
2018-07-06 14:16:04.998 CEST  LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2018-07-06 14:16:05.124 CEST  LOG: database system was shut down at 2018-07-06 14:00:21 CEST
2018-07-06 14:16:05.167 CEST  LOG: database system is ready to accept connections
2018-07-06 14:16:05.714 CEST  [unknown]@[unknown] LOG: incomplete startup packet