Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Whats up guys....I recently picked up an SSD for my new laptop and was wondering what to do when preparing it for new installation of linux? I know that I should limit the read/write as much as possible so was seeing if anyone has any experience with them and what should be done.
What I got so far is to update firmware, use EXT4, deff kill the swap, reduce time stamps, and move /tmp on the RAM? Also, is it better to install everything on a single partition or break it down a little?
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,521
Rep:
You just do it like with a HDD. After you have the operating system installed you can update the firmware, but that is usually not necessary. Only update the firmware if you know why you are doing it.
I've heard that SSDs are degrading a lot slower than they predicted, as far as I know most people don't worry too much about limiting the writes. My current one has lasted four years just fine with pretty heavy use.
If you want to squeeze out every last write, though, here are some tips:
- I'd guess the most important thing for the average user is to disable browser caching. For Chromium I think the way to do this is to launch it with the --disk-cache-dir=null option.
- It also couldn't hurt to add noatime to the drive's fstab entry.
- As for swap, I never need it, but you might if you're doing a lot of fancy video games or movie editing or something. A better option than totally nixing it might be to adjust your swapiness, so it uses it as infrequently as possible. I'm not sure if all distros do swappiness the same way, so you should google it for yours.
- Assuming systemd, check your /etc/systemd/journald.conf file and set Storage=volatile, or none.
- Your filesystem keeps tracks of its lifetime writes. You can check with, for example:
dumpe2fs /dev/sda4 | grep "write"
Mine shows over a terabyte for the currently installed OSes, and there have been three or four others that I've clobbered.
I'm not sure how much use /tmp actually sees for the average user, I'd guess not all that much. Upgrading frequently increases the writes a lot though, I'd limit it to monthly upgrades.
How many partitions you use shouldn't directly effect anything. I only use about 8 gigs per Linux, and I like to have three or four Linuxes, so my 120 gig hard drive has four partitions with OSes, twenty gigs each, and a 40 gig data partition that they all mount, for music and such. Having multiple partitions per OS tends to be more trouble that it's worth, for me anyways.
Edit: Note some interesting math here: 1 tb / 120 gb = 8.33 writes per byte. SSDs distribute writes evenly across the drive. If I remember correctly, they last for 100,000 writes or more. So unless you're running a server or something, you should be fine.
Last edited by crazy-yiuf; 11-14-2016 at 11:58 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.