This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

USB Partition
#1
Hi,

I have a problem with writing logs to a USB stick. The stick is connected to my Homelynk (FW 2.1.0) via a dlink DUB H4 USB hub. After approximately one week Homelynk loses the connection to the stick so the log file cannot be accessed. When I try to access the stick via ftp client it is also not accessible. I’ve been watching this behavior when the stick was connected with or without the USB hub. When I run the init script to mount the partition again it will work.

What is causing this behavior and how can I solve this problem?

My idea is to let the writing script check if the partition is accessible, but I don’t know how. If it isn’t accessible the script could try to mount the partition and write to the log file. Would this work with
Code:
dev = io.readproc('ls /dev/sd*1 2>/dev/null'):match('/dev/sd%l1')

from the init script or will this order find the stick in any case since it is physically connected?

The second idea is to check cyclically if the stick is accessible and give an alert if it is not.

Last but not least I could run the mounting script every 12 hours or so, but every time I run the script an additional line appears which shows the partition in the system status. Is this a problem in any case?

Maybe the problem is the stick itself. I don’t know who the manufacturer of this stick is. Does anyone have a suggestion which stick will work reliable?

Thank you guys
Reply


Messages In This Thread
USB Partition - by marc - 11.01.2018, 08:26
RE: USB Partition - by admin - 11.01.2018, 13:33
RE: USB Partition - by marc - 11.01.2018, 19:42

Forum Jump: