Optimize partitions and format to improve IO performance

Source: Internet
Author: User

First, Linux system

1. Download Auto_fdisk.zip in cloud server, execute command: wget "http://bbs.aliyun.com/job.php?action=download&aid=35097"-O./auto_ Fdisk.zip

2. Extract auto_fdisk.zip, execute command: Unzip./auto_fdisk.zip

3. Give auto_fdisk.sh execute authority, execute command: chmod a+x./auto_fdisk.sh

4. Partition and format, execute command as root: Bash./auto_fdisk.sh

Second, Windows system

Go to the command prompt and execute the following command:

C:usersadministrator>diskpart

Diskpart> list Disk

Disk ### state size available Dyn Gpt

-------- ------------- ------- ------- --- ---

Disk 0 Online GB 0 GB (disks that can run the system)

Disk 1 online GB GB (disks that require 4k alignment)

Diskpart> Select disk 1

Disk 1 is now the selected disk.

Diskpart> list partition

There are no partitions displayed on this disk.

Diskpart> Clean

DiskPart successfully cleared the disk.

Diskpart> create partition primary align=1024 (4k partition Alignment)

DiskPart successfully created the specified partition.

Diskpart> list partition

Partition ### Type size offset

------------- ---------------- ------- -------

* Partition 1 Main GB 1024 KB (4K alignment has been successful)

Go to Computer Management in Administrative tools and select Disk Management on the left. On disk 1, click Change Drive Letter and path.

Add a valid drive letter.

then click OK.

Then format it, right-click on disk 1 and choose Format.

After confirmation, enter the relevant formatting information and wait for the format to complete.

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.