Copy files from MicroSD without extracting the card itself

eXtremer

Getting the hang of it
Joined
Oct 22, 2015
Messages
109
Reaction score
11
Hi all,

I don't know who to blame, maybe the 5.2.5 firmware but I cannot mount SMB. I receive "Failed to connect the test server". I've turned off the firewall, I've added rules to allow port 139 and 445 still no success. I need to extract the mtdblock6 from the MicroSD, unfortunately there is no way to physically extract the card itsef to read it's content. Is there another method to download the files from the camera directly ? I tried with WinSCP, it let's me see the files but I cannot download them. Need some help with this one.




 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,980
Reaction score
6,802
Location
Scotland
First of all, if this is a newly-created share it might be giood to validate the share settings in Windows :
In Windows Explorer, right click the sharename for Properties, Sharing tab, Share button, drop the list down to find the Username and use the Add button if not there.
Change the Permission Level to Read/Write and click the Share button.

Next, it might be worth trying setting up the mount point at the telnet or SSH shell of the camera.
This is available in the 5.2.5 firmware, if you enable it in the web GUI.
This will be a transient mount, it will not survive a reboot, but if it works OK will allow the file transfers.
Here is a worked example of manually adding a CIFS/SMB mount point, in this case a NAS (ignore the fact that there is already an NFS mount) :

Code:
alastair@PC-I5 ~ $ ssh admin@192.168.1.64
admin@192.168.1.64's password:


BusyBox v1.19.3 (2017-01-13 20:51:32 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

#
#
# ping 192.168.1.201
PING 192.168.1.201 (192.168.1.201): 56 data bytes
64 bytes from 192.168.1.201: seq=0 ttl=64 time=0.967 ms
64 bytes from 192.168.1.201: seq=1 ttl=64 time=0.628 ms
64 bytes from 192.168.1.201: seq=2 ttl=64 time=0.587 ms
^C
--- 192.168.1.201 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.587/0.727/0.967 ms
#
#
# 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)
#
#
# mount -t cifs -o username=IPcam,password=IPcam //192.168.1.201/cctv1 /mnt/nfs01
# 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)
//192.168.1.201/cctv1 on /mnt/nfs01 type cifs (rw,mand,relatime,unc=\192.168.1.201\cctv1,username=IPcam,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.1.201,file_mode=0755,dir_mode=0755,serverino,rsize=16384,wsize=57344,actimeo=1)
# ls -al /mnt/nfs01
drwxr-xr-x    1 root     root             0 Oct  1 15:51 .
drwxrwxrwx   13 root     root          1024 Jan 13  2017 ..
drwxr-xr-x    0 root     root             0 Aug 22 15:32 5420
drwxr-xr-x    0 root     root             0 Oct  1 15:46 @Recycle
-rwxr-xr-x    0 root     root       1109128 May 26  2015 busybox-armv6l
-rwxr-xr-x    0 root     root       1109128 May  2  2015 busybox-armv7l
-rwxr-xr-x    0 root     root            84 Jun 18 22:29 commands.txt
-rwxr-xr-x    0 root     root         19672 Jan 23  2017 daemon_fsp_app_545
-rwxr-xr-x    0 root     root         19672 May 30  2016 daemon_fsp_app_IPC_R0_EN_STD_5.4.0_160530
drwxr-xr-x    0 root     root             0 Nov 20  2016 datadir0
drwxr-xr-x    0 root     root             0 Nov 20  2016 datadir1
drwxr-xr-x    0 root     root             0 Nov 20  2016 datadir2
-rwxr-xr-x    0 root     root          5468 Sep 28 20:53 digicapkeyArm.ko
-rwxr-xr-x    0 root     root         30118 May 30  2016 en.tar.gz
-rwxr-xr-x    0 root     root        781248 Sep 28 10:06 encode
drwxr-xr-x    0 root     root             0 Sep 28 14:22 files
-rwxr-xr-x    0 root     root            68 Sep  8 19:35 info.bin
-rwxr-xr-x    0 root     root          6678 Sep 29 20:06 initrun.sh
-rwxr-xr-x    0 root     root          6674 Sep 29 20:03 initrun_orig.sh
-rwxr-xr-x    0 root     root         19672 May 30  2016 keydump540
-rwxr-xr-x    0 root     root         19672 Sep 28 15:54 keydump545
drwxr-xr-x    0 root     root             0 May 18 19:43 multimedia
drwxr-xr-x    0 root     root             0 Feb 28  2017 s500
drwxr-xr-x    0 root     root             0 Sep 26 10:51 tmp
drwxr-xr-x    0 root     root             0 Sep  8 15:53 xcontents
#
 
Top