FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
+1 vote
1,554 views 4 comments
by

Hi

I have alot of problems with RUT955 and USB keys

I have FAT32 on the USB and everything works fine for around 3 days then suddenly when is log into the RUT955 all files are gone.
 

root@Teltonika-RUT955:/mnt/sda# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    3.4M    548.0K      2.9M  16% /
/dev/root                10.8M     10.8M         0 100% /rom
tmpfs                    61.5M    220.0K     61.3M   0% /tmp
/dev/mtdblock5            3.4M    548.0K      2.9M  16% /overlay
overlayfs:/overlay        3.4M    548.0K      2.9M  16% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock7          576.0K    328.0K    248.0K  57% /mnt/mtdblock7
/dev/sda                 14.4G      4.0G     10.4G  28% /mnt/sda

root@Teltonika-RUT955:/mnt/sda# ls -alh /mnt/sda/
drwxrwxrwx    3 root     root        8.0K Jan  1  1970 .
drwxrwxrwx    1 root     root           0 Jul 24 20:52 ..

And after i reboot.

root@Teltonika-RUT955:/mnt/sda# reboot

login as: root
root@192.168.69.1's password:
BusyBox v1.30.1 () built-in shell (ash)

Teltonika RUT9XX 2014 - 2019
root@Teltonika-RUT955:~# ls /mnt/sda/
alarmat                                                                     rutdata
alarmdata                                                                   test

I see my files again...

But then USB is in read only mode
 

root@Teltonika-RUT955:/# echo 1 >/mnt/sda/delme

-ash: can't create /mnt/sda/delme: Read-only file system

I tried differnet USBs some get read only error after some time other just the same as this problem i write about now..
 

Soo I need a urgent fix for this problem, or where can I put my files so they survive a reboot or upgrade?

where can i put my files?

root@Teltonika-RUT955:/# ls -alh

drwxr-xr-x    1 root     root           0 Jun 29 16:37 .

drwxr-xr-x    1 root     root           0 Jun 29 16:37 ..

-rw-r--r--    1 root     root          26 Jul 29 13:18 1

drwxr-xr-x    2 root     root         726 Jun 10 08:38 bin

-rw-rw-rw-    1 root     root         298 May 31 06:38 branding

drwxr-xr-x    6 root     root        1.3K Jul 29 13:17 dev

drwxr-xr-x    1 root     root           0 Jul 14 12:57 etc

drwxr-xr-x   13 root     root         975 Jun 10 08:34 lib

lrwxrwxrwx    1 root     root          15 Jun 10 08:38 log -> /mnt/mtdblock7/

drwxrwxrwx    1 root     root           0 Jul 24 20:52 mnt

drwxr-xr-x    5 root     root           0 Jan  1  1970 overlay

dr-xr-xr-x   69 root     root           0 Jan  1  1970 proc

drwxr-xr-x   16 root     root         274 Jun 10 08:38 rom

drwxr-xr-x    2 root     root           3 Jun 10 08:35 root

drwxr-xr-x    3 root     root        1.9K Jun 10 08:38 sbin

dr-xr-xr-x   11 root     root           0 Jan  1  1970 sys

drwxrwxrwt   15 root     root         880 Jul 29 13:34 tmp

drwxr-xr-x    1 root     root           0 Jun 10 08:38 usr

lrwxrwxrwx    1 root     root           4 Jun 10 08:38 var -> /tmp

drwxr-xr-x    1 root     root           0 Jun 10 08:37 www

by anonymous
Also, are you constantly uploading some information to USB flash drive, or it just was inserted with already uploaded information?
by
I write around 500 Bytes every 5 min to the USB device, and it is not a tearing problem of the USB device.
I tried 3 different USB keys, they all get useless after 1-3 days usage in RUT 955.
Maybe the power to USB port is not the 500mA but differs a lot and that is corrupting the USB keys. I have not checked that, but that is what I think.

I now moved my script to the RUT own drive.

3 Answers

0 votes
by anonymous
Hello,

Just to be sure, after you plug your USB flash drive to a RUT955 and store some information in it, it will be erased after around 3 days? Without any interaction with the router? (no reboot or reset?)

RnD is trying to replicate this issue regarding USB data lose. When we will have more information, we will inform.

Only files which are in flash memory will be saved after reboot.
by
I run a crontab script that write around 500 bytes to the USB every 5 mins to the same file.

I don't reboot the RUT it just happen without any interference.

I thing think the 500mA on the USB port is not delivering 500mA all times and that is the problem.

I never manage to keep the USB ok for max 3 days. Tried with different brands no I am not using any cheap stuff from China.
0 votes
by anonymous
Hello,

do you have any fix about this issue ?
by
No.. I started to use the built in flash instead.
If I remember correct :
mkdir /usr/yourname    (you need to look that up)

and then the files are stored on that location using the RUT's flash drive.

Don't remember how much space you have but Was ok for my project.
0 votes
by anonymous
OK thank you.