Welcome! Log In Create A New Profile

Advanced

which usb flash drive for debian ( on nsa325 or other )

Posted by mordchen 
which usb flash drive for debian ( on nsa325 or other )
August 29, 2016 03:50AM
hello,

I have successfully installed debian on my nsa325 running on usb flash device.
But every flash device gets defect after using it for 14 days. ( I have now 5 defect usb drives )
I am using Intenso Micro Line 16 GB because this one was able to boot, when I tried to install debian.

I have tried a lot of things to minimize I/O on my flash drive.

1. My fstab-entry for rootfs partition is:

/dev/root / ext2 noatime,errors=remount-ro 0 1

2. I have moved the directories: /var, /tmp and /home to a external usb hdd

3. I am using a swap-file on internal hard drive

But the the problem still exists. After a couple of days, the flash drive dies ...

Which usb flash drive do you have?

best regards

Bjoern
Re: which usb flash drive for debian ( on nsa325 or other )
August 29, 2016 04:15AM
mordchen Wrote:
-------------------------------------------------------
> hello,
>
> I have successfully installed debian on my nsa325
> running on usb flash device.
> But every flash device gets defect after using it
> for 14 days. ( I have now 5 defect usb drives )
> I am using Intenso Micro Line 16 GB because
> this one was able to boot, when I tried to install
> debian.
>
> I have tried a lot of things to minimize I/O on my
> flash drive.
>
> 1. My fstab-entry for rootfs partition is:
>
> /dev/root / ext2
> noatime,errors=remount-ro 0 1
>
> 2. I have moved the directories: /var, /tmp and
> /home to a external usb hdd
>
> 3. I am using a swap-file on internal hard drive
>
> But the the problem still exists. After a couple
> of days, the flash drive dies ...
>
> Which usb flash drive do you have?
>
> best regards
>
> Bjoern

Best is Sandisk brand, any model. I have a few NAS that run with USB rootfs for a few years (all Sandisk Fit , 8GB and 16GB flash).

But something tells me that you're having some processes that write to USB so frequently so it dies that quickly. See this post for ideas (e.g. run iotop to monitor the writes)::
http://forum.doozan.com/read.php?2,13702,13704#msg-13704

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 08/29/2016 04:17AM by bodhi.
Re: which usb flash drive for debian ( on nsa325 or other )
August 29, 2016 04:51AM
Ok I will order sandisk drive and try it.

I am not sure, which kind of services and processes are doing this high frequent io on the flash drive.

I have installed NFS, SAMBA and LogitechMedia-Server. LMS is running its database under /var, which is moved to external hdd.

Any idea, how can I figure out which processes do the most io on my device?

thank you

Bjoern
Re: which usb flash drive for debian ( on nsa325 or other )
August 29, 2016 01:45PM
Bjoern,

As I mentioned above, in this thread.
http://forum.doozan.com/read.php?2,13702,13704#msg-13704

Quote

5. Use iotop command to watch frequent disk IOs (to figure out which log files needed to be moved or overmounted).
iotop -o -b -qqq

So what you should do is running it in the background and redirect output to a file in RAM. For example, run at 3-second interval and for 1200 times (1 hour):

iotop -o -b -qqq -n 1200 -d 3 > /tmp/iotop_1hour.txt &

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: which usb flash drive for debian ( on nsa325 or other )
August 30, 2016 02:42AM
thank you. I will try.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: