My Ubuntu12.10 is installed on Samsung's 64 GB ssd, so it is necessary to optimize it and give full play to the ssd's best performance. As for ssd's 4 K alignment, do not worry about it in ubuntu11.10 or later versions, because it has been aligned during formatting, we recommend that you manually partition the data by dividing it into one EFI boot partition. mb is enough, and then distribute the remaining data to/file systems using ext4, the Internet says that brtfs is optimized for ssd, but I personally think that stability is the most important thing. Partition/home to HDD
My Ubuntu 12.10 is installed on Samsung's 64 GB ssd, so it is necessary to optimize this and give full play to the ssd's best performance. As for ssd's 4 K alignment, do not worry about ubuntu 11.10 or later versions, because it has been aligned during formatting, we recommend that you manually partition the data by dividing it into one EFI boot partition. mb is enough, and then distribute the remaining data/
The file system uses ext4. The Internet says that brtfs is optimized for ssd, but I personally think that stability is the most important thing.
The/home partition is assigned to the mechanical hard disk. It is a single disk. Because I have 8 GB of memory, there is no need to divide the swap partition, select the following boot drive as the efi partition. You must select this one. Otherwise, the boot will fail after installation... (Personal experience ...)
After the installation is complete, Do not update the system, first optimize:
Cp/etc/fstab. bk
Nano/etc/fstab (nano and vi can be used if the new system does not have vim)
Find the ssd hard drive in the following format:
UUID :.... /Ext4 errors = remount-ro 0 1
Add the following code with a space after ext4:
Noatime, nodiratime, discard
If you do this several times carefully, do not make a mistake. It should be because ssd is most afraid of sustained reading and writing of small files, so the cached files can be transferred to the memory, of course, the memory is enough.
The following code is needed
Add at the bottom:
Tmpfs/tmp tmpfs defaults, noatime mode = 1777 0 0
Tmpfs/var/spool tmpfs ults, noatime mode = 1777 0 0
Tmpfs/var/tmp tmpfs defaults', noatime mode = 1777 0 0
Tmpfs/log tmpfs defaults, noatime mode = 0755 0 0
Press ctrl + x to exit, Press y to save, and press Enter.
You can modify the firefox cache file:
Enter about: config in the address bar.
Right-click to add a string: browser. cache. disk. parent_directory
Value:/tmp
Finally, the following command is completed:
Echo noop>/sys/block/sda/queue/schedue
After reboot, mount and check whether the word "discard" exists in the brackets at the end of sda. If yes, it indicates that it is successful.
That's it.
Ubuntu SSD Hard Drive Optimization full record http://www.linuxidc.com/Linux/2012-09/70519.htm