Home  >  Article  >  Operation and Maintenance  >  How to reinstall linux under linux

How to reinstall linux under linux

angryTom
angryTomOriginal
2019-11-08 11:37:475784browse

How to reinstall linux under linux

How to reinstall linux under linux

1. First download the Linux image file as .iso The file ending with

2, then insert the U disk and start making the boot disk

a) Determine which device it is based on the size of the U disk

sudo fdisk -l

(usually on sdb)

b) Format the U disk. In order to format, you first need to umount the U disk:

/dev/sdb 是我的 U 盘设备。
sudo umount /dev/sdb*

(More all partitions under the U disk sdb Remove all)

Format U disk:

sudo mkfs.vfat /dev/sdb -I

(Format all partitions under sdb)

3. Then use the dd command to write the image file

Use the dd command, the format is as follows:

sudo dd if=xxx.iso of=U盘路径

(write the image)

Complete example:

sudo dd if=~/images/ubuntu.iso of=/dev/sdb

Write to the sdb disk located ~ubuntu.iso image file in the /images directory. After entering the above DD command, press Enter and execute. The system will start to create a boot disk. During this period, there will be no feedback in the terminal command window, but you can see the U disk through the U disk running indicator light. The disk is undergoing read and write operations, and this process may take 5 or 6 minutes to complete. When you see a return message in the terminal command window, the production is completed.

4. The last step is to enter the BIOS, set the U disk as the first boot disk, and reboot to enter the system installation.

Recommended: linux system tutorial

The above is the detailed content of How to reinstall linux under linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn