Data still syncing to SD card after changing datadirectory to USB

I tried a fresh installation with NCP image v1.55.3

Everything is working fine but, following the guide How to configure an external USB drive with NextcloudPi as has been mentioned above, nc-datadir unfortunately resulted in:

,
Running nc-datadir
Maintenance mode enabled
moving data directory from /opt/ncdata/data to /media/c5d9946d-f49a-a38a-0090-b7a9d0d0251c/ncdata/data/data…
{“reqId”:“D8AerL5Sss36keurKayM”,“level”:2,“time”:“2025-08-12T13:27:13+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“no app in context”,“method”:“”,“url”:“–”,“message”:“Temporary directory /opt/ncdata/data/tmp is not present or writable”,“userAgent”:“–”,“version”:“30.0.1.2”,“data”:}
Nextcloud is in maintenance mode, no apps are loaded.
Commands provided by apps are unavailable.
Your data directory is invalid.
Ensure there is a file called “.ncdata” in the root of the data directory. It should have the content: “# Nextcloud data directory”

Cannot create “data” directory.
This can usually be fixed by giving the web server write access to the root directory. See https://docs.nextcloud.com/server/30/go.php?to=admin-dir_permissions

An unhandled exception has been thrown:
Exception: Environment not properly prepared. in /var/www/nextcloud/lib/private/Console/Application.php:137
Stack trace:
#0 /var/www/nextcloud/console.php(81): OC\Console\Application->loadCommands()
#1 /var/www/nextcloud/occ(11): require_once(‘…’)
#2 {main}Nextcloud is in maintenance mode, no apps are loaded.
Commands provided by apps are unavailable.
System config value logfile set to string /media/c5d9946d-f49a-a38a-0090-b7a9d0d0251c/ncdata/data/data/nextcloud.log
Nextcloud is in maintenance mode, no apps are loaded.
Commands provided by apps are unavailable.
System config value tempdirectory set to string /media/c5d9946d-f49a-a38a-0090-b7a9d0d0251c/ncdata/data/data/tmp
Installing template ‘php/opcache.ini.sh’…
Maintenance mode disabled
Installing template ‘ncp-metrics.cfg.sh’…
,

I entered /media/USBdrive/ncdata/data/ in DATADIR field

I don’t understand what is causing these faults and what is and where it is going wrong.
Any further directions would be highly appreciated.