![]() ![]() The memory in flash drives is commonly engineered with multi-level cell (MLC) based memory that is good for around 3,000-5,000 program-erase cycles, but some flash drives have single-level cell (SLC) based memory that is good for around 100,000 writes. Ensure you avoid the SLC type which might only last a few days. As such you will not find the manufacturer utilities such as TRIM nor Linux support such as the nvme command ( Is it still bad to use swap on a modern SSD?).īelow is what wikipedia has to say about Pen Drive lifespan. SSDs are designed for OS, Pen Drives are notĪlthough you can use pen drives to store and execute an Operating System (OS) they were not designed for that purpose like an SSD (Solid State Device) is. You can also mount some directories on a persistent USB hard disk. Thus if you mount /var/log and your system encounters an error that causes it to reboot, you will not be able to find out why. The only issue with doing this is that any drives mounted in RAM will not persist past a reboot. This will allow /var/tmp to use 50MB of RAM as disk space. Highly used directories such as /var/tmp/ and possibly /var/log can be relocated to RAM in /etc/fstab like this: tmpfs /var/tmp tmpfs nodev,nosuid,size=50M 0 0 You can disable journaling on ext4 on an unmounted drive like this: umount /dev/sdaXĬheck if journaling is disabled for the filesystem and the partition is mounted: dmesg | grep EXT4Īssign the noatime mount flag to partitions residing on the USB stick by adding it to the options section of the partition in /etc/fstab. post power failure, kernel lockup, etc.). The obvious drawback of using a filesystem with journaling disabled is data loss as a result of an ungraceful dismount (i.e. Using a journaling filesystem such as ext3 or ext4 WITHOUT a journal is an option to decrease read/writes. Ref.: How to permanently disable swap file? Disabling Journaling on the Filesystem It is unlikely to increase performance significantly.ĭisable swap with the swapoff command: sudo swapoff -all This will increase the amount of RAM available, but it will result in a high number of read/writes. Swapping is the process of using part of the USB stick as volatile memory. To increase the lifespan of your USB stick, minimising the number of read/writes in various ways: Disable Swap ![]() I've been using this pendrive for about 8 months and it's still working fine. I didn't face any issues except wifi worked properly on all the three systems. I've used this pendrive on 3 different machines, two laptops (Dell and a MacBook) and a desktop computer. My usage has increased since then, and I have tried many different OSes, currently using Kubuntu 18.04. ![]() I made this post 3 months ago, asking about using Ubuntu from a pendrive. So, shall I continue using it like this? If yes, then how can I maximize the life of my pendrive?Īlso, I will use it for about 20 hours a week. I've read articles saying it will kill my pendrive, about write and read cycles and how USB have less of it. How will this affect the life of my USB drive? I decided to install the whole OS onto my pendrive.Ĭonsidering I use this for basic stuff like browsing, watching videos, copying files and not too heavy stuff. I have tried Puppy, KNOPPIX, Tails, and Slax. I don't have a personal desktop to use I have to use a shared laptop that my father uses. Booting from USBĮverything went well and I have a functioning desktop. I first installed VirtualBox and booted from the MATE live CD ( Minimal Installation). I've searched a lot over here and after reading all that all I understood is that I have to disable swap. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |