OCNG5: Step-by-step USB drive setup instructions for Linux

  1. Make sure you have 7z (7za or 7zr are fine, too) installed.
    We'll use 7zr in this example; usage of other tools is exactly the same as far as our operation is concerned.

    To install 7zr (on Ubuntu 12.04), run:
    sudo apt-get install p7zip
  2. Download the image:
    wget -O ocng5-5.3-20151222.7z http://darkswarm.org/sm-bios/ocng5-5.3-20151222.7z
  3. Connect the USB drive, make sure it's at least 64 MB large 
  4. If your Linux distribution automatically displays contents of the drive or presents
    any related contents -- close the recently popped-up window
  5. Now we need to determine the mount point and device name of the target drive, run:
    df -h
    and examine its output. Nowdays, removable media get mounted in /media/.
    Find your drive in there and note device name (drop any trailing digits) and mount point.

    For instance:
    alice@wonderland:~$ df -h
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/sda1        17G   16G  599M  97% /
    udev            741M  4.0K  741M   1% /dev
    tmpfs           300M  908K  299M   1% /run
    none            5.0M     0  5.0M   0% /run/lock
    none            750M  200K  750M   1% /run/shm
    tmpfs           750M   19M  731M   3% /home/folding/fah
    /dev/sde1        8.0G  705M  7.2G   9% /media/20C8-9A83
    alice@wonderland:~$
    In this case, mount point is: /media/20C8-9A83 and device name is: /dev/sde (note dropped '1'). 
  6. Unmount the target drive:
    sudo umount <mount point from previous step>
    In our example, it is:
    sudo umount /media/20C8-9A83
  7. Extract the image onto the USB drive:
    sudo -s
    7zr x -so ocng5-5.3-20151222.7z | dd bs=1M of=<device name>
    exit
    In our example, it is:
    sudo -s
    7zr x -so ocng5-5.3-20151222.7z | dd bs=1M of=/dev/sde
    exit
  8. Wait for the command prompt to return 
  9. Eject the drive to make sure all data have reached the medium:
    sudo eject -s <device name>
    In our example, it is:
    sudo eject -s /dev/sde
  10. Remove the USB drive.
  11. You're done!

No comments:

Post a Comment