I have previously introduced how to install Vista through a USB flash drive. This article will introduce how to install the UbuntuLinux system on a USB flash drive. Although Ubuntu is used in this article, it is also feasible to install other LinuxliveCD distributions using this method. Running Linux on a USB flash drive enriches the liveCD experience, allowing you to run Linux on any machine, which is much easier than carrying a CD with you. I have previously introduced how to install Vista through a USB flash drive. This article will introduce how to install Ubuntu Linux on a USB flash drive. Although Ubuntu is used in this article, it is also feasible to install other Linux live CD distributions using this method.
Running Linux on a USB flash drive enriches the live CD experience, allowing you to run Linux on any machine, which is much easier than carrying a CD with you.
1. Preparations
Before you start, you must at least make the following preparations:
- A Ubuntu live CD or. iso Image File
- U disk with a capacity of at least 1 GB
- Linux operating system
2. Set the USB flash drive
First, insert the USB flash drive to check whether the device is recognized. To locate the device, run the following command:
In my system, the drive letter of this device is/dev/sdb. This article uses/dev/sdb as an example to explain how to change the drive letter according to the actual situation of your system (which may be sda, sdc ...).
After the system discovers the U disk, it will create a partition.
Note: Incorrect drive letters may damage your hard drive partition, so please input them with caution.
Create a partition
Detach an attached U Disk:
Then use fdisk, a partition editing tool:
After deleting the partition of the U disk, we create two new partitions: one fat file system partition with a capacity of MB, which is used to save the files in the live CD image and the other partition.
Then, the input format is "d x", and x is the drive letter of the partition. The input is as follows:
* N create a new partition * P is set as the primary partition. * 1 is set to the first primary partition. * Accept the default option or input "1" to start from the first cylindrical Disk * + 750 M set the space to 750 MB * A sets the partition as an active partition that can be started. * 1 select this partition * T change the partition format * 6 set to FAT16 Partition |