To make an Ubuntu Server system disk, you can follow the steps below on your Ubuntu system:
-
Download the Ubuntu Server ISO image file:
- Visit the download page of Ubuntu official website: Get Ubuntu Server | Download | Ubuntu Get Ubuntu Server one of three ways; by using Multipass on your desktop, using MAAS to provision machines in your data center or installing it directly on a server. https: / /ubuntu.com/download/server
- Mirror site:
- Tsinghua University Open Source Software Mirror Station: Index of /ubuntu-releases/ | Tsinghua University Open Source Software Mirror Station | Tsinghua Open Source Mirror Index of /ubuntu-releases/ | High-quality open source software mirrors and Linux mirror source services help users obtain open source software more conveniently. This mirror station is operated and maintained by Tsinghua University TUNA Association. https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/
- Alibaba Cloud Open Source Mirror Station: ubuntu-releases installation package download_Open Source Mirror Station-Alibaba Cloud ubuntu-releases installation package is an official open source image free download service provided by Alibaba Cloud, with over 100 million downloads per day. Alibaba Open Source Mirror Station includes ubuntu -The hundreds of operating system mirrors and dependent package mirrors of the releases installation package are accelerated by CDN for free, with high update frequency, stability and security. https://mirrors.aliyun.com/ubuntu-releases/
- Netease open source mirror station: Index of /ubuntu-releases/ http://mirrors.163.com/ubuntu-releases/
- University of Science and Technology of China open source mirror station: Index of /ubuntu-releases/ https://mirrors.ustc.edu.cn/ubuntu-releases/
-
Prepare the USB drive:
- Get a blank USB drive, making sure it has enough storage space to hold the Ubuntu Server image file.
- Back up any important data on the USB drive, as the production process will format the drive and delete all data on it.
-
Write the image to a USB drive using the "dd" command:
-
Open the Terminal application.
-
Run the following command to write the Ubuntu Server ISO image file to a USB drive (please
/path/to/ubuntu-server.iso
replace with the path of the ISO image file you actually downloaded, and/dev/sdX
with the device name of your USB drive): -
sudo dd if=/path/to/ubuntu-server.iso of=/dev/sdX bs=4M status=progress && sync
-
Wait for the command to complete and it will write the ISO image file to the USB drive. This may take some time, please be patient.
-
-
After the production is complete, you now have an Ubuntu Server system disk. You can use this USB drive to install Ubuntu Server or for other operations, such as launching the Ubuntu Server installer or performing system maintenance.
Note, before making a system disk, carefully back up any important data on the drive, and make sure you choose the correct device name for the USB drive. Any errors in operation may result in loss or corruption of data, so please proceed with caution.
Remark:
sudo fdisk -l View USB drive location
sudo dd if=/path/to/ubuntu-server.iso of=/dev/sdX bs=4M status=progress && sync
command to write the Ubuntu Server ISO image file to a USB drive. The following are descriptions of the various parts of the command:
sudo
: Execute the command with administrator privileges to have sufficient privileges to write to the USB drive.dd
: Command-line tool to copy and convert files.if=/path/to/ubuntu-server.iso
:if
Indicates the input file (input file), specifying the path of the Ubuntu Server ISO image file to be written to the USB drive. You need to/path/to/ubuntu-server.iso
replace with the actual ISO image file path.of=/dev/sdX
:of
Indicates the output file (output file), specifying the target device to be written. You need to/dev/sdX
replace with the device name of your USB drive. Make sure to specify the device name correctly, otherwise data loss may result.bs=4M
:bs
Indicates the block size (block size), here is set to 4M, which means that the size of the data block written each time is 4MB. This helps to improve copy speed.status=progress
: Displays the copying progress, allowing you to view the progress in real time.&& sync
: Performs a sync operation to ensure all data is written to the USB drive.Remember, before executing this command, make sure to substitute paths and device names in the command and double check to avoid data loss or corruption due to unintentional actions.