might be good baseline for wiki page? Wish I could, but due to injury, I'm wearing icepacks on my head 24/7
I bought 60G SSD for boot drive (/home on regular HD's). Tomshardware.com usually has current reviews on what's new/good/etc. Samsung (yesterday) seemed to have the best story to tell on such a drive.
SSD's use wear leveling algos to extend life, but when a file is deleted, just tossing the inode away doesn't give the SSD a clue as to what real free space or old used space can be overwritten thus performance slowly declines. Thus in windows "TRIM" is used to help out.
To copy my old install important stuff (flash usb stick), I copy over /etc and /root/.ssh and /root/.bash* to be able to copy, or preserve what you might want on the new fresh install.
Seems to be ext4 or btrfs filesystems are the best suited for SSD's in linux.
In my setup via installer (another USB stick created with unetbootin) I allocate as such:
/ 100% to the SSD. DO NOT put swap on an SSD, no real trim type support here. Partitions are pseudo partitions and performance can degrade easily.
other mount points (e.g. /home) leave on your spinning HD's. I also skip the separate /boot partition thing. It's not 1992 and my machine hasn't got a floppy drive
"discard" is a newer mount option for fstab which enables TRIM support.
After install (goes darned fast!), I reboot on flash (livedvd) again, and do the following:
open a console, su to root.
- Code: Select all
mkdir /mnt/a
mount -o noatime,discard /dev/sda1 /mnt/a
edit /mnt/a/etc/fstab to look something like this:
- Code: Select all
UUID=ee80574a-e42b-426c-924f-2778f6be3e09 / btrfs noatime,discard 1 1
noatime reduces writes, and automatically includes nodiratime as well. Of course, your UUID is unique, so don't accidentally just copy my example here!
I choose to add the following to fstab to speed up the machine, and reduce the writes/reads to the SSD. puts these in tmpfs (ram). /tmp is likely the best to offload as it is always expected to be clean at boot time.
- Code: Select all
tmpfs /tmp tmpfs defaults,nosuid,size=512M,mode=1777 0 0
tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0
tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0
note that these directories all really do disappear when you reboot. YMMV;-) /var/tmp is expected to survive reboots, but in this case, I don't really care.
if you also use portage, the following is a good idea as well.
I also do this:
- Code: Select all
mount /dev/sdXn /mnt/a/home
mkdir /mnt/a/home/var /mnt/a/home/usr
cd /mnt/a/usr && tar cf - portage |(cd /mnt/a/home/usr; tar xpf - ) && mv portage portage.dist && ln -s /mnt/a/home/usr/portage .
Then reboot onto your new SSD, "su" to root and
- Code: Select all
equo update database && equo upgrade --multifetch=10
then install any programs you like that aren't part of the base distro. There are places (such as sabayon's package storage directory) which might be appropriate to relocate to /home/var but that's really up to you and your results may vary a LOT.
Result: boot time cut by 2/3 or so, machine quiet, and generally feels a bit faster when starting programs and such.
Good luck,
andy
