Linux base-swap Swap partition

Source: Internet
Author: User

Task: Partition a 15G size hard disk, primary partition is 5G, extended partition 10G, a logical partition 5G as swap partition, and activate view new swap partition

The first step is to set up a new SCSI hard disk and add a 15G SCSI HDD before opening the Linux system.

The second step , open the Linux terminal, right-click on the desktop, open the terminal, for the new partition of the hard disk, 1 primary partition size of 5G, the remaining space to the extended partition, divided into 1 logical partitions on the extended partition, the size of 5G

Check the connection of the hard disk, the /dev/sdbappears, prove that the second SCSI drive was added successfully and recognized by the operating system

Use fdisk to create a primary partition with a size of 5G.

Divide the remaining space into the extended partition

Create a new logical partition size of 5G in an extended partition

Write to the partition table and exit the Fdisk tool

Verify that the partition is successful and will appear in the/dev/directory,sdb1, SDB2, SDB5

The third step , after partitioning the partition after the completion of the space format, the successful partition, the next is the use of mkfs.ext3 format /dev/sdb1 for the ext3 system

Use Mkswap to set logical partition /DEV/SDB5 to swap partition

activating swap partitions with Swapon:/DEV/SDB5

Fourth Step , View the status of a swap partition

Task completed,/DEV/SDB5 successfully divided into swap swap partition

Linux base-swap Swap partition

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.