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   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