VBox in virtual Ubuntu Add new virtual hard disk

Source: Internet
Author: User

VBox in virtual Ubuntu Add new virtual hard disk   in VirtualBox after loading Ubuntu, found that hard disk space is not enough to use. The following is a collection of solutions:  1. Add new Hard disk        settings, Storage, SATA controller, right-click, select Add virtual hard disk       Then, create the appropriate hard drive 2 as needed. Restart virtual machines       View disk space for existing systems         sudo fdisk-l      You can see the newly added virtual hard disk, typically named: disk/de V/sdb3. Add to new HDD partition         fdisk/dev/sdb      type m, see Help information         command (M fo R Help): M                 Add new section         command (M for help ): N        Select Basic partition, enter:p      Build a partition         Partition number (1-4): 1& nbsp;      Enter         First cylinder (1-15908,default 1):enter      Write and Exit & nbsp     Command (M for help): W4. Format disk partition      /DEV/SDB1 into format         sudo mkfs.ext4/dev/sdb15 in EXT4 format. Mount Partitions       Create a new mount point &nbsp       sudo mkdir/work      Attach a new disk partition to the/work directory         sudo mount-t ext4 dev/sdb1/home/hadoop/newdisk1/      View Mount         df-h      You can see the newly added hard drive:/ Dev/sdb16. Boot auto Mount       modify file             sudo vim/etc/fstab      Add in last line: &NB Sp          /DEV/SDB1/HOME/HADOOP/NEWDISK1/EXT4 defaults 0 0      This line is a total of six parameters, in turn "file system Device, mount point, File system type, mount parameters, most systems use "defaults" to meet the needs; the latter two are dumps, one is the boot order, and if there is no dump requirement, the system boot disk is not set to 0. 7. All done after the hard drive has been set successfully, but the partition is mounted, but not writable, need to change the permissions: sudo chmod-r 777/home/hadoop/newdisk1/

VBox Virtual Ubuntu Add a new virtual hard disk

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.