Steps:
(1)
CreateVirtual Disk
(2) to the virtual disk
Partitioning
(3) Each partition of the virtual disk
Formatting
(4)
MountVirtual Disk Partitions
(1) Create a virtual disk:
- Click Edit Virtual machine, select hard Drive (SCSI), click "Add" in the bottom left corner
- Select "Hard Disk" and click Next
- Select the disk type IDE ( This is the only option ) and click Next
- Select Create new Vdisk and click Next
- Specify a disk capacity of 1G, click Next
- To store the disk file by default path, click Done
(2) partition the virtual disk:
- Input command FDISK [disk device name] to disk partition
- Enter N to create a new partition where (P is the primary partition and E is the extended partition)
- Enter P to view all newly created partitions
- Enter W to save all disk partition information
(3) The format of each partition of the virtual disk:
- MKFS.EXT3 [disk partition name] format partition with Ext3 file system
- Format all disk partitions in the same way
- Input command Blkid View formatting information for all disk partitions (including UUID numbers and file system types)
(4) mount the virtual disk partitions:
- Edit the/etc/fstab configuration file to write the mount information of the disk partition to the file
1th column: UUID or disk device name, it is best to write the UUID number (directly copy the Blkid command to find the UUID number)
2nd Column: mount point, that is, mount the directory (note that a mount directory can only mount a device, the picture is a false demonstration!). )
3rd Column: File system (be sure to match the type of file system you just looked at with the Blkid command!) )
4th Column: Default defaults can be
5th column: Default 0
6th column: Default 0
- Use the command mount-a to mount all the partitions written in the configuration file
Finally, use the command df-h to see if the device is mounted successfully. Over.
How Linux creates and mounts virtual disks