[NextcloudPi] ERROR Your data directory is invalid Ensure there is a file called ".ocdata" in the root of the data directory

you mean the HD?

yes, the hard drive

total 0 is what i get


pgrep udiskie -af


330 /usr/bin/python3 /usr/bin/udiskie -NTF

ok, seems like udiskie is not working (!!)

systemctl status nc-automount

the mount command is failing.

Output of

mount -t ext4 /dev/sda1 /mnt
ls -l /mnt


how do i get out of this command

q or esc

"mount -t ext4 /dev/sda1 /mnt"
i got : "mount: only root can use “–types” option
and after “ls -l /mnt” I got “total 0”

sorry, forgot sudo

sudo mount -t ext4 /dev/sda1 /mnt
ls -l /mnt

“mount: /dev/sda1: can’t read superblock”

as I thought… seems like your USB drive is either broken or it has corrupted metadata :S

try to repair it

sudo fsck.ext4 -p /dev/sda1
1 Like

try rebooting to see if that helped

ls -l /media
systemctl status nc-automount

it works again

thank you very much

cool, that power outage messed your filesystem it seems

Hi Nacho,

I seem to be having similar trouble but the drive is mounted.
I noticed that it seems to be looking at a location at /usbdrive where my datadir should be at /myCloudDrive.

Its really odd too because it was working absolutely fine but suddenly had this problem come up. No reboots or anything as far as I know.