Linux New HDD-mount

Source: Internet
Author: User

Virtual machine new hard drive mounted to file under notes:

Df-h--View current file system Information

Fdisk-l--View Current disk device (partition) Letter Information

FDISK/DEV/VDB--Using FDISK to manage new devices

================= Creating a partition =============

# FDISK/DEV/VDB--Go to Disk Management

Command (M for help): N--New partition

Command Action

E Extended

P primary partition (1-4)

P--Extend or primary partition

Partition number (1-4): 1--the partition ordinal primary partition can only have four if 1 the new partition is VDB1 analogy

....

Command (M for help): W

================= Formatting ==================

Mkfs-t ext4 (file format)/dev/sdb1 (new partition location)

.... Wait patiently for a return ....

================= Create a directory and mount the ==============

#mkdir/usr/programe-Create the directory that will be mounted

#mount/DEV/VDB1-mount device to directory

#df-H-View mount Effects

=============== Self-mounting =====================

   vi/etc/fstab    --    Modify the fstab file         

Reference files New Items

Note: UUID mounts

# Vi/dev/disk/by-uuid/--can view device UUID

Parameter 2: Mount directory

Parameter 3: File type

Parameter 4:defaults

Parameters 5:1 2

Specific meaning search Fstab

#reboot reboot to see the effect.

Linux New HDD-mount

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.