Unable to change data directory

I installed owncloud 10.10 on a raspberry with raspbian OS.
I put some files on my space but it was rapidly full. I think I should install an USB disk to keep all my files. I connected a 1To disk formatted ext4 and tried to make it the data directory.
I used that ref to modify the location of data :How To Move the Data Directory for ownCloud on Ubuntu 16.04 | DigitalOcean, but when I tried to add some files the system told there was no more space.
I checked the location of my data on the screen users and I saw that the location for my space had not changed. Would you think you have some advice to help me configuring my server? Thanks

Expected behaviour

A server with a large space on USB drive

Actual behaviour

The data directory unchanged to /var/www/owncloud/data too small for on a SD card containing the OS

Server configuration

owncloud 10.10

Operating system:

raspbian bookworm

Web server:

apache2

Database:

Mariadb

PHP version:

php7.4

**ownCloud version:**owncloud 10.10

fresh install:

Where did you install ownCloud from:

sudo wget https://download.owncloud.com/server/stable/owncloud-10.10.0.zip

Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and puth the link here.

The content of config/config.php:

<?php $CONFIG = array ( 'instanceid' => '', 'passwordsalt' => '', 'secret' => '', 'trusted_domains' => array ( 0 => 'my.domain', ), 'datadirectory' => '/media/USBDisk/ocdata', 'overwrite.cli.url' => 'Mydomain', 'dbtype' => 'mysql', 'version' => '10.10.0.3', 'dbname' => 'owncloud', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => 'jacques', 'dbpassword' => '', 'logtimezone' => 'UTC', 'apps_paths' => array ( 0 => array ( 'path' => '/var/www/owncloud/apps', 'url' => '/apps', 'writable' => false, ), 1 => array ( 'path' => '/var/www/owncloud/apps-external', 'url' => '/apps-external', 'writable' => true, ), ), 'installed' => true, ); **List of activated apps:** ``` If you have access to your command line run e.g.: sudo -u www-data php occ app:list from within your ownCloud installation folder. ``` **Are you using external storage, if yes which one:**no **Are you using encryption:** no **Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/…No ### Client configuration **Browser: firefox** **Operating system: win10** ### Logs #### Web server error log ``` Insert your webserver log here ``` #### ownCloud log (data/owncloud.log) ``` Insert your ownCloud log here ``` #### Browser log ``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```