Moving a hard disk requires a disk partition table type to be converted to a GUID (that is, GPT) in advance
Conversion method: Using Diskgenius software, select the right mouse button and select " convert partition table type to GUID format ".
Disk partitioning
In order to avoid the " allocated to/partition/dev/sdb3 starting at 3584 bytes, using minimum disk alignment, this can cause very poor performance " error when installing the system, you can create a partition well in advance under Windows system.
Using Diskgenius, create partitions as follows:
Attention
- The partition "Local Disk (G:)" of the ordinal 0 is a FAT32 type partition (actually an ESP partition), the installation system is required to place the boot in this partition, the size is preferably above 200M, I divide 514MB;
- The partition "BIOS (H:)" of the sequence number 1 is not actually used and can not be created;
- The partition "Linux swap Partition" of the serial number 2 is the switching partition under the Linux system;
- The partition "Partition (3)" of the ordinal 3 is a EXT4 type partition for mounting/;
- The partition "Partition (4)" of the ordinal 4 is a EXT4 type partition that is used to mount/home.
The partition (ESP partition) of the ordinal 0 is the first partition of the disk, and is formatted after it is created.
The EXT4 partition is also formatted, and the cluster size is selected 4096 (that is, 4K alignment ).
Partition configuration at installation time
Attention
Let's say that SDB is the disk that you want to install Ubuntu on:
- SDB1 need to select "EFI System Partition";
- SDB2 is useless;
- SDB3 select "For swap space";
- SDB4 and SDB5 respectively mount/and/home.
None of the partitions are formatted (previously formatted).
Install the Boot Launcher device selection SDB1. (After the installation, I found that there is no boot file on sdb1, I do not know where the problem is, then the solution will be introduced.) )
The ESP partition does not have a workaround for the boot file
Enter the live Ubuntu system on the USB drive, plug in the removable hard drive, connect to the network, and install a software called "boot-repair".
Steps
sudo apt-add-repository ppa:yannubuntu/boot-repairsudo apt updatesudo apt install boot-repair
Once the installation is complete, execute to boot-repair
launch the software and select "Recommended repair" to wait for the boot repair to complete.
After the repair is complete, a directory named in the ESP partition will appear with EFI
BOOT
ubuntu
Two subdirectories, and the boot file used to launch the Ubuntu system is the file located in ubuntu
the directory shimx64.efi
.
BIOS settings (different brands of computers vary)
Here's how the Acer branded computers are set up:
- ( important ) Enter the computer's BIOS and set boot Mode to UEFIon the Boot tab;
- Close "Secure Boot" (Note: It is said that it can not be closed, I have not tried);
- On the Security tab Select "Select anUEFI file as trusted for executing:" on the target device (the ESP partition of the mobile hard disk) Select
/EFI/ubuntu/shimx64.efi
, enter the name of the boot entry, carriage return To
- Save BIOS settings and exit. Turn on the boot item again and select the boot you just added to enter the Ubuntu system.
Mobile HDD installs some records of Ubuntu system (UEFI boot)