Within Telnet Command TFTP: Not Found

proxybox

Young grasshopper
Joined
Feb 8, 2015
Messages
36
Reaction score
3
Location
Los Angeles
I wanted to backup my mtdblock5 & 6 through Telnet on my cameras. I am running Firmware V5.2.5 _141201. I can CAT the files for backup but I cannot get it to tftp back to my server. I get the following message when typing tftp -p -l <filename> <server IP>. On my NVR, I was able to backup the files without any problems.

Oh, and to clarify on the NVR with V3.1.0_150511 the telnet is PSH (protect shell) so can't perform any tasks since it is limited?

Thanks
 

Attachments

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,970
Reaction score
6,795
Location
Scotland
Yes, tftp does not exist in the running state of a 2xx2 camera.
Probably the easiest way to get your file to and from the camera is to add a 'NAS destination' in the storage menu in the web GUI.
This can be a share on a PC, or NAS box, and can be CIFS/SMB (eg Windows, needs a username/password) or NFS (usually a NAS box).
For this purpose - it does not have to be formatted, so it can be a large (ie over 250GB) volume.
The commands are as below, with the 'mount' command being used to find the actual mount point of the NAS destination that has been added.
And by the way - check out the 'cat' command for the correct way to copy the mtdblock, when you have used 'cd' to change directory to the NAS mount point.
Code:
login as: root
[EMAIL="root@192.168.254.12's"]root@192.168.254.12's[/EMAIL] password:

BusyBox v1.19.3 (2014-07-11 11:25:54 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
ramfs on /home type ramfs (rw,relatime)
udev on /dev type tmpfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/ubi1_0 on /dav type ubifs (rw,relatime)
/dev/ubi3_0 on /davinci type ubifs (rw,relatime)
/dev/ubi4_0 on /config type ubifs (rw,relatime)
192.168.1.201:/cctv1 on /mnt/nfs00 type nfs (rw,sync,relatime,vers=3,rsize=4096,wsize=4096,namlen=255,acregmin=0,acregmax=0,acdirmin=0,acdirmax=0,soft,noac,nolock,proto=tcp,port=65535,timeo=70,retrans=3,sec=sys,local_lock=all,addr=192.168.1.201)
# cd /mnt/nfs00
# cat /dev/mtdblock5 > mtdblock5_save
# ls -al
drwxrwxrwx    7 root     root          4096 Oct  9 21:40 .
drwxrwxrwx   13 root     root          1024 Jul 11  2014 ..
drwxr-xr-x    2 root     root         12288 Sep 19 21:31 datadir0
drwxr-xr-x    2 root     root         12288 Sep 19 21:33 datadir1
drwxr-xr-x    2 root     root         12288 Sep 19 21:34 datadir2
-rwxr-xr-x    1 root     root            68 Sep 19 21:33 info.bin
drwxrwxrwx    4 65534    nogroup       4096 Sep 23 22:30 mtd
drwxrwxrwx    2 65534    nogroup       4096 Sep 23 22:29 mtd1
-rw-r--r--    1 root     root        524288 Oct  9 21:41 mtdblock5_save
# tftp
-sh: tftp: not found
# ftp
-sh: ftp: not found
# ftpd
-sh: ftpd: not found
#
 

proxybox

Young grasshopper
Joined
Feb 8, 2015
Messages
36
Reaction score
3
Location
Los Angeles
Arigato. Worked perfectly to my ZyXEL NSA325.

I tried the windows CIFS method for kicks but it didn't work. On further searching I noticed there is an issue with CIFS and 5.2. There is a workaround by creating a separate partition for the share but I didn't want to go through that mess.
 
Top