Summary I tried to install Ubuntu12.04Alternate with a USB flash drive some time ago. During this time, I encountered many twists and turns. Fortunately, I was able to solve them, therefore, I have always wanted to write an article to summarize the official documents that do not provide necessary instructions during the system installation process or may cause installation failure. I hope this will help the Later users. After trying a lot of solutions, I have used the following methods to install them (this is the simplest and most customizable solution I think ): use grub-install to install the grub boot program on the USB flash disk.
Overview
Some time ago, I tried to use a USB flash drive to install Ubuntu 12.04 Alternate. In the meantime, I encountered many twists and turns. Fortunately, I was able to solve these problems, therefore, I have always wanted to write an article to summarize the official documents that do not provide necessary instructions during the system installation process or may cause installation failure. I hope this will help the Later users. After trying a lot of solutions, I have used the following methods to install them (this is the simplest and most customizable solution I think ):
Use grub-install to install the grub boot program on the U disk (if there is no Linux environment, you can use Grub4DOS, see the http://www.linuxidc.com/Linux/2009-01/18027.htm)
Copy the system disk image to the USB flash drive and edit the grub. cfg configuration startup Item.
Start the computer with a USB flash drive and install the system according to specific steps
I am using a grub boot USB flash drive, but the precautions in step 1 above apply to the installation of other boot programs (such as syslinux. The installation process of the system is described in detail below.
Create boot disk and install grub
Grub-install/dev/sdb
This command requires the superuser permission (sudo ). /Dev/sdb is your USB flash drive device number, usually sdb (sda is your computer's hard disk ). This command will install grub to the USB flash drive. After the command is executed successfully, it means a boot disk is created. Open the USB flash drive and you will see an additional/boot/grub directory.
Then copy the CD image you downloaded (such as the ubuntu-12.10-alternate-amd64.iso) to the USB flash drive, for example, I create a new iso directory under the/boot directory to store these CD images.
The following is an example of the directory structure of my USB flash drive:
── Boot
│ ── Grub
│ ......
│ ── Grub. cfg
│ ......
── Iso
── Ubuntu-12.10-alternate-amd64.iso
── Ubuntu-12.10-desktop-amd64.iso