How to add a new hard disk in a VMware virtual machine

Source: Internet
Author: User
reprint: http://blog.csdn.net/hanpengyu/article/details/7475645 with the gradual increase in the number of things stored in the virtual machine, the hard drive of the virtual machine is becoming more and more urgent, so it is necessary to expand a new virtual disk. Here's how to add a new virtual disk in VMware: I. Setup steps for VMware new disks (recommended: When setting up the virtual, do not run the virtual machine system, or add a new virtual disk to restart the virtual machine) 1. Select "VM"----"setting" and open, position the cursor on hard disk, then click the Add button below

2. Click Next to perform the next step

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

 

4, according to the default, select the SCSI format of the disk, click Next to perform the next step

5, follow the default click Next to complete the virtual disk add

The following is an introduction to how the new virtual disks are mounted in Linux and widows in virtual machines

second, the virtual machine in Windows to Virtual disk Mount

method is simple compared to the actual computer, as long as the newly created Vdisk is formatted in Device Manager, it will be used normally

Windows-based setup is simple, so no screenshots

1. Right-click on "My Computer"-"Manage"-"Disk Management" and you will see that the newly allocated disk does not have a partition

2. Right-click on "New Volume" (unpartitioned disk), select "New", follow the wizard, select the hard disk partition mode, format the hard drive to use

third, the virtual machine in Linux for virtual disk mount

1. Use the "fdisk-l" command to view the current system's partitions (if the system was run when the vmware--setting was set up, the following picture would appear: No new disk is recognized as SDB), workaround, restart the virtual machine: Shutdown-r now

2, if the first step is to shut down the system in the virtual machine, then use the "fdisk-l command" when the new disk SDB (but the prompt is not partitioned)

3. Partition and format the new disk:

input Fdisk/dev/sdb

terminal will prompt: Command (m for help):

 

4, on the basis of the previous step input: M will appear the following prompt:

5. Then follow the prompts to enter: N

The following prompt appears, and then enter P and 1 to

The start and end addresses of the volume are then indicated, and the default is to press ENTER (meaning that only one zone is divided)

6. Enter "W" to Save and launch

7, re-use "fdisk-l" this command to see the/DEV/SDB1 (indicating that the partition work has been completed)

8, the new partition to format: Format the Ext4 file system can be

$ sudo mkfs-t ext4/dev/sdb1
MKE2FS 1.42 (29-nov-2011)
File System label =
OS Type:linux
Block size =4096 (log=2)
Chunked size =4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
6553600 inodes, 26214144 blocks
1310707 blocks (5.00%) reserved for the Super user
First block of data =0
Maximum filesystem blocks=4294967296
Block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872


Allocating group tables: complete
Writing Inode table: complete
Creating Journal (32768 blocks): complete
Writing superblocks and filesystem accounting Information:l completed

9, the following is for the Sub-district of the/DEV/SDB1 this partition to mount and access

9, 1 manual mount: use MOUNT/DEV/SDB1/directories to mount (self-defined)

on Access: the CD/mount directory can be stored and accessed

9, 2 automatic mount: Modify/etc/fstab can

use Vim/etc/fstab to open the configured file and add the following line of text

/dev/sdb1/home/boarmy/work/data (You can set this mount directory yourself) ext4 defaults 0 1

10, in order to be able to/home/boarmy/work/data directory let boarmy users have write permission, modify its owner for Boarmy

boarmy@bae:~/work$ sudo chown boarmy data

boarmy@bae:~/work$ ls-l

drwxr-xr-x 3 boarmy root   4096  3 month 07:47 data
p>

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.