<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>USB&#039;s lifetime</title>
        <description>Hi All,

@DonCharisma has mentioned that it&#039;s wise to minimize activity on USB Debian stick used to boot GoFlexNet. Sure things this is true. An ordinary USB stick will have limited write/read cycles and will fail one day, ussually before you expect. I had this problem before and probably many of us have it. 

Kindly search for your oppinion how is the best to save USB&#039;s lifetime by minimizing write/read actvity on USB. @DonCharisma suggested to disable as much as possible logs activity. My question is; what is the most efficient way to do this in Debian wheezy we have?

It was another suggestion not to place Swap partition on the USB. What is the best way to do it and how?

ES.</description>
        <link>https://forum.doozan.com/read.php?2,13702,13702#msg-13702</link>
        <lastBuildDate>Sun, 15 Mar 2026 00:19:34 -0500</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,140696#msg-140696</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,140696#msg-140696</link>
            <description><![CDATA[ Thanks again for help.<br />
I&#039;ll try to configure everything I want on my current USB drive ant will left it as a &quot;golden image&quot;. And after will try that schema with 2 partitions.]]></description>
            <dc:creator>Nikola204</dc:creator>
            <category>Debian</category>
            <pubDate>Tue, 30 Dec 2025 03:58:14 -0600</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,140694#msg-140694</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,140694#msg-140694</link>
            <description><![CDATA[ &gt; Thank you for the detailed explanation. One more<br />
&gt; thing, is it possible to create 2 partitions on<br />
&gt; one USB drive? Like this, first one - /boot, and<br />
&gt; the second one is / ? <br />
<br />
Indeed. 2 partition USB drive is the ideal set up. After you&#039;ve create 2 partitions, the process is basically the same, but with the following requirements.<br />
<br />
- The BOOT (or whatever name you choose) partition <b>must be</b> the 1st partition formatted as Ext3.<br />
- The rootfs partition <b>should be</b> the second patition and formatted with F2FS. Populate the rootfs partition with the tarball Debian-6.5.7-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (or Debian-6.6.2-mvebu-tld-1-rootfs-bodhi.tar.bz2) as before. <br />
- Copy the /boot folder from the rootfs parition to the BOOT partition.<br />
<br />
In the future, when you upgrade the kernel, you&#039;ll to copy the /boot folder to the BOOT partition again.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>Debian</category>
            <pubDate>Tue, 30 Dec 2025 03:54:36 -0600</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,140693#msg-140693</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,140693#msg-140693</link>
            <description><![CDATA[ bodhi Wrote:<br />
-------------------------------------------------------<br />
&gt; <br />
&gt; Later, after the NAS already run with the F2FS<br />
&gt; rootfs, you can remove all other files from the<br />
&gt; USB drive, <b>except the /boot folder</b>. Only<br />
&gt; the /boot is needed for u-boot to boot the kernel<br />
<br />
Thank you for the detailed explanation. One more thing, is it possible to create 2 partitions on one USB drive? Like this, first one - /boot, and the second one is / ? Or there is no other chance, then 2 USB drives usage?<br />
<br />
<br />
Thanks.]]></description>
            <dc:creator>Nikola204</dc:creator>
            <category>Debian</category>
            <pubDate>Tue, 30 Dec 2025 01:32:24 -0600</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,140691#msg-140691</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,140691#msg-140691</link>
            <description><![CDATA[ To boot with kernel on and Ext3/Ext4 drive and rootfs on F2FS rootfs.<br />
<br />
Assuming you&#039;ve already booted the USB drive on the NAS (with instruction in this forum). Shutdown.<br />
<br />
On another Linux host. Attach both USB drives. Assuming the USB rootfs is assigned /dev/sdc, and the F2FS rootfs drive is assigned /dev/sdb.<br />
<br />
1. Create new rootfs on the F2FS drive /dev/sdb1 (like you did for the USB drive).<br />
2. Remove or rename the label rootfs fom the USB rootfs /dev/sdc1. For example, rename it to BOOT<br />
<pre class="bbcode">
e2label /dev/sdc1 BOOT</pre>
3. Label the F2FS rootfs<br />
<pre class="bbcode">
e2label /dev/sdb1 rootfs</pre>
Sync and unmount both drives<br />
<pre class="bbcode">
sync</pre>
<br />
Attach these 2 drive to the NAS. Power up the NAS, this time u-boot will load the kernel from the USB drive. But when the kernel boots, it will mount the F2FS rootfs.<br />
<br />
==========<br />
<br />
Later, after the NAS already run with the F2FS rootfs, you can remove all other files from the USB drive, <b>except the /boot folder</b>. Only the /boot is needed for u-boot to boot the kernel]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>Debian</category>
            <pubDate>Mon, 29 Dec 2025 22:55:40 -0600</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,140675#msg-140675</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,140675#msg-140675</link>
            <description><![CDATA[ Hi guys.<br />
Could anybody provide me with step by step manual, how to deploy Debian 12 on USB drive with 2 partitions? <br />
From what I understood, I have to create 2 partitions:<br />
- boot ext3 with rootfs mark<br />
- / with f2fs <br />
<br />
How to configure everything properly? <br />
<br />
<br />
<br />
Thanks in advance.]]></description>
            <dc:creator>Nikola204</dc:creator>
            <category>Debian</category>
            <pubDate>Fri, 26 Dec 2025 11:43:10 -0600</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,68539#msg-68539</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,68539#msg-68539</link>
            <description><![CDATA[ jelabarre59 Wrote:<br />
-------------------------------------------------------<br />
&gt; I&#039;ve thought, as an alternative, have a backup<br />
&gt; script which runs periodically to save out your<br />
&gt; USB stick&#039;s files to another location (or an HDD<br />
&gt; if you&#039;re hosting storage off your Pogo v4).  The<br />
&gt; major issue would be how would you create a new<br />
&gt; USB to replace one that is dead/dying?  It seems<br />
&gt; you can only create the configurations on the<br />
&gt; device they would be installed in.  I would think<br />
&gt; there would be some way to format/build one on<br />
&gt; your standard Linux desktop/laptop instead, and<br />
&gt; swap it in (cloning might be obvious, but by the<br />
&gt; time you&#039;re replacing the USB, the capacity will<br />
&gt; be double of the old one).<br />
&gt; <br />
&gt; This has been a particular concern of mine, as I<br />
&gt; had a Pogo I had converted to Linux, and when the<br />
&gt; USB died (it lost power too many times and got<br />
&gt; corrupted) I had trouble getting it back up &amp;<br />
&gt; running (I might never have gotten it fixed, I<br />
&gt; don&#039;t remember).  It isn&#039;t like your standard<br />
&gt; desktop/laptop/server where you can stick in a<br />
&gt; bootable DVD and reinstall.<br />
<br />
I am running USB rootfs on many plugs. Basically:<br />
<br />
1. Take it offline, backup once to a tarball. <br />
2. Run rsync daily to back up the live rootfs to a network folder.<br />
<br />
When you need to recreate the rootfs, untar the tarball to a formatted USB, and rsync the backup folder to this new USB.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>Debian</category>
            <pubDate>Wed, 26 Sep 2018 17:04:20 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,68524#msg-68524</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,68524#msg-68524</link>
            <description><![CDATA[ I&#039;ve thought, as an alternative, have a backup script which runs periodically to save out your USB stick&#039;s files to another location (or an HDD if you&#039;re hosting storage off your Pogo v4).  The major issue would be how would you create a new USB to replace one that is dead/dying?  It seems you can only create the configurations on the device they would be installed in.  I would think there would be some way to format/build one on your standard Linux desktop/laptop instead, and swap it in (cloning might be obvious, but by the time you&#039;re replacing the USB, the capacity will be double of the old one).<br />
<br />
This has been a particular concern of mine, as I had a Pogo I had converted to Linux, and when the USB died (it lost power too many times and got corrupted) I had trouble getting it back up &amp; running (I might never have gotten it fixed, I don&#039;t remember).  It isn&#039;t like your standard desktop/laptop/server where you can stick in a bootable DVD and reinstall.]]></description>
            <dc:creator>jelabarre59</dc:creator>
            <category>Debian</category>
            <pubDate>Wed, 26 Sep 2018 15:08:18 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,66984#msg-66984</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,66984#msg-66984</link>
            <description><![CDATA[ Hi Koen,<br />
<br />
<br />
&gt; Would it be OK to use<br />
&gt; this internal memory as swap space or does this<br />
&gt; suffer from wear like the USB drive?<br />
<br />
Yes it is the same since it is SSD.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>Debian</category>
            <pubDate>Sun, 02 Sep 2018 14:33:14 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,66964#msg-66964</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,66964#msg-66964</link>
            <description><![CDATA[ Hi,<br />
<br />
I&#039;ve recently changed my pogoE02 to a HP T5325Z and I&#039;ve also started working on getting a Dell Wyse T50 to run Debian. Both the HP T5325Z and T50 have relatively large internal memory which is not being used anymore now that the operating system runs from the USB stick. Would it be OK to use this internal memory as swap space or does this suffer from wear like the USB drive?<br />
<br />
Koen]]></description>
            <dc:creator>Koen</dc:creator>
            <category>Debian</category>
            <pubDate>Sun, 02 Sep 2018 11:29:19 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,64499#msg-64499</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,64499#msg-64499</link>
            <description><![CDATA[ Hello Everyone,<br />
<br />
It&#039;s been a while! These days I had to replace 2 out of 3 usb flash drives. It took me a while to get up to speed with everything.<br />
<br />
I had what they claim to be SLC usb flash drives but I haven&#039;t seen any difference. The drives were Mach Extreme (MX-LX and MX-ES) expensive but no more reliable than others. Pity. <br />
<br />
Looked up on the internet for &#039;5 or 10 years warranty usb drives&#039; and put a reminder on calendar around 2023 to replace them if don&#039;t fail earlier. I found Duracell Memory Professional or Sandisk Extreme drives family, so for 5 years Duracell is just cheaper. I shall update when they fail. <br />
<br />
It is a pain to replace everything but now at least all is up-to-date. I use 2.5inch WD RED as hdds in RAID config with no spin-down for 4-5 years almost and happy about this.<br />
<br />
I shall look into using Debian busybox syslogd to log /var/log/messages to RAM as Bodhi have said for one of the GFNs and see any difference in usb drive&#039;s lifetime and update here.<br />
<br />
Kindest Regards,]]></description>
            <dc:creator>enki</dc:creator>
            <category>Debian</category>
            <pubDate>Tue, 07 Aug 2018 13:04:35 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,61634#msg-61634</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,61634#msg-61634</link>
            <description><![CDATA[ Dear bodhi,<br />
<br />
Makes perfect absolute sense, thanks for clarity :)]]></description>
            <dc:creator>DonCharisma</dc:creator>
            <category>Debian</category>
            <pubDate>Mon, 11 Jun 2018 13:35:13 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,61539#msg-61539</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,61539#msg-61539</link>
            <description><![CDATA[ Don,<br />
<br />
The reason I did not choose zram was because it takes up a fix amount of RAM. These plugs typically has 128MB or 256MB. Armbian or Ubuntu usually installed on systems that have a lot for RAM, typically 1GB.<br />
<br />
I chose zswap becasue it uses memory as it required, so it helps the 128MB RAM plugs.<br />
<br />
&gt; <br />
&gt; log2ram looks pretty easy to install, but hasn&#039;t<br />
&gt; been adopted as a package yet in Debian or Ubuntu.<br />
&gt; So Github - <a href="https://github.com/azlux/log2ram"  rel="nofollow">https://github.com/azlux/log2ram</a>  I<br />
&gt; believe this is the source of the built in log2ram<br />
&gt; in Armbian. The creator has created install<br />
&gt; /uninstall script which helps, and documentation<br />
&gt; he has on Github is OK.<br />
&gt; <br />
&gt; I&#039;m just about to install log2ram, so don&#039;t know<br />
&gt; of any issues yet.<br />
&gt; <br />
<br />
I use Debian busybox syslogd to log /var/log/messages to RAM. This is preinstalled on  the basic rootfs I released. I have not explored log2ram so don&#039;t know the advantage over syslogd.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>Debian</category>
            <pubDate>Sat, 09 Jun 2018 16:29:22 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,61514#msg-61514</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,61514#msg-61514</link>
            <description><![CDATA[ wow, an oldie but goody thread, was actually here searching for info on how to reduce flash writes again ...<br />
<br />
I noticed Armbian have adopted zram for helping reduce swapping by compressing memory for a swap space, and log2ram for logging to memory, with configurability of when logs are flushed out to disk/flash ... Unfortunately, neither is in a standalone package, they are built into Armbian ... however ...<br />
<br />
Ubuntu universe has zram_config package (0.5), which source can be downloaded, compiled and create a .deb for Debian system. Then just enable the systemctl, and start it. Can confirm that it seems to work ok. (Official Debian site has a link to zram_config on Ubuntu for systemd Debian installs.)<br />
<br />
log2ram looks pretty easy to install, but hasn&#039;t been adopted as a package yet in Debian or Ubuntu. So Github - <a href="https://github.com/azlux/log2ram"  rel="nofollow">https://github.com/azlux/log2ram</a>  I believe this is the source of the built in log2ram in Armbian. The creator has created install /uninstall script which helps, and documentation he has on Github is OK.<br />
<br />
I&#039;m just about to install log2ram, so don&#039;t know of any issues yet.<br />
<br />
Also, given limited memory on some of these ARM boards, I think either (or both) solution should be carefully tweaked and tested before &quot;putting into production&quot;. In particular, the amount of memory allocated to either zram or log2ram.<br />
<br />
Anyway, hopefully above helpful ...]]></description>
            <dc:creator>DonCharisma</dc:creator>
            <category>Debian</category>
            <pubDate>Sat, 09 Jun 2018 07:14:27 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,57294#msg-57294</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,57294#msg-57294</link>
            <description><![CDATA[ bennytheben Wrote:<br />
-------------------------------------------------------<br />
&gt; How many of these recommended tweaks are already<br />
&gt; enabled in your debian rootfs?<br />
<br />
None of them are. The rootfs is a very basic rootfs. It meant to be Linux learning vehicle, you have to install things you need.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>Debian</category>
            <pubDate>Mon, 16 Apr 2018 16:57:40 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,57269#msg-57269</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,57269#msg-57269</link>
            <description><![CDATA[ How many of these recommended tweaks are already enabled in your debian rootfs?]]></description>
            <dc:creator>bennytheben</dc:creator>
            <category>Debian</category>
            <pubDate>Mon, 16 Apr 2018 14:55:50 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,36409#msg-36409</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,36409#msg-36409</link>
            <description><![CDATA[ bodhi Wrote:<br />
-------------------------------------------------------<br />
<br />
&gt; It is mainly for the flash drives to avoid swappin<br />
&gt; g to flash. However, it could be useful for hard d<br />
&gt; rives also, if swapping is small and infrequent. I<br />
&gt; OW, if there are little swapping, it will stay in<br />
&gt; compressed space in RAM. But it is a tradeoff betw<br />
&gt; een RAM and CPU power. You&#039;ll be the judge.<br />
&gt; <br />
&gt; In servers operations, zswap is not recommended if<br />
&gt; the swap space is in HDD (there are signifcant swa<br />
&gt; pping going on with lots of daemon running that us<br />
&gt; e lots of RAM).<br />
&gt; <br />
&gt; zswap does not slow down CPU much at all. For plug<br />
&gt; s that has no SATA interface such as Pogo E02, zsw<br />
&gt; ap is really helpful (even with USB HDD attached,<br />
&gt; because of the inherent disk thrashing of USB prot<br />
&gt; ocol). For plugs such as GoFlex Net, with swap fil<br />
&gt; e on the HDD, I don&#039;t use zswap because SATA is fa<br />
&gt; st and buffered.<br />
&gt; <br />
&gt; BTW, I have most of the Kirkwood boxes in my farm<br />
&gt; (about 20, with 10-12 always running), so these ar<br />
&gt; e real world examples.<br />
<br />
Thank you, appreciate the details. I am convinced enough to enable it.]]></description>
            <dc:creator>haridsv</dc:creator>
            <category>Debian</category>
            <pubDate>Thu, 07 Sep 2017 04:14:10 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,36404#msg-36404</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,36404#msg-36404</link>
            <description><![CDATA[ &gt; Is zswap recommended only when using a flash stora<br />
&gt; ge for swap, or is it also useful when swap is set<br />
&gt; up on a hard drive? Also, does enabling zswap put<br />
&gt; a significant toll on the CPU that is in Pogoplug<br />
&gt; E02?<br />
<br />
It is mainly for the flash drives to avoid swapping to flash. However, it could be useful for hard drives also, if swapping is small and infrequent. IOW, if there are little swapping, it will stay in compressed space in RAM. But it is a tradeoff between RAM and CPU power. You&#039;ll be the judge.<br />
<br />
In servers operations, zswap is not recommended if the swap space is in HDD (there are signifcant swapping going on with lots of daemon running that use lots of RAM).<br />
<br />
zswap does not slow down CPU much at all. For plugs that has no SATA interface such as Pogo E02, zswap is really helpful (even with USB HDD attached, because of the inherent disk thrashing of USB protocol). For plugs such as GoFlex Net, with swap file on the HDD, I don&#039;t use zswap because SATA is fast and buffered. <br />
<br />
BTW, I have most of the Kirkwood boxes in my farm (about 20, with 10-12 always running), so these are real world examples.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>Debian</category>
            <pubDate>Thu, 07 Sep 2017 01:04:26 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,36403#msg-36403</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,36403#msg-36403</link>
            <description><![CDATA[ bodhi Wrote:<br />
-------------------------------------------------------<br />
&gt; zswap compresses the swap in memory before needing<br />
&gt; to swap to disk.<br />
<br />
Is zswap recommended only when using a flash storage for swap, or is it also useful when swap is setup on a hard drive? Also, does enabling zswap put a significant toll on the CPU that is in Pogoplug E02?]]></description>
            <dc:creator>haridsv</dc:creator>
            <category>Debian</category>
            <pubDate>Thu, 07 Sep 2017 00:03:25 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,36398#msg-36398</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,36398#msg-36398</link>
            <description><![CDATA[ haridsv,<br />
<br />
&gt; Isn&#039;t it a good idea to set vm.swappiness to 0 so<br />
&gt; that swap is used only when it is absolutely neces<br />
&gt; sary, instead of being used as a page cache?<br />
<br />
Not really. If you use a desktop on your plug such as XFCE, LDE, KDE, ...<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>http://forum.doozan.com/read.php?2,23630</strong><br />
Debian Desktop <br />
<br />
XFCE desktop Pogoplug Debian</div></blockquote>
<br />
then swapiness should be set to 0-10 to help the UI more responsive. But for a server, that would make the response time for other apps worse when you are close to running out of RAM. Servers should be balance in swapping to keep it running at a consistent rate. <br />
<br />
zswap compresses the swap in memory before needing to swap to disk. <br />
<br />
&gt; <br />
&gt; Is zswap already enabled by default or do we need<br />
&gt; to do anything?<br />
<br />
You need to activate it in the kernel bootargs: <br />
<pre class="bbcode">
zswap.enabled=1</pre>
In the new u-boot default envs there is a custom_params varaible already at the end of bootargs. So you can set it directly, or use the uEnv.txt to activate it.<br />
<br />
In Debian:<br />
<pre class="bbcode">
fw_setenv custom_params &#039;zswap.enabled=1&#039;</pre>
<br />
Or in uEnv.txt<br />
<pre class="bbcode">
custom_params=zswap.enabled=1
</pre>]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>Debian</category>
            <pubDate>Wed, 06 Sep 2017 17:44:33 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,36393#msg-36393</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,36393#msg-36393</link>
            <description><![CDATA[ Isn&#039;t it a good idea to set vm.swappiness to 0 so that swap is used only when it is absolutely necessary, instead of being used as a page cache?<br />
<br />
Is zswap already enabled by default or do we need to do anything?<br />
<br />
<pre class="bbcode">
admin@pogoplug:~$ cat /proc/cmdline
console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
admin@pogoplug:~$ dmesg | grep zswap
[    9.886230] zswap: loaded using pool lzo/zbud
admin@pogoplug:~$ cat /sys/module/zswap/parameters/enabled
N
</pre>]]></description>
            <dc:creator>haridsv</dc:creator>
            <category>Debian</category>
            <pubDate>Wed, 06 Sep 2017 11:40:32 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,31862#msg-31862</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,31862#msg-31862</link>
            <description><![CDATA[ joebob2000 Wrote:<br />
-------------------------------------------------------<br />
&gt; Is there a practical way to watch for failing drives? <br />
&gt; Is there a good tool for Linux to spot the count going up to preemptively change the drive?<br />
<br />
Not exactly, but unlike SMART,<br />
to test the (remaining) free space both initially and occasionally,<br />
there is <a href="http://oss.digirati.com.br/f3/"  rel="nofollow">http://oss.digirati.com.br/f3/</a> <br />
as a native (unixoid) remake<br />
of Heise.de&#039;s H2test(w) for (Win)DOS.<br />
<br />
Over the past decade at least, I have committed no USB or SD to &quot;production&quot; here without a full test cycle under one of the above, and (besides forgeries) caught many that were faulty fresh-from-factory.]]></description>
            <dc:creator>TEN</dc:creator>
            <category>Debian</category>
            <pubDate>Wed, 04 Jan 2017 14:18:55 -0600</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,15936#msg-15936</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,15936#msg-15936</link>
            <description><![CDATA[ I to have thought a bit about this topic, and recently I fell over this small script:<br />
<br />
<a href="http://www.nohl.eu/tech-resources/notes-to-linux/log-files-in-tmpfs-without-breaking-logging/"  rel="nofollow">http://www.nohl.eu/tech-resources/notes-to-linux/log-files-in-tmpfs-without-breaking-logging/</a><br />
<br />
The last post is for debian. Maybe Bodhi could implement this in future rootfs builds?<br />
<br />
Regards]]></description>
            <dc:creator>Termo</dc:creator>
            <category>Debian</category>
            <pubDate>Thu, 01 May 2014 07:42:33 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,13833#msg-13833</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,13833#msg-13833</link>
            <description><![CDATA[ There is an interessting discussion about flash memory wear out of SD cards with RaspberryPi: <a href="http://www.raspberrypi.org/phpBB3/viewtopic.php?f=63&amp;t=21281"  rel="nofollow">Link.</a>. They recommend to use the fstrim command so that unused blocks become available for wear leveling.<br />
<br />
It seams that there might be USB3.0 sticks available which support trim: <a href="http://www.thessdreview.com/our-reviews/supertalent-usb-3-0-express-rc4-64gb-flash-drive-review/"  rel="nofollow">Link</a>. With the tool TRIMcheck it can be tested if a drive supports trim: <a href="http://www.thessdreview.com/daily-news/latest-buzz/trimcheck-does-your-ssd-really-have-trim-working/"  rel="nofollow">Link</a>. If you have a Windows PC where you know that trim is working e.g. with SSD you could try to test USB stick as well.<br />
<br />
The problem is not just wearing out of USB flash memory drives but also slowing down write operations if each write needs an erase before.]]></description>
            <dc:creator>shv</dc:creator>
            <category>Debian</category>
            <pubDate>Sun, 20 Oct 2013 02:06:26 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,13797#msg-13797</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,13797#msg-13797</link>
            <description><![CDATA[ Is there a practical way to watch for failing drives?  Like SMART for flash?  The wear leveling is entirely internal to the flash drive, but doesn&#039;t it report &quot;bad&quot; or &quot;unusable&quot; sectors to the OS?  Is there a good tool for Linux to spot the count going up to preemptively change the drive? One thing that comes to mind in terms of partitioning swap and maybe all of /var/log (if a HDD isn&#039;t an option) is to just put a second small cheap flash drive in (we all have a dozen or so of those 1gb or less with no use anymore, amiright) and let it fail; when it fails just toss a new one in.  But, if there is no good way to tell when the drive is failing it might be just as troubling to have the unit hang even if the main data is safe.]]></description>
            <dc:creator>joebob2000</dc:creator>
            <category>Debian</category>
            <pubDate>Tue, 15 Oct 2013 09:17:11 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,13771#msg-13771</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,13771#msg-13771</link>
            <description><![CDATA[ I have a couple Mushkin Mullholland 8GB USB sticks I&#039;ve been using for two years without fail. I haven&#039;t babied them. I haven&#039;t bothered with having syslog write to RAM. I have SWAP on the stick. I don&#039;t even think I&#039;ve totally disabled atime. What I did do though, is only use 50% of the storage space.]]></description>
            <dc:creator>eas</dc:creator>
            <category>Debian</category>
            <pubDate>Thu, 10 Oct 2013 21:23:10 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,13742#msg-13742</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,13742#msg-13742</link>
            <description><![CDATA[ Any personal experience on how long a life a USB stick lasts? I think mine is over a year or two already.]]></description>
            <dc:creator>funtoy1001</dc:creator>
            <category>Debian</category>
            <pubDate>Mon, 07 Oct 2013 09:43:26 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,13726#msg-13726</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,13726#msg-13726</link>
            <description><![CDATA[ Maybe a flash stick with SLC flash cells is recommended even it is more expensive. Some additional hints need to be regarded. It is more or less the same as for SSD usage. To prevent wear out of certain flash areas only one partition over the complete Flash memory shall be used. The partition shall be aligned to the Flash sectors. I don&#039;t know how to find out the right alignment for Flash sticks. Moreover the Flash controller in the stick must have a good wear leveling function to prevent wear out of certain flash regions. Because just one partition is available a swap file must be used.<br />
I am not sure if TRIM is supported with USB sticks. If not invalid flash pages are deleted with a garbage collection function of the flash stick.<br />
<br />
Many problems with TRIM, garbage collection and wear leveling occured with certain SSDs in the past. Thay were sometimes resolved by firmware updates. Therefore we can expect that there such problems also occure with USB sticks. But I didn&#039;t see any firmware update for USB sticks.<br />
<br />
- shv]]></description>
            <dc:creator>shv</dc:creator>
            <category>Debian</category>
            <pubDate>Sat, 05 Oct 2013 02:47:45 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,13724#msg-13724</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,13724#msg-13724</link>
            <description><![CDATA[ Sandisk Fit is a real good choice! I&#039;ve been using 4G Sandisk Fit ext3 rootfs for my 2 media NAS for about a year. Swap file is on an attached Ext3 HDD. So far it has survived about 5 power outages. Booted right backup as if nothing has happened.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>Debian</category>
            <pubDate>Fri, 04 Oct 2013 16:56:48 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,13722#msg-13722</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,13722#msg-13722</link>
            <description><![CDATA[ enki,<br />
<br />
bodhi I know is an &quot;expert&quot; in these parts, so I reckon he knows what he&#039;s talking about.<br />
<br />
I&#039;ve tried to install Ubuntu on SD memory card before and that didn&#039;t work out too well. I thought I&#039;d broken the memory card, but when I formatted it back on FAT/FAT32 it was fine. I read somewhere that SD cards are designed to work FAT formatted and don&#039;t like other file systems. I&#039;ve tried different SD cards and results were the same/similar. The only common factor was the reader/writer USB unit, it&#039;s possible that this is the problem and a different unit would work OK.<br />
<br />
For USB sticks, I only have had Sandisk Cruzer and Cruzer fit, and they seem to work OK, although I&#039;d err to the side of the standard Cruzer (not the Fit). There may well be other brands and models, but I just don&#039;t have any experience.<br />
<br />
If you&#039;re going to use Flash stick persistently, then my suggestion would be get the install how you want it, then pull the stick and duplicate it on a Desktop machine (double sure take an image of the rootfs). Keep the backup stick handy for when it gives up. Obviously if you&#039;re making major changes then you need to do the copy procedure again.<br />
<br />
Another option would be to go the Embeded Debian on your Pogoplug/Goflex, I think that built in flash is faster than the USB and it&#039;s more likely designed for heavier usage. There are posts on the forum about how to do this.<br />
<br />
One last option I know there is a company in UK called linitx, they sell industrial flash drives, presumably those bad-boys will last a lot longer.<br />
<br />
Cheers<br />
<br />
Don Charisma<br />
<a href="http://DonCharisma.com"  rel="nofollow">http://DonCharisma.com</a>]]></description>
            <dc:creator>DonCharisma</dc:creator>
            <category>Debian</category>
            <pubDate>Fri, 04 Oct 2013 16:10:29 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,13702,13704#msg-13704</guid>
            <title>Re: USB&#039;s lifetime</title>
            <link>https://forum.doozan.com/read.php?2,13702,13704#msg-13704</link>
            <description><![CDATA[ To prolong the life of your rootfs USB thumb drive:<br />
<br />
1. Use busybox-syslogd to log to RAM.<br />
2. For each package you installed, either specify the log file in /tmp. Or overmount the log files to /tmp (mount -o bind).<br />
3. Use a swap file so you can create it on an attached HDD. And create one on flash drive in case the HDD is not attached. Use a script to detect if the HDD is present during boot. If it is not then switch to the USB thumb swap (this should not happen, so it is just a precaution).<br />
4. Watch the swap if it is on USB thumb. There should be no swap needed. If seeing swap actvities then always use the HDD to handle swap.<br />
5. Use iotop command to watch frequent disk IOs (to figure out which log files needed to be moved or overmounted).<br />
iotop -o -b -qqq<br />
6. Use zswap if the kernel supports it.<br />
 <br />
With all these remedies, you can use Ext3 for the USB rootfs on a thumbdrive to prevent corruption during power outage.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>Debian</category>
            <pubDate>Tue, 01 Oct 2013 00:39:26 -0500</pubDate>
        </item>
    </channel>
</rss>
