observations about another NCP installation which is working properly (just as an example to find a way to get my defective system to work again):
I’m trying to find and mount my SSD (containing the data I want to re-cover). So, I looked into another NextCloudPi installation and found that even though the SSD is working properly as data storage for the NCP system, I can not find the mount configuration within that system:
lsblk
on the working system gives
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 223,6G 0 disk
└─sda1 8:1 0 223,6G 0 part
mmcblk0 179:0 0 14,9G 0 disk
├─mmcblk0p1 179:1 0 43,9M 0 part /boot
└─mmcblk0p2 179:2 0 14,9G 0 part /
this clearly shows dev/sda1
to be the device I’m looking for. And within my config.php
I see the following row as being correct and operational:
sudo more /var/www/nextcloud/config/config.php
gives
...
'datadirectory' => '/media/SSD240GB/ncdata',
...
When I look into /media/SSD240GB/ncdata/
, I see the known structures NC stores for user data.
I would now expect to see some kind of mount connection between /dev/sda1
and /media/SSD240GB
but both, mount
and cat /etc/fstab
don’t show any hint about the already working connection:
mount
gives
/dev/mmcblk0p2 on / type ext4 (rw,noatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=469544k,nr_inodes=117386,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/mmcblk0p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=94828k,mode=700,uid=1000,gid=1000)
which doesn’t contain /dev/sda1
and
cat /etc/fstab
gives
PARTUUID=df45002e-01 /boot vfat defaults 0 2
PARTUUID=df45002e-02 / ext4 defaults,noatime 0 1
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that
the latter only shows references to the SD card within the RPi.
How can I mount (connect my SSD with the media folder) in the way NextCloud does it? How does NextCloud mount? NextCloud doesn’t seem to use neither mount
nor fstab
.