Linux - HardwareThis 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.
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.
This is about the modern SSDs, and all the addressing technology to manage "wear levelling", and whether any of it involves built-in software that might rely on an external (Windows?) driver.
There may be similar features in regular USB memory sticks. I have come across some with strange partitions, and I sometimes wonder if any volumes are hidden, even if all they do is manage avoiding intensive re-writes to the same locations.
There are already some good Linux hints to prolong the life of flash memory, such as using the "noatime"option in fstab to avoid unnecessary recording of the time of each write.
Some modern SSDs claim "guaranteed 10-year life".
The question is, can we use a SSD with Linux like any other drive? Erase all, re-partition, overwrite boot sector, whatever, without any presumed "driver assist" from the operating system?
I think that just using discard would be ok with modern ssd to not to worry about their life. Life time of SSD is expected to be longer than HHD's one and also is more measureble.
In linux you just have to be careful about logs, some very verbose logging may affect very bad your SSD life
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Apart from noatime there shouldn't be anything else to worry about. SSDs are meant as drop-in replacements for spinning rust drives and any wear-levelling and the like are done on-device by firmware.
There seems to be some debate about whether to use the "discard" option in fstab as it apparently slows down some operations so some recommend scheduling fstrim or running it manually instead.
I've a couple of OCZ ZZDs in my desktop and OCZ even produce Linux software (32 and 64 bit) to update the firmware and check the health of the devices.
I have to admit I'm of the mind that one should just use things and, if they don't work, they're not fit for purpose. I'd not have bought SSDs if it meant messing around with file system parameters and the like to prevent early death. The only concession I have made is to mount /tmp and /var/tmp on tmpfs but that is more due to having far too much RAM than fear of wearing out the SSD.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
I should also mention I use noatime on all disks just because I don't have anything that needs atime so it's a waste of time -- the fact it cuts down on SSD wear is just a happy side effect. Can't argue against relatime just not using it because I don't need it.
Some members in this thread may find this Slackware members forum thread useful; http://www.linuxquestions.org/questi...an-ssd-925789/
Be aware this thread is three years old and some data should be updated via manufactures information for a current 'SSD'.
Hope this helps.
Have fun & enjoy!
Last edited by onebuck; 08-22-2015 at 08:57 AM.
Reason: typo
Clearly one can use the drives easily enough, but some of the speed advantages can be significantly impaired unless one configures a system to avoid them.
The available hardware has a great variety of clever features to get around the write limitations of flash memory, including having special blocks having much more robust performance (beyond 100,000 writes), and internal strategies move data to new blocks. The technology is changing all the time, and it is hard to keep up with it. The stuff seems complicated simply because it really is (complicated)!
When one has 8GB or 16GB, or even, in the case of one PC I use, 32GB of RAM, the need to write to non-volatile storage sync is perhaps driven by need to ensure safety if power is lost, or the computer hangs when working RAMFS or TMPFS type operation. We all love RAM speed when the entire OS is loaded into RAMFS, and I suppose the the cherished ideal would be truly non-volatile RAM big enough to do all.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
The link regarding discard may, or may not, be out of date: https://kparal.wordpress.com/2013/05...intel-525-ssd/
From the above it's not clear to me whether they understand sync and have taken it into account though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.