How to Add a Hard Disk
to the Virtual Image
- Make sure the virtual image is shut down
- Add a hard disk using the Virtual Box Settings tool
- Select Storage
- Next to the IDE Controller entry in the tree, click the Add Hard Disk icon
- Click Create New Disk
- Select VMDK (Virtual Machine Disk) and click Next
- Select Dynamically allocated and click Next
- Enter a location for the physical file, a size of 30GB or more, and click Next
- Click Create to create the actual disk
- Start the virtual image
- Open a terminal window
- su to login as the root user using root/oracle
- Start fdisk to partition the new disk: /sbin/fdisk /dev/hdc
- Enter command n to create a new partition
- Enter p to specify a primary partition
- Enter 1 to specify partition 1
- Leave defaults for starting and ending cylinders for sizing the partition
- Enter command w to write the partition table and exit fdisk
- Format the partition using the following command: /sbin/mkfs.ext3 /dev/hdc1
- Mount the disk to the /u01 file system using the following commands:
- mkdir /u01
- mount /dev/hdc1 /u01
- chown -R oracle:oracle /u01
- Check the file system to see if your new disk is recognized: df -h
- Edit your /etc/fstab file to include your new mounted drive to have Linux automatically mount your drive when you restart the image
- Exit the root user
- Now you should have 30GB or more of disk space available at the /u01 file system. You can create a stage folder for product downloads, and can install products to /u01 as indicated in the instructions