怎么用UNetBootin制作CentOS的USB安裝盤

本篇內(nèi)容介紹了“怎么用UNetBootin制作CentOS的USB安裝盤”的有關知識,在實際案例的操作過程中,不少人都會遇到這樣的困境,接下來就讓小編帶領大家學習一下如何處理這些情況吧!希望大家仔細閱讀,能夠?qū)W有所成!

創(chuàng)新互聯(lián)公司專注于寧河網(wǎng)站建設服務及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗。 熱誠為您提供寧河營銷型網(wǎng)站建設,寧河網(wǎng)站制作、寧河網(wǎng)頁設計、寧河網(wǎng)站官網(wǎng)定制、微信小程序開發(fā)服務,打造寧河網(wǎng)絡公司原創(chuàng)品牌,更為您提供寧河網(wǎng)站排名全網(wǎng)營銷落地服務。

用UNetBootin制作CentOS的USB安裝盤

據(jù)說有人愿意贊助我300多元去制作一個校園的Linux服務器,這個價錢,就夠一臺二手主機,湊著用就好!
周二下午去崗頂看一下二手貨,順便在我的U盤上放一個CentOS安裝文件,這樣可以在店家那里測試一下USB安裝系統(tǒng)。

經(jīng)歷多番波折,終于制作好了CentOS的USB安裝盤。我用的是CentOS6.0的Minimal版本的iso安裝文件,寫入U盤使用UNetBootin這個工具。
具體步驟如下:

1、安裝UNetBootin

root@xiaoxia-pc:~# apt-get install unetbootin

2、下載CentOS鏡像文件

我喜歡先安裝基本系統(tǒng),然后網(wǎng)上安裝軟件,這樣能保持系統(tǒng)精簡,所以我使用體積比較小的minimal版本。我是在網(wǎng)易的源上下載的,教育網(wǎng)用戶可以在教育網(wǎng)站點下載。

http://mirrors.163.com/centos/6/isos/i386/CentOS-6.0-i386-minimal.iso

怎么用UNetBootin制作CentOS的USB安裝盤

3、格式化U盤

我第一次制作CentOS安裝盤的時候,沒料到安裝不會從U盤里尋找鏡像的,只有cdrom,hard drive,nfs這些選擇,沒有usb,所以導致安裝無法進行。
解決辦法是,給usb分區(qū),讓系統(tǒng)把usb媒介識別為硬盤。

插入U盤后,查看U盤的設備文件。

root@xiaoxia-pc:~/test# dmesg |tail
[47750.801304] scsi 12:0:0:0: Direct-Access General USB Flash Disk 1100 PQ: 0 ANSI: 0 CCS
[47750.802578] sd 12:0:0:0: Attached scsi generic sg3 type 0
[47750.803043] sd 12:0:0:0: [sdc] 15722496 512-byte logical blocks: (8.04 GB/7.49 GiB)
[47750.804222] sd 12:0:0:0: [sdc] Write Protect is off
[47750.804231] sd 12:0:0:0: [sdc] Mode Sense: 43 00 00 00
[47750.804236] sd 12:0:0:0: [sdc] Assuming drive cache: write through
[47750.808036] sd 12:0:0:0: [sdc] Assuming drive cache: write through
[47750.809045] sdc:
[47750.811045] sd 12:0:0:0: [sdc] Assuming drive cache: write through
[47750.811056] sd 12:0:0:0: [sdc] Attached SCSI removable disk

格式化U盤,使用fdisk給U盤分區(qū)。

root@xiaoxia-pc:~/test# fdisk /dev/sdc
Command (m for help): o
Building a new DOS disklabel with disk identifier 0x7e4c7a0e.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1022, default 1): 
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-1022, default 1022): 
Using default value 1022

Command (m for help): p

Disk /dev/sdc: 8049 MB, 8049917952 bytes
248 heads, 62 sectors/track, 1022 cylinders
Units = cylinders of 15376 * 512 = 7872512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7e4c7a0e

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1        1022     7856112   83  Linux

Command (m for help): a
Partition number (1-4): 1

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

重新插入U盤,可以看到有U盤分區(qū)了。用fat來格式化分區(qū),并mount之。

root@xiaoxia-pc:~/test# ls /dev/sdc*
/dev/sdc /dev/sdc1
root@xiaoxia-pc:~/test# mkfs.vfat /dev/sdc1
mkfs.vfat 3.0.9 (31 Jan 2010)
root@xiaoxia-pc:~/test# mount /dev/sdc1 /mnt

4、使用UNetBootin制作安裝啟動盤。

啟用UNetBootin,界面如下,選擇使用光盤鏡像。

怎么用UNetBootin制作CentOS的USB安裝盤

點“確定”后開始復制文件,

怎么用UNetBootin制作CentOS的USB安裝盤

安裝完畢!無須重啟直接退出。

怎么用UNetBootin制作CentOS的USB安裝盤

查看U盤文件大小,只有287MB哦?。?!

怎么用UNetBootin制作CentOS的USB安裝盤

到此,CentOS的USB安裝盤制作成功!

============================================================
加一句,要安裝成功,還需要把ISO文件復制到USB安裝盤的根目錄下,不然會在安裝過程中,遇到無法找到鏡像的問題。如下

Missing ISO 9660 image
The installer has tried to mount image # 1. but cannot find it on the hard drive.
Please copy this image to the drive and click Retry. Click Exit to abort the installation.

“怎么用UNetBootin制作CentOS的USB安裝盤”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關的知識可以關注創(chuàng)新互聯(lián)網(wǎng)站,小編將為大家輸出更多高質(zhì)量的實用文章!

分享名稱:怎么用UNetBootin制作CentOS的USB安裝盤
文章地址:http://bm7419.com/article26/ijpejg.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供微信公眾號、網(wǎng)站收錄、軟件開發(fā)、網(wǎng)站排名、網(wǎng)站設計公司、

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

外貿(mào)網(wǎng)站制作