这两天一直在折腾,给办公室的台式机装系统。因为从一个“莫名其妙”的地方下了个Ubuntu 10.10 DVD版的,所以那个for Windows的USB Universal Installer.exe用不了。为什么说折腾呢,这两天用手头上的工具折腾了好几遍,把优盘格了又格,用UltraISO(Windows)写入光盘镜像,USB-ZIP/ZIP+/HDD/HDD+四个模式都试过了,就是不能正常引导,不光Ubuntu这样,连之前一直保留的Fedora 13镜像都无法正常安装,郁闷之极中还是耐着性子看了官方网站上使用优盘安装的教程,之前一直不愿意看主要是因为嫌太啰嗦,这下可好,耽误功夫不说,到头来还得看人家的官方文档。没办法,先转载一下,再次表示对Ubuntu的尊敬。
这次直接用笔记本操作,因为是Mac,就直接贴上Mac制作Ubuntu USB Stick的教程吧。
We would encourage Mac users to download Ubuntu Desktop Edition by burning a CD for the time being. But if you would prefer to use a USB, please follow the instructions below.
Note: this procedure requires an .img file that you will be required to create from the .iso file you download.
TIP: Drag and Drop a file from Finder to Terminal to ‘paste’ the full path without typing and risking type errors.
- Download the desired file
- Open the Terminal (in /Applications/Utilities/ or query Terminal in Spotlight)
- Convert the .iso file to .img using the convert option of hdiutil
- hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso
- Note: OS X tends to put the
.dmgending on the output file automatically. - Run
diskutil listto get the current list of devices - Insert your flash media
- Run
diskutil listagain and determine the device node assigned to your flash media (e.g. /dev/disk2) - Run
diskutil unmountDisk /dev/diskN(replace N with the disk number from the last command; in the previous example, N would be 2) - Execute
sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m
(replace/path/to/downloaded.imgwith the path where the image file is located; for example,./ubuntu.imgor./ubuntu.dmg). - Using
/dev/rdiskinstead of/dev/diskmay be faster. - If you see the error
dd: Invalid number '1m', you are using GNU dd. Use the same command but replacebs=1mwithbs=1M. - If you see the error
dd: /dev/diskN: Resource busy, make sure the disk is not in use. Start the ‘Disk Utility.app’ and unmount (don’t eject) the drive. - Run
diskutil eject/dev/diskNand remove your flash media when the command completes