歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux技術 >> centos6.x使用dd命令制作u盤啟動

centos6.x使用dd命令制作u盤啟動

日期:2017/3/3 13:46:14   编辑:Linux技術

第一步,取得一個centos6.x的iso鏡像,假設我當前的ios鏡像在/iso/CentOS-6.6-x86_64-bin-DVD1.iso

第二步,插入u盤並查看u盤在當前系統下的代號

# fdisk -l

Disk identifier: 0x273e7463

Device Boot Start End Blocks Id System

/dev/sdb1 * 1 4418 4524032 17 Hidden HPFS/NTFS

Disk /dev/sdb1: 4467 MB, 4467982336 bytes

64 heads, 32 sectors/track, 4261 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x273e7463

Device Boot Start End Blocks Id System

/dev/sdb1p1 * 1 4418 4524032 17 Hidden HPFS/NTFS

第三步,卸載u盤,

# umount /dev/sdb1

第四步,使用dd命令

# dd if=/iso/CentOS-6.6-x86_64-bin-DVD1.iso of=/dev/sdb

(記住這裡of是輸出設備,應該是/dev/sdb而不是/dev/sdb1)

第五步,制作成功之後出現如下畫面

注:dd命令運行後不顯示復制狀態,要查看復制狀態可以再打開一個終端,輸入“while killall -USR1 dd; do sleep 5; done”查看復制狀態。

# while killall -USR1 dd; do sleep 5;done

5216736+0 records out

2670968832 bytes (2.7 GB) copied, 391.29 s, 6.8 MB/s

5317833+0 records in

5317833+0 records out

2722730496 bytes (2.7 GB) copied, 396.297 s, 6.9 MB/s

5418209+0 records in

5418208+0 records out

2774122496 bytes (2.8 GB) copied, 401.319 s, 6.9 MB/s

5519217+0 records in

5519217+0 records out

2825839104 bytes (2.8 GB) copied, 406.326 s, 7.0 MB/s

5618913+0 records in

5618912+0 records out

2876882944 bytes (2.9 GB) copied, 411.356 s, 7.0 MB/s

5619585+0 records in

5619585+0 records out

2877227520 bytes (2.9 GB) copied, 416.413 s, 6.9 MB/s

5619961+0 records in

5619961+0 records out

2877420032 bytes (2.9 GB) copied, 421.431 s, 6.8 MB/s

5673785+0 records in

5673785+0 records out

2904977920 bytes (2.9 GB) copied, 426.377 s, 6.8 MB/s

Linux運維的自我修養-ywliyq技術交流,請加QQ群:256172681給我寫信:[email protected]

我的技術博客:http://ywliyq.blog.51cto.com/

本文出自 “Linux運維的自我修養” 博客,請務必保留此出處http://ywliyq.blog.51cto.com/11433965/1770543

Copyright © Linux教程網 All Rights Reserved