[Solved] SSD optimisation in SL 6.1
Forum Linux/Free BSD : General Discussion [Solved] SSD optimisation in SL 6.1
You all know I don't know all that much about Linux, possibly even less about terminal.
Well...
I want to enable TRIM, disable swap/tmp if possible and optimise my SSD for Linux according to an article in APC. Here's a little background...
Scientific Linux 6.1 + all updates, Crucial m4 64GB SSD.
You might notice this thread being on the APC forum. That's because I'm asking on behalf of that user I know irl.
Code :
|
From the magazine I'm reading (APC Feb 2012; Linux Mint 12):
| Quote : No distributions enable it (TRIM) by default, but it's simple to do by adding the 'discard' flag to any mounted SSDs. To make these changes, open up terminal and run: sudo nano -w /etc/fstab Then for all SSD devices remove 'relatime' if present and add 'noatime, nodiratime,discard' so it looks something like: dev/sda / ext4 |
So where would I put it on my etc/fstab? Do I just copy and paste it somewhere??
Code :
|
If there is a more elegant way of no having tmp/swap requires a re-installation/repartition manually to regain disk space, I'm really not that worried. Thanks all.
Message edited by amdfangirl on 02-02-2012 at 11:23:25 AM
Is an art, like everything else.
I do it exceptionally well.
-Slyvia Plath Lady Lazarus
Reply to amdfangirl
Code :
|
should deal with the swap partition (first to remove the swap LV, second to resize the home LV, and third to resize the filesystem). Remove line 10 of /etc/fstab as well. You may well have to do it from a bootable CD/DVD/USB. And no guarantees that it will work – it came from "man lvm" (to find the utilities, then their man pages for details) and "man -k ext4" (to find out it was resize2fs I was looking for, then man resize2fs for details).
Then lines seven through nine of /etc/fstab will need "defaults" changing to "defaults,noatime,nodiratime,discard".
Message edited by PreferLinux on 02-03-2012 at 04:27:53 AM
Rom. 3:23; 6:23; 5:8; 10:9-10,13
Reply to PreferLinux
| PreferLinux wrote :
|
I just realised that from research I was doing lol.Just was about to post it haha.
Is an art, like everything else.
I do it exceptionally well.
-Slyvia Plath Lady Lazarus
Reply to amdfangirl
After reading over the RHEL storage admin guide, I ended up with:
sda (SSD)
sda1 / Rest of space
sda2 /boot 500MB
Free Space 2 MB
sdb (HDD)
sdb1 /home Rest of space
sdb2 /tmp 200MB
Free Space 2MB
I chose not to have swap because I could never use all of my 8GB of RAM in Windows 7 (no pagefile and more of a memory hog) anyway.
I will flag the SSD with defaults,noatime etc. after I finish the reinstallation. Thanks mate!
Message edited by amdfangirl on 02-03-2012 at 08:40:44 AM
Is an art, like everything else.
I do it exceptionally well.
-Slyvia Plath Lady Lazarus
Reply to amdfangirl
Best answer selected by amdfangirl.
Is an art, like everything else.
I do it exceptionally well.
-Slyvia Plath Lady Lazarus
Reply to amdfangirl
This topic has been closed by Amdfangirl
Is an art, like everything else.
I do it exceptionally well.
-Slyvia Plath Lady Lazarus
Reply to amdfangirl
There are 41 identified and unidentified users. To see the list of identified users, Click here.
2000-2009 Bestofmedia Group
