Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-03-2007, 06:14 PM
|
#1
|
LQ Newbie
Registered: Dec 2007
Location: Chicago, USA
Distribution: Debian, NetBSD
Posts: 25
Rep:
|
Best practices to prolong the life of flash drives?
Hello,
I recently attained a laptop with an on board solid state drive instead of a hard drive. Since flash-based storage will expire after a certain number of writes, I have found that people generally recommend:
1] mounting the drive with the 'noatime' flag
2] using a non-journaling filesystem (ext2 instead of ext3)
3] not using a swap partition or swap file
However, I am wondering if there is anything else people might be doing to get more 'bang for their buck' out of their flash-based storage devices. Any suggestions?
I have of course also heard from some people that it doesn't matter much, but please humor me! I like to be conservative about the power and material I use up in my computing.
|
|
|
12-03-2007, 06:53 PM
|
#2
|
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274
Rep:
|
Other than the points already mentioned, I would throw in:
1. Keep files that you modify often, such as word processor documents, on a separate disk.
2. If you do any gaming and the game keeps cache and save files in a . directory in your home, move them to a separate disk and replace the directory with a symlink.
3. If you haven't already, setup /tmp to use tmpfs.
4. If /var/log/messages and syslog rotate a lot you can change it to rotate less often based on time or filesizes.
5. If you have a cron job to run updatedb often (mine runs every day at 6:30pm) you can change the frequency, the time or even turn it completely off.
6. Update and install packages only when you want or need to. Be careful allowing automatic updates and when installing things you're not sure you want or need. Depending on your distro dependencies can easily turn 1 packages into 10.
That's all I can think of right now.
|
|
|
12-05-2007, 11:54 AM
|
#3
|
LQ Newbie
Registered: Dec 2007
Location: Chicago, USA
Distribution: Debian, NetBSD
Posts: 25
Original Poster
Rep:
|
Thanks very much! I've gone ahead and mounted /tmp as tmpfs, which is an elegant way to deal with temporary data.
I've seen recommendations to mount with the 'nodiratime' flag as well.
Also, I am mounting /var/log as tmpfs. There are some disadvantages to this, but I can always turn this off if I need to do some serious debugging. It's a laptop, so I am less concerned about logs than if this was a server.
|
|
|
12-05-2007, 01:14 PM
|
#4
|
Moderator
Registered: Aug 2002
Posts: 26,120
|
The newer memory devices write/erase cycles are in the order of 1,000,000. In addition the solid state drives have some built in wear level technology which should prevent single cells from being "worn out" to soon. So in a nutshell with the steps you have already taken you should be ok.
You could also try jffs or yaffs which are filesystems designed just for flash memory.
|
|
|
All times are GMT -5. The time now is 07:43 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|