Plug your Linux operating system into a USB flash drive

Source: Internet
Author: User

Using a USB flash drive to install the system has always been the best way to save resources. We can consider using a USB flash drive to install linux systems such as Ubuntu and Debian. How can we use a USB flash drive to install LINUX?

This article mainly introduces several popular Linux systems, basically similar to Debian and Ubuntu systems. First of all, it should be noted that you must have a Linux or FreeBSD system at hand, which can be used by zcat command systems. Of course, you must be able to identify USB Storage systems, generally, VMWare can be used to install a minimal Linux. Download a started img to the USB flash drive in the corresponding Linux release version, as shown below:

Debian Sid:

Debian.cn99.com/debian/dists/sid/ma..dia/boot.img.gz

(This is a USB flash drive image, which is then installed from the ISO on the hard disk. If you download the installation image of the ISO disc, use this image)

Http://debian.cn99.com/debian/dists/sid/ma...etboot/mini.iso

(This is the ISO used to create a CD image from the network. Since Debian does not provide an imgfile like Ubuntu that is directly installed from the network, we will use this cd iso and the above imgfile)

Ubuntu Dapper:

Ubuntu.cn99.com/ubuntu/dists/dapper...dia/boot.img.gz

Http://ubuntu.cn99.com/ubuntu/dists/dapper...oot/boot.img.gz

(Both of them can be used for USB flash drive boot. One is to install ISO from the hard disk and the other is to install ISO from the network)

The next step is to write the image to the USB flash disk and insert your USB flash disk to an existing Linux system. VMWare can also identify it. The command is simple: zcat boot.img.gz>;/dev/sda or sdb. Ubuntu can directly select the corresponding img. If it is a debian USB boot, the installation steps from the hard disk ISO are the same, but if it is a network installation, you have to do some work. Because Debian does not have a fuse network that has been boot.img.gz installed, we can install the network mini on the basis of the hard disk. decompress iso to the U disk, and then decompress isolinux. change the name of cfg to syslinux. cfg is basically OK. To use the 2.6 kernel, put the kernel in the 2.6 directory to the root directory, and then modify syslinux. cfg file. (You only need to overwrite initrd.gz on the hosts file. This file can also be found in the subdirectory under netboot)

In this way, the rest of the work is to start and install the system with a USB flash drive, and enjoy the beauty of open source. You can also use a USB flash drive to install Gentoo, or even FreeBSD. Gentoo is a little troublesome. you can decompress iso to debian's hard drive installation version, but remember to modify syslinux. add doscsi kernel parameters to the kernel path in cfg.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.