7.linux Disk Management partition set up file system mount use

Source: Internet
Author: User

I. Disk Management partitions establishing file system mounts setting up disk quotas using logical volumes to establish disk arraysfdisk-l viewing disk informationdf-th View the directory of the hard disk/dev/sdb/20g  1. File Type IntroductionExt4 Extended File system features support for single file on EB support log function NTFS files and FAT32 do not support 4G on a single fileSwap swap partition virtual memory 8G 8G 4G 1.5 times times MBR partition Table mode: Support 4 primary partitions do not recognize a single hard drive more than 2TB
GPT Partitioning mode multiple primary partitions support more than 2T hard drives

we use the MBR partition, set up two primary partitions, establish multiple logical partitions in the second primary partition, i.e. Windows c,d,e,f disk, etc.
 Linux establishes a primary partition, an extended partition, that is, SDB1 and sdb2 in the SDB2 to establish a logical partition, (only the primary partition in Linux can use the drive letter is SDB1-SDB4), so the first block of the logical partition can only be SDB5, followed by the subsequent deferred.   2. Zoning requirements: Three zones 1 primary partitions two logical partitions each partition size is 500M, SDA1 established as Ext4 file system ADA5 set up FAT32 file system ADA6 Create swap partition  3. Partitioning operations to establish file systems and mount them for use
 Fdisk/dev/sdb m get Help menun Add a new partitiond Delete a partitionp list partition TableQ do not save exitW Save and exitT Modify the System ID number of the partitionsetting up a filesystem is a form of formatting! ·
The first step:
(1) command:n
(2) p (primary partition)(3) partition number:1(4) +500m
(5) p
Step Two:
(1) n
(2) E
(3) 2(4) Two return Step Three:(1) n
(2) L(3) +500m
   p: View Fourth Step: Repair the partition name(1) t (change ID identification)(2) 5(3) L(4) B(5) T(6) 6(7) L(8)(9) PEstablish partition Table Cat/proc/partitions  Fifth Step: Establish the partition file type mkfs.ext4-b 4096/dev/sdb1MKFS.VFAT-F32/DEV/SDB5MKSWAP/DEV/SDB6  Sixth Step: Mount (link device to file)  create two folders under the MNT directory mkdir {ext4,fat32}Mount:Mount device mount pointMOUNT/DEV/SDB1/MNT/EXT4Mount/dev/adb5/mnt/fat32SWAPON/DEV/SDB6
df-th confirming disk mount informationswapon-s Confirm Swap partition mount informationUninstallumount Equipment (mount point)Swapon off Unmount swap partition
 View the file system list
vim/etc/fstab File System listDevice mount point file System Properties 0 0  Note: FAT32 only recognizes VFAT so it is:
/dev/sdb5/mnt/fat32 vfat defaults 0 0 BLKID/DEV/SDB1 Viewing the file system's UUID value for easy mounting
mount-aSWAPON-A Implementation of the information in the Fstab file is mounted swapon-s Viewing swap mount information

7.linux Disk Management partition set up file system mount use

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.