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

How to reinstall linux under linux

angryTom
Release: 2019-11-08 11:37:47
Original
5887 people have browsed it

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
Copy after login

(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*
Copy after login

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

Format U disk:

sudo mkfs.vfat /dev/sdb -I
Copy after login

(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盘路径
Copy after login

(write the image)

Complete example:

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

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Issues
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template