WireGuard / wireguard-vyatta-ubnt

WireGuard for Ubiquiti Devices
https://www.wireguard.com/
GNU General Public License v3.0
1.45k stars 68 forks source link

Incorrect data directory for UDM SE in the wiki #117

Closed rys closed 2 years ago

rys commented 2 years ago

Package version

1.0.20211208

Firmware version

2.3.15

Device

Unifi Dream Machine (Pro / SE) - UDM

Issue description

In the main wiki page, the installation instructions groups the UDM SE in with the first batch of other devices that have /mnt/data as the main path that you should extract to.

However the UDM SE runs software very similar to the UDR, where /data is the main path you should care about, so it should be considered as similar to the UDR stead of the other UDMs.

Configuration and log output

No response

peacey commented 2 years ago

Hi @rys,

Based on my testing on a friend's UDM SE and feedback from others, I'm pretty sure the UDM SE is using /mnt/data, at least a few months ago when I checked. Just because it uses the same firmware as UDR doesn't necessarily mean it's using the same directory structure for mountpoints...

Can you please show me the output of mount and df -h on your UDM SE so we can confirm?

Regards, Peacey

rys commented 2 years ago

No problems, I've kept all output just in case there's anything else in there that you might need to see:

Output of mount:

sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=2016868k,nr_inodes=504217,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=404112k,mode=755)
/dev/boot3 on /boot/firmware type ext4 (ro,relatime)
/dev/loop0 on /mnt/.rofs type squashfs (ro,relatime)
/dev/boot7 on /mnt/.rwfs type ext4 (rw,noatime)
overlayfs-root on / type overlay (rw,noatime,nodiratime,lowerdir=/mnt/.rofs,upperdir=/mnt/.rwfs/data,workdir=/mnt/.rwfs/.workdir)
/dev/boot5 on /data type ext4 (rw,relatime)
/dev/boot4 on /var/log type ext4 (rw,relatime)
/dev/boot6 on /persistent type ext4 (rw,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
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)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime,nodiratime,size=1048576k)
mqueue on /dev/mqueue type mqueue (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/sda5 on /ssd1 type ext4 (rw,relatime)
tmpfs on /var/opt/unifi/tmp type tmpfs (rw,relatime,size=65536k)
tmpfs on /var/opt/unifi-protect/tmp type tmpfs (rw,relatime,size=524288k)

Output of df -h:

udev                               2.0G     0  2.0G   0% /dev
tmpfs                              395M  3.2M  392M   1% /run
/dev/disk/by-partlabel/root        2.0G  1.4G  419M  78% /boot/firmware
/dev/loop0                         732M  732M     0 100% /mnt/.rofs
/dev/disk/by-partlabel/overlay     5.4G  1.2G  3.9G  23% /mnt/.rwfs
overlayfs-root                     5.4G  1.2G  3.9G  23% /
/dev/disk/by-partlabel/data        3.9G   50M  3.7G   2% /data
/dev/disk/by-partlabel/log         976M   54M  856M   6% /var/log
/dev/disk/by-partlabel/persistent  2.0G  248M  1.6G  14% /persistent
tmpfs                              2.0G  8.0K  2.0G   1% /dev/shm
tmpfs                              5.0M     0  5.0M   0% /run/lock
tmpfs                              2.0G     0  2.0G   0% /sys/fs/cgroup
tmpfs                              1.0G  128K  1.0G   1% /tmp
/dev/sda5                          109G  592M  103G   1% /ssd1
tmpfs                               64M  5.1M   59M   8% /var/opt/unifi/tmp
tmpfs                              512M     0  512M   0% /var/opt/unifi-protect/tmp
peacey commented 2 years ago

Huh, it does seem you are right and it is /data. Well then, I'll change it in the wiki. Thank you for pointing this out. I do wonder if they changed it in a recent firmware, but in any case, it is what it is.

Thanks for bringing this to my attention. I don't have a UDM SE myself so it's good feedback!

peacey commented 2 years ago

Closing this now as it's resolved. Feel free to reopen if you find any other issues. Thanks!