Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of making ISO Image operating system installation U disk with "DD" Command in linux/OSX

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

In Linux or OS X system, the system installation disk of ISO image can be made directly in terminal command line mode by using "dd" command.

1. Linux system takes centOS7 as an example.

Sudo dd if= Mirror path of=USB device path bs=1m

Image path: the location of the image file in ISO format

USB path: / dev/sdb what you should note here is:

(1) the USB device cannot be mounted to another directory, otherwise it will prompt an error. If the system mounts automatically, you should first umount / dev/sdb.

(2) the path to / dev/sdb, which cannot be partitioned, such as / dev/sdb1.

Bs: blocksize block size, which is arbitrary, usually 1m and 2m, and the default is 512K.

Second, the "dd" command in MAC OS X creates a U disk image.

OS X has the same origin as linux, and the command is the same, except that the U disk will be mounted automatically in MAC. Before executing the dd command, you must uninstall the U disk.

1. First use the diskutil list command to view the USB device mount path.

Sh-3.2# diskutil list / dev/disk2 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme * 15.5 GB disk2 1: Windows_NTFS KINGSTON 15.5 GB disk2s1

two。 Use diskutil umountDisk / dev/disk2 to uninstall the U disk, here can not use the system's own graphics tools to uninstall. Diskutil umountDisk only uninstalled the U disk file system, the device is still in. Mac's own management tools will completely remove the entire USB device.

Sh-3.2# diskutil unmountDisk / dev/disk2Unmount of all volumes on disk2 was successful

3. Now you can "dd" the USB disk mirror image.

Sh-3.2# dd if=/Users/software/CentOS-7-x86_64-Everything-1804.iso of=/dev/disk2

Waiting for the production to be finished.

Summary

The above is the editor to introduce to you in the linux/OSX "DD" command to make ISO image operating system installation USB disk, I hope to help you, if you have any questions, please leave me a message, the editor will reply to you in time. Thank you very much for your support to the website!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report