External Storage¶
This feature is only available with Android 7.0 and above
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 provider.
Generate and attach an external disk¶
10.0.0 · 7.0+
- Create a new EBS volume from the EC2 console (Elastic Book Store > Volumes).
- Attach the volume to the desired instance.
- Start the instance.
It is also possible to create the external EBS volume when creating an 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.
10.0.0 · 7.0+
- Create a new disk from the Disks section of the Compute Engine console
- Edit your instance details and add the new disk as an additional disk to your instance1
- Save the changes
- Start the instance
It is also possible to create the external disk when creating 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.
10.0.0 · 7.0+
- Create a new disk from Storage & Snapshots > Disks > Create Disk
- Create a Data Disk type disk
- Click on your instance and go to the Disks section
- Click Attach Disk and select the disk you created
- Start the instance
It is also possible to create the external disk when creating 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.
7.0+
- Go to Virtual Machines and click on your virtual machine (make sure it is Stopped)
- Go to Disks
- In the Data Disk section, click Create and attach a new disk
- Set the name, size and type to your needs and click
- Click Save
- When save is complete, start the virtual machine
It is also possible to create the external disk when creating 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.
Migrate the external disk to another instance¶
The original and target instances should have the same Android version. If versions are different, we cannot guarantee the result.
- Make sure that both the original and target instances are powered off
- Detach the external volume from the original instance
- From Elastic Book Store > Volumes, attach the volume to the target instance
- Start the target instance
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.
The original and target instances should have the same Android version. If versions are different, we cannot guarantee the result.
- Edit your original instance details and remove the external disk from Additional disks
- Edit your target instance details and add the external disk in Additional disks > Attach existing disk
If the instances are running, they will reboot when the external disk is removed or attached.
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.
The original and target instances should have the same Android version. If versions are different, we cannot guarantee the result.
- Make sure that both the original and target instances are powered off
-
Detach the Data Disk from the original instance:
-
Attach the Disk to the target instance:
-
Start the target instance
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.
The original and target instances should have the same Android version. If versions are different, we cannot guarantee the result.
- Make sure that both the original and target virtual machines are powered off
- Go to Virtual Machines and click on the original instance (make sure it is Stopped)
- Go to Disks
- In the Data Disk section, click next to the external disk you wish to detach
- Click Save
- Open the target virtual machine and go to Disks
- In the Data Disk section, click Attach existing disk
- In the Disk name drop down box, select the external disk
- Click Save
- 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.
-
If your instance is already running, it will automatically reboot to mount the external disk. ↩