Tuesday, 24 May 2011

Creating Linux (Centos) Live CD image on a USB Flash Driv


Then follow these steps:
  • Type : diskutil list in the Terminal and hit Enter
  • Plug in your USB flash disk and repeat step 1
  • Compare the result and you’ll have the device node assigned to your flash media. Usually something like "/dev/disk2" (sans quote)
  • Type : diskutil unmountDisk /dev/diskN in the Terminal and hit Enter. You’ll have to replace the /dev/diskN with the device node that you got from step 3. From the picture above you can see that the device node assigned for my USB flash drive is "/dev/disk1" (sans quote)
  • Type : sudo dd if=/path/to/downloaded.img of=/dev/diskN bs=1m in the Terminal and hit Enter. But there are several things that you have to change here before you hit Enter:
    - first the /path/to/downloaded.img is the location of the downloaded UNR installer file. As we’ve already taken care of this before, all you’ve got to do is to change the string into/unr.img
    - second, the /dev/diskN is the device node which is the same as step 4
    - and the last, if you see the error line:
     dd: Invalid number ’1m’ 
    then you need to change thebs=1m into bs=1M (notice the capital ‘M’)
  • Write your password, hit enter, and wait until the process is finished. Please be warned that all the data in the USB drive will be lost.
  • Type : diskutil eject /dev/diskN in the Terminal and hit Enter.
  • Unplug your USB drive.

No comments:

Post a Comment