SSD Installation Failed: Deleting Partitions Prevented Ubuntu Installation
In this article, we will discuss the issue of trying to install Ubuntu Server on an external SSD via a bootable USB drive. Specifically, we will focus on what happens when you delete the whole partitions of the disk, and how this can prevent the installation from completing.
Background
When installing Ubuntu Server on an external SSD, it is necessary to delete the existing partitions on the disk to make room for the new operating system. However, if this step is not done correctly, it can prevent the installation from completing successfully.
The Problem
The problem arises when you try to install Ubuntu Server on an external SSD, and you delete the whole partitions of the disk. This can cause the installation to fail, as the system is unable to create the necessary partitions for the new operating system.
Solution
To avoid this issue, it is important to carefully follow the instructions for deleting the partitions on the external SSD. This typically involves using a partitioning tool, such as GParted, to delete the existing partitions and create new ones that are specifically formatted for the Ubuntu Server installation.
Code Example
Here is an example of how to use GParted to delete the existing partitions on an external SSD and create new ones for the Ubuntu Server installation:
1. Boot the system using the Ubuntu Server installation media.
2. Select the "Try Ubuntu" option to launch the live environment.
3. Open a terminal window and run the following command to install GParted:
sudo apt-get install gparted
4. Launch GParted and select the external SSD from the drop-down menu.
5. Delete the existing partitions on the SSD by right-clicking on each partition and selecting "Delete".
6. Create new partitions by right-clicking on the unallocated space and selecting "New".
7. Set the partition type to "ext4" and the partition size to at least 20GB.
8. Repeat steps 6 and 7 to create additional partitions if necessary.
9. Apply the changes and exit GParted.
In summary, when installing Ubuntu Server on an external SSD, it is important to carefully delete the existing partitions and create new ones that are specifically formatted for the installation. By following the steps outlined in this article, you can avoid the issue of the installation being cancelled due to deleted partitions.
References
- Ubuntu Server Installation Guide: https://ubuntu.com/server/docs/installation
- GParted Manual: https://gparted.org/display-doc.php?name=help-manual