Install UbuntuKylin13.04 on SSD

Source: Internet
Author: User
I finally installed UbuntuKylin13.04 on the SSD. It was very difficult! It is recommended that you install it using USB live. The speed is very fast. The actual measurement is 128 gb ssd + 8 GB memory. The installation is completed in about 8 minutes during online download. Step 1: Disable the ext4 log function Note: The system mount can not disable the log function, so you need to use the installation of the U disk system, the use of root permissions to execute: # sudotune2fs-O ^ has_journal/d

It was very difficult to install UbuntuKylin 13.04 on SSD!

We recommend that you use USB Live for installation. The installation speed is very fast. The actual measurement is 128 gb ssd + 8 GB memory. During online download, the installation is completed in about 8 minutes.

Step 1: Disable the log function of ext4

Note: The log function cannot be disabled when the system is mounted. Therefore, you need to use the installed USB flash drive system and run the following command with the root permission:

# Sudo tune2fs-O ^ has_journal/dev/sda1

Perform operation Detection:

# Sudo e2fsck-f/dev/sda1

Note: If the SSD hard disk is divided into more than one partition, you need to set the log function for each partition.

Restart, go to the SSD system, and check whether the settings are successful:

# Dmesg | grep EXT4

If the following result is displayed, the setting is successful:

[7.003337] EXT4-fs (sda3): mounted filesystem without journal. Opts: (null)

[7.983753] EXT4-fs (sda3): re-mounted. Opts: discard, errors = remount-ro

[8.025093] EXT4-fs (sda1): mounted filesystem without journal. Opts: discard

[8.033006] EXT4-fs (sda4): mounted filesystem without journal. Opts: discard

[8.199882] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)

Step 2: Enable TRIM and set read/write options

TRIM is an operating system-scheduled SSD block writing method. This is mainly because frequent operations on the flash memory units of the same SSD will wear out, affecting the service life. This is different from the traditional mechanical hard drive for processing and deleting data. The Linux kernel supports TRIM since 2.6.33.

First, check whether the kernel version and SSD hard drive support TRIM:

# Sudo uname-

# Sudo hdparm-I/dev/sda | grep TRIM

If the hardware is supported, a message similar to the following is displayed:

* Data Set Management TRIM supported (limit 8 blocks)

* Deterministic read ZEROs after TRIM

To enable TRIM, You need to modify the/etc/fstab file and add discard to the options.

You can also use the noatime and nodiratime options to force Linux to not record the file access time to reduce write operations on SSD.

File Modification example:

UUID = 9064cc67-5f20-4cf6-b71c-f18d78bfb60b/ext4 noatime, nodiratime, discard, errors = remount-ro 0 1

UUID = 869f54b7-b9f2-414f-9436-565412827c39/boot ext4 noatime, nodiratime, discard, defaults 0 2

UUID = cec0f78a-581f-4748-a686-acbbdea23270/home ext4 noatime, nodiratime, discard, defaults 0 2

After the restart, run the mount command to check whether the operation is successful.

Step 3: swap space

For large memory, swap is basically idle, unless the computer enters sleep state, the system will switch the memory content to swap. With SSD, swap is useless and can be unallocated. (But the installation fails. A swap partition is required ).

However, if no swap points fail during installation, I try to allocate a smaller value (1G) and set it to reduce the number of swap exchanges.

You can first view the current/proc/sys/vm/swappiness value (my default value is 60 ).

Set/etc/sysctl. conf as follows:

Vm. swappiness = 1

Vm. vfs_cache_pressure = 50

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.