Tuesday, May 22, 2012

Remove the disk from existing Virtualbox Image


If we have a requirement of removing the existing disk from the Virtual box image running, please follow the below steps.

1. Start the Virtual Box image and login with root user.
2. Open a terminal, and type the command
                   df -h
which will give the mount points. Remove the mount point using the below command
                   umount <mount point>

    Eg: umount /u02

3. Check the entries of /etc/fstab. Take the backup of the file first.
   If we are able to see the same mount points in /etc/fstab file, please remove the line with the mount point
          vi /etc/fstab
          Move to the line which you need to remove.
 press Esc key and then press the key 'd' twice
          Save the file
4. shutdown the VBox image
5. Open the settings window of the VBOx image and go to the storage option. Remove the disk.
6. Start the Virtual Box image again.

No comments:

Post a Comment