HclX / WyzeHacks

Hacks I discovered allowing Wyze camera owners to do customizations
MIT License
789 stars 75 forks source link

no nfs mounted, but root is working #7

Closed tomatensaus closed 4 years ago

tomatensaus commented 4 years ago

I followed your instructions

cd /system/bin/

cat mount.sh

mount -o nolock,rw 192.168.31.218:/home/xuxuequan/Ingenicwork/sharenfs /mnt

Looks like my NFS from the config file was ignored??

tomatensaus commented 4 years ago

I tried to mount my nfs without success. Found the issue with the path

telnet cd /system/wyze_hack fixed the path in config.inc source config.inc ./mount_nfs.sh

Up and running!

HclX commented 4 years ago

yes, you need to have your config.inc. When you install the hack, you can put your config.inc in the root of the sd card, it will get copied onto the camera during installation. Later installation will inherit the previous configuration file.

chaoticchoas commented 4 years ago

Ignore this sorry for the trouble. I was a idiot and forgot to chmod 777 the camera nfs directory.

So I am having a similar issue. I configured the config.inc and have it in the root of the sd card but it seems like the hack is not using it. I attempted to do what @tomatensaus did but I continue to get a permission denied error when attempting to run ./mount_nfs.sh. Mounting directory /mnt/WyzeCams/macaddr as SD card Creating data directory [/mnt/WyzeCams/macaddr] mkdir: can't create directory '/mnt/WyzeCams/': Permission denied [mkdir -p /mnt/WyzeCams/macaddr] failed, will retry... This is on a wyze cam v2 running on firmware 4.9.5.36 as well as V4.9.4.108

FuzzyMistborn commented 4 years ago

I'm having a similar problem trying to mount my synology NFS share. I keep getting permission denied. Any ideas?

tomatensaus commented 4 years ago

@FuzzyMistborn try with telnet... then mount by hand to get the path right. In my case I had to add /export/ to my path eg mount -t nfs /export/WyzeCam /tmp/test1

FuzzyMistborn commented 4 years ago

I got mounting by hand to work with:

mount -o port=2049,nolock,proto=tcp 192.168.10.20:/volume1/cameras /tmp/test

I tried modifying the mount_nfs.sh script to add those options/arguments but still getting permission denied.

tomatensaus commented 4 years ago

seems like the script in /system/bin/mount.sh is not used and the one in wyze hacks is used

edit the /system/wyze_hack/mount_nfs.sh

edit the mount command NFS_MOUNT="/bin/mount -o nolock,rw" to match your requirements

FuzzyMistborn commented 4 years ago

Hmmm, that's the one i edited (in /system/wyze_hack). I'll try again.