Showing posts with label ssd. Show all posts
Showing posts with label ssd. Show all posts

Thursday, February 11, 2016

SSD Status Summary

I was relatively late to the SSD bandwagon — and so seemed to have dodged the worst of the unreliable phase.

Now I detest using a machine without one, and have collected quite a few over the past few years for my own and my family's machines. Thought I'd throw up the status of them all, including when they fail. So far I've had pretty good luck — worst problem was the DOA Patriot Blaze.

Home Use:

DevicePurchasedPurposeIssues
Samsung 830 128GBOct 2012General use/Gaming PC
Samsung 830 128GBDec 2012General use
Kingston V300 60GBMar 2013HTPC
Plextor M5S 128GBAug 2013General use
Sandisk ReadyCache 32GB2014Scratch/test drive
Sandisk UltraPlus 128GB2014General useDied: Feb 2018
Plextor M5 Pro 256GB2014Gaming PC
Transcend SSD370 256GB2015General use
Patriot Blaze 250GB2015Gaming PCDOA — returned for Ignite
Patriot Ignite 250GBAug 2015Gaming PC
Samsung 840 Evo 120GB? (2nd hand 2015)TBD
Transcend SSD370S 128GBJan 2016General use/Gaming PC
Intel 535 240GBApr 2016Work laptop
Intel 330 120GBJul 2016 (2nd hand)General use/GamingPC
Sandisk SSD Plus 480GNov 2016General use

Tuesday, September 10, 2013

Budget Small(ish) Web Browser Box

I wanted a small box to sit in the corner as basically nothing more than a web browser. Since mITX parts were so difficult to source locally, I went the smallest mATX case I could find.

Here is the parts list:
  • CPU: AMD A4-5300 $55
  • Mobo: Asus F2A55M-LK-Plus $49
  • RAM: 1x4GB 1600 (already had)
  • SSD: Plextor M5S 128GB $89
  • Case: Coolermaster RC361 $49
  • PSU: Corsair VS450 $49
  • KB/Mouse: USB combo (already had)

Total: $291 (would have been about $350 if I didn't have RAM/KB/mouse already).

Some happy snaps:

The motherboard, fresh out of the box. Notice how it captures the light...(because of my crappy photography)

The motherboard was fairly low end, but was a good price so I grabbed it. It doesn't have a USB 3 header of SATA 3, but since the build didn't need either, it filled the requirements.

CPU, pins pins pins

Motherboard with RAM, CPU and HSF mounted

Mounting the AMD HSF was straightforward: stick it on the CPU and clip it into place. Easier than Intel's "four pins" mechanism, which takes a little getting used to.

The empty case

The Coolermaster RC361 is about the smallest micro-ATX case I could source locally. It's a "sideways" mini tower, so can stand upright or on its side. For a case that cost less than $50, it's not too bad.

Case with the power supply (tucked away, unusually, in the front of the case)

Mounting the power supply was fairly tricky, and given its unusual location, there's no way to turn the PSU on or off without pulling the front of the case off (which, unlike some cases, came off easily). I don't think access to the PSU switch will prove too much of a problem for my uses. The case also has no place to mount an SSD. Since I didn't have a mounting kit, I just taped it to the bottom of the case. The RC361 does come with a comprehensive set of extra screws and cable ties.

The completed build. SSD isn't visible because it's taped to the bottom of the case

Installed Kubuntu 13.04, it worked really well. The AMD A4-5300 (with proprietary Catalyst drivers installed) will even play some games at a reasonable level (if with low settings).

Monday, February 11, 2013

Linux SSD Setup

A solid state drive (SSD) is often the cheapest way to improve all-round performance in a computer.

There are many guides for setting up an SSD for each operating system. When I did a recent reinstall of Xubuntu, I looked through a few of the guides and picked what I felt were the most important things. To my mind, these are the two biggest things:

  • Ensure that the drive controller is running in ACHI mode. This is an option in the BIOS. (Note: With Windows, you need to change this mode before installing. I haven't tried changing it with a Linux install, but it will trash a Windows install).
  • Edit /etc/fstab to add "noatime,nodiratime,discard" options for the SSD partitions.

Since SSDs have a lifetime measured in "number of writes", much of the tuning advice is aimed at reducing the number of unnecessary writes.

Here's a few other things I did.

WARNING: I based doing this on the principle of "OS/applications on SSD, data/media on HDD", and "reduce unnecessary writes". Whether or not they are good things to do (particularly, mapping /tmp to a different drive while the system was running), I have no idea. It worked for me, but I didn't base this activity on any existing guide.

System Setup

I have one SSD (Samsung 830 128GB) and one HDD (Seagate Barracuda 2TB). During installation, I partitioned the SSD into ~80GB for the "primary" OS and the remainder for "experimental" OS installs.

I allocated the swap space to the HDD, since this could case a lot of writes if the system ever needs to swap out (probably rare, given the RAM available). I mounted the HDD as "/files".

Mapping Files in User Home Directory

By default /home contains all the user's files. When I was using Mint, it automatically created "Documents", "Downloads", "Pictures", "Videos" etc. in the user home directory. I maintained this with Xubuntu (can't remember if Ubuntu variants do this by default), but replaced the true directories with symbolic links to the equivalent directories in the HDD (in the /files partition).

For example:

    $ rmdir Documents
    $ ln -s /files/ashley/Documents Documents

This means that all these files are stored on the HDD, keeping the SSD free from associated writes.

Mapping Email and Browser Data

The user's home directory also contains email and browser data. So I symbolic linked my thunderbird mailbox to the HDD as well. This Firefox support post explains how to move the Firefox cache to another drive. In hindsight, I probably should have just linked the entire Firefox folder as well.

Remapping /tmp

I remapped /tmp from the SSD to the HDD. This one was a bit of an experiment. It could have killed my system, I suppose, but everything seemed okay, so I'll explain what I did.

The system uses the directory /tmp to store random runtime stuff as needed. It's a special directory in that anyone can write to it. You need to set the "sticky" flag for this. If you do an "ls -l" on it, you'll see something like this:

    drwxrwxrwt  2 user user 4096 Nov 19 20:13 tmp

The "t" character at the end of the first column indicates the sticky bit is set. This is what I did to move my /tmp directory:

    $ sudo mkdir /files/tmp
    $ sudo chmod 777 /files/tmp
    $ sudo chmod +t /files/tmp
    $ sudo rm -rf /tmp
    $ sudo ln -s /files/tmp /tmp

The reason I noticed I needed to set the sticky flag (the "chmod +t"), is that without it, filename completion in the terminal stopped working. I imagine a whole heap of other stuff would have to.

Also, when I look at my tmp folder now, the "t" flag no longer appears. Not sure why, but everything still seems to work.

So, there it is: cowboy setup for reducing SSD writes.