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