Skip to content

External Storage

This feature is not available with Genymotion Desktop at this time.

This feature is not available with Genymotion SaaS at this time.

Minimum version badge Android minimum version badge

It is possible to migrate an instance /data partition via external disks: any attached external disk will be used as internal storage by the Android OS (the /data partition). In that case, the /data partition that belongs to the primary disk won't be used. This disk can then be migrated to another instance if it runs with the same Android version.

This section provides you with detailed guides for each Cloud platform.

Generate and attach an external disk

  1. Create a new EBS volume from the EC2 console (Elastic Book Store > Volumes > Create Volume): Create a new EBS volume wizard
  2. Select the newly created volume and click on Actions > Attach Volume: Attaching new volume
  3. Select the instance you wish to attach this volume to, choose a device name such as "/dev/sdb" (do not use /dev/sda1!)
  4. Click Attach Volume to confirm
  5. Start the instance

From this point the external disk will be mounted on /data and will be seen as the instance internal storage by the Android OS.

  1. Go to the Disks section of the Compute Engine console, and click on Create Disk to create a new volume: Create a new disk
  2. Edit your instance details, and go to the Additional disks section: Edit instance details
  3. Click on Attach existing disk and select the disk you created, and click Save: Attach existing disk
  4. Click Save
  5. Start the instance

From this point the external disk will be mounted on /data and will be seen as the instance internal storage by the Android OS.

  1. In the EC2 console, in the Storage & Snapshots section, go to Block Storage and click "Create Cloud Disk": Create a new disk
  2. Select Attach to ECS instance and select the instance you wish to attach this volume to: Attach to ECS instance
  3. Click Create Order to complete the Cloud Disk creation and attachment
  4. Start the instance

From this point the external disk will be mounted on /data and will be seen as the instance internal storage by the Android OS.

Android minimum version badge

  1. Go to Virtual Machines and click on your virtual machine (make sure it is Stopped)
  2. Go to Settings > Disks: Virtual Machine Disks
  3. In the Data Disk section, click Create and attach a new disk: Create and attach a new disk
  4. Set the name, size and type to your needs and click Apply: Create and attach a new disk
  5. When the disk is attached, start the virtual machine

From this point the external disk will be mounted on /data and will be seen as the instance internal storage by the Android OS.

It is also possible to create the external disk when creating the instance.

Migrate the external disk to another instance

The original and target instances MUST have the same Android version, or your target instance may become unusable.

  1. Make sure that both the original and target instances are powered off
  2. Detach the external volume from the original instance: in the instance details, go to "Storage" tab, click on the external volume, then click on Actions > Detach volume: Detach volume
  3. From Elastic Book Store > Volumes, select the volume, click on Actions > Attach volume: Attach volume
  4. Select the target instance and the device name (do not use /dev/sda1!): Attach volume
  5. Click Attach volume
  6. Start the target instance
  1. Edit your original instance details and remove the external disk in the Additional disks section: Remove external disk
  2. Edit your target instance details and add the external disk in Additional disks > Attach existing disk: Attach existing disk
  3. Click Save
  4. Launch the instance
  1. Make sure that both the original and target instances are powered off
  2. Detach the Data Disk from the original instance:

  3. Attach the Disk to the target instance:

  4. Start the target instance

  1. Make sure that both the original and target virtual machines are powered off
  2. Go to Virtual Machines and click on the original instance (make sure it is Stopped)
  3. Go to Disks
  4. In the Data Disk section, click next to the external disk you wish to detach: Detach external disk
  5. Click Apply
  6. Open the target virtual machine and go to Disks
  7. In the Data Disk section, click Attach existing disk: Attach existing disk
  8. In the Disk name drop-down box, select the external disk
  9. Click Apply
  10. Start the target virtual machine

The original instance internal storage /data will then replace the target instance one - all the applications and settings installed in the original instance will be available in the target instance.