1)格式化U盤,然後制定分區的檔案系統可選
使用a,指定分區為啟動分區
1 ext3檔案系統格式
生成extlinux.cfg配置檔案
2 win95 FAT32檔案格式
生成syslinux.cfg配置檔案
開始将CD光牒内容寫入USB中:
/dev/sdb1是剛才的分區
# livecd-iso-to-disk CentOS-5.4-x86_64-LiveCD.iso /dev/sdb1 --reset-mbr
【注意:請使用reset-mbr重新将mbr啟動引導代碼寫入mbr,否則系統可能無法啟動】
Verifying image...
/tmp/CentOS-5.4-x86_64-LiveCD.iso: ad63c0a54086eb35e892d6e1292085e3
Fragment sums: 9e363badf4e9359c76ce8e324bdbd82847bed2dcc8e7e22ecbb2ddda2621
Fragment count: 20
Percent complete: 100.0% Fragment[20/20] -> OK
100.0
The supported flag value is 0
The media check is complete, the result is: PASS.
It is OK to install from this media.
Already set up as live image. Deleting old in fifteen seconds...
Copying live image to USB stick
Updating boot config file
Installing boot loader
USB stick set up as live image!
問題1:如果沒有格式化檔案系統,出現如下的錯誤:
It is OK to use this media.
mount: /dev/sdd1: can't read superblock
Cleaning up to exit...
umount: /media/usbdev.AkFUXh: not mounted
本文轉自fengyuzaitu 51CTO部落格,原文連結:http://blog.51cto.com/fengyuzaitu/1544782,如需轉載請自行聯系原作者