Add a new hard drive Detailed VMware virtual machine method

A, VMware new disk setup steps

(Suggestion: set the virtual, do not run the system in a virtual machine, or add a new virtual disk will have to restart the virtual machine)

1, select "VM" ---- "Settings" and open, position the cursor in the " hard drive (SCSI) " this option, then click the " Add" button

 2, click Next, the next step

3. Select the disk type

 

 4. Follow the prompts to create a virtual disk, and click Next

5. Set the size of the disk, click Next

 6. Select the storage location, and finally click Finish

  The following is a virtual machine for Linux and widows in new virtual disk mounted a way of introduction

Second, the virtual machine windows for virtual disk mount

The method is relatively simple, as in an actual operation of the computer, as long as the "device manager" in the newly created virtual disk partitions formatted normal use
windows-based set is relatively simple, and therefore no screenshot

1, right-click "My Computer" - "Management" - "Disk Management" and will not see the new allocation of disk partitions

2, right-click "Add new volume" (non-partitioned disk), select "New", follow the wizard, step by step, select the hard disk partition mode, format the hard disk you can use

Third, the virtual machines for Linux virtual disk mount

1, use "fdisk -l" command to view the current system partition (if just set VMware-- "set" when the system is running, the following figure occurs: does not recognize the new disk that is sdb), the solution , restart the virtual machine: the shutdown -r now

2, work on the new disk partitioning and formatting:

Input # fdisk / dev / sdb

The terminal will prompt: Command (m for help):

 3, on the basis of a step input: will be the following message appears:

 4, and then enter the prompts: n-

会出现下面的提示,依次输入p 和 1 即可

 5.后面两步直接按回车默认即可

 

 

 6、输入“w”保存并推出

 7、再次使用 “fdisk -l ”这个命令来查看会发现出现了/dev/sdb1(说明已经完成了分区工作);sdb1代表第一个分区,刚才按“1”,只分一个磁盘区,所以只有sdb1

  8、对新建的分区进行格式化:格式化成ext3的文件系统即可

# 输入:mkfs -t ext3 /dev/sdb1

 9、下面便是对于分好区的/dev/sdb1 这一个分区进行挂载及访问

9.1、手动挂载:使用mkdir /data && mount /dev/sdb1  /data(自己自定义挂载目录)

# 访问:df  -h

9.2、自动挂载:修改/etc/fstab即可

使用vim /etc/fstab打开配置的文件,然后将下面的一行文字添加即可

/dev/sdb1    /media(这个挂载的目录你自己设置即可)   ext3  defaults    0    1

以上就是【VMware 虚拟机中添加新硬盘的方法】的全部内容,希望对大家的学习有所帮助!!!

Guess you like

Origin www.cnblogs.com/liugp/p/12014222.html