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