Add a virtual hard disk
Specify disk space
A 20G hard drive was added to the virtual machine successfully. In Linux this defines SDA as the first hard disk, the second hard disk as SDB, and so on. SDA1 is the first partition of the first hard disk.
Partitioning operations on Linux
View information for loading a hard disk on a virtual machine
Ls/dev/sd
Start partition: Terminal input: Fdisk/dev/sdb
To view partition information:
Create primary partition (the primary partition can have up to four, if multiple partitions are required to create a virtual partition
Operation to delete a partition:
To create a new extended partition:
The re-built expansion partition is then created under the first extended partition to create the expanded partition.
Saving partition information and performing partitions
Make file system (format)
Mkfs:make FileSystem
Extended partitions do not need to be formatted
Mount: Yes partition disks can appear as directories in the system
Mount Mount
This is the process by which the entire virtual machine loads the hard disk. In reality it is necessary to load the hard drive in addition to the operation in the virtual machine by the actual operation done. The rest of the partitions, execution, mount operations are the same.
Add a virtual hard disk and partition on a Linux virtual machine