linux dd命令刻录启动U盘详解

dd if=xxx.iso of=/dev/sdb bs=1M

用以上命令前必须卸载u盘,sdb是你的u盘,bs=1M是块的大小,后面的数值大,写的速度相对块一点,但也不是无限的,我一般选2M,注意,执行命令后很块完成,但u盘还在闪,等不闪了,安全移除。

[root@ok Desktop]# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000dcf9e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64       60802   487873536   8e  Linux LVM

Disk /dev/mapper/vg_ok-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_ok-lv_swap: 3841 MB, 3841982464 bytes
255 heads, 63 sectors/track, 467 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000


Disk /dev/sdd: 15.5 GB, 15502147584 bytes #这是U盘
71 heads, 32 sectors/track, 13326 cylinders
Units = cylinders of 2272 * 512 = 1163264 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x39768880

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1   *           1        1011     1148464   17  Hidden HPFS/NTFS

Disk /dev/mapper/vg_ok-lv_home: 442.1 GB, 442050281472 bytes
255 heads, 63 sectors/track, 53742 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
[root@ok Desktop]# /bin/dd if=/home/ISO/CentOS-7-x86_64-Minimal-1511.iso of=/dev/sdb

上面的这命令注意是/dev/sdb 不是/dev/sdb1

原文地址:https://www.cnblogs.com/bass6/p/5790365.html