Difference between revisions of "VirtualBox: Add HD"

From RHS Wiki
Jump to navigation Jump to search
(Created page with "# Add Drive From the Oracle VM Virtual Box Manager window, select the Virtual Box and click on Settings. Go to Storage, select hard drive and click on Add a hard disk. Click...")
 
Line 22: Line 22:
  
 
  /dev/sdb1              /path/to/mount          ext4    defaults        1 2
 
  /dev/sdb1              /path/to/mount          ext4    defaults        1 2
 +
== Resize HD ==
 +
VBoxManage modifyhd "E:\VirtualBox VMs\Kali\Kali-disk001_1.vmdk" --resize 81920

Revision as of 09:45, 2 April 2018

  1. Add Drive

From the Oracle VM Virtual Box Manager window, select the Virtual Box and click on Settings.

Go to Storage, select hard drive and click on Add a hard disk.

Click on Create New Disk.

  1. List Partitions
fdisk -l

Iidentify which hard drive you need to partition

fdisk /dev/sdb
  1. Format the Partition
mkfs.ext4 /dev/sdb1
  1. Mount the partition
mount /dev/sdb1 /path/to/mount
  1. Add fstab entry
$ nano /etc/fstab
/dev/sdb1               /path/to/mount           ext4    defaults        1 2

Resize HD

VBoxManage modifyhd "E:\VirtualBox VMs\Kali\Kali-disk001_1.vmdk" --resize 81920