Cant see btrfs filesystem

Hi, after a lot of attempts, i decided to contact you…
Im trying to install a new drive to expand the memory, by this steps:

  • First, format the hdd drive from pc with ext4 filesystem
  • Before power on the raspberry, connect the drive to raspberry
  • active nextcloud pi with ssh, nc-automount and format the drive with label “DATA”
  • run nc-datadir and move data to the new drive
    But nc-datadir give me this error:

Maintenance mode enabled
moving data directory from /var/www/nextcloud/data to /media/DATA…
Nextcloud is in maintenance mode, hence the database isn’t accessible.
Cannot perform any command except ‘maintenance:mode --off’

System config value logfile set to string /media/DATA/data/nextcloud.log
Nextcloud is in maintenance mode, hence the database isn’t accessible.
Cannot perform any command except ‘maintenance:mode --off’

System config value tempdirectory set to string /media/DATA/data/tmp
Maintenance mode disabled
/usr/local/bin/ncp/SYSTEM/metrics.sh: line 9: DOCKERBUILD: unbound variable

So I look where the drive is mounted and I cant find it
I executed through ssh sudo -s and then lsblk, fdisk -l but i cant find /dev/sda

I tried to change USB port but with the same result

Anyway, when i connect it with my usual pc, i can see it and i can mount correctly
I dont know what to do

Have you seen this article?

Yes, i checked in the forum too but i didn’t find nothing can help me
I follow this guida too:
https://pimylifeup.com/raspberry-pi-nextcloud-server/#moving-nextcloud-s-data-folder
To manually execute the process but with the same problem

Did you permanently mount the disk with fstab using uuid? If you cannot access it, try properly mounting it with fstab.

Once you have proper access you can set it up within ncp or docker however you prefer.

Nothing changed
I still cant see sda

I waited a few minutes that hdd was completely off and then I reconnected it to raspberry
Now it seems to work, but i dont know, it doesn’t seem the correctly procedure

Thank you in any case