29 June 2017

how to setup a usb key to install centos

  1. steps

    1. info

       starting with centos 6.5
       you can install from usb keys
       by simply transferring the desired iso using dd
      
    2. demo

       $ sudo dd if=CentOS-6.5-x86_64-bin-DVD1.iso of=/dev/sdb
      

fixed

  1. dd: /Volumes/gree2: Is a directory

    1. info

       $ dd if=CentOS-6.5-x86_64-bin-DVD1.iso of=/Volumes/gree2
       dd: /Volumes/gree2: Is a directory
      
    2. check with mount

       $ mount
       /dev/disk1 on / (hfs, local, journaled)
       devfs on /dev (devfs, local, nobrowse)
       map -hosts on /net (autofs, nosuid, automounted, nobrowse)
       map auto_home on /home (autofs, automounted, nobrowse)
       /dev/disk2s4 on /Volumes/gree2 (msdos, local, nodev, nosuid, noowners)
      
    3. fixed

       use /dev/disk2s4 instead of /Volumes/grees
      
  2. dd: /dev/disk2s4: Resource busy

    1. info

       $ sudo dd if=CentOS-6.5-x86_64-bin-DVD1.iso of=/dev/disk2s4
       Password:
       dd: /dev/disk2s4: Resource busy
      
    2. check with df

       $ df -h
       Filesystem      Size   Used  Avail Capacity iused      ifree %iused  Mounted on
       /dev/disk1     233Gi  165Gi   67Gi    72% 2421155 4292546124    0%   /
       devfs          185Ki  185Ki    0Bi   100%     640          0  100%   /dev
       map -hosts       0Bi    0Bi    0Bi   100%       0          0  100%   /net
       map auto_home    0Bi    0Bi    0Bi   100%       0          0  100%   /home
       /dev/disk2s4    15Gi  2.6Gi   12Gi    18%       0          0  100%   /Volumes/gree2
      
    3. fixed

       $ sudo diskutil unmount /Volumes/GREE2
       Volume GREE2 on disk2s4 unmounted
      
       $ df -h
       Filesystem      Size   Used  Avail Capacity iused      ifree %iused  Mounted on
       /dev/disk1     233Gi  165Gi   67Gi    72% 2422777 4292544502    0%   /
       devfs          187Ki  187Ki    0Bi   100%     646          0  100%   /dev
       map -hosts       0Bi    0Bi    0Bi   100%       0          0  100%   /net
       map auto_home    0Bi    0Bi    0Bi   100%       0          0  100%   /home
      
       $ sudo dd if=CentOS-6.5-x86_64-bin-DVD1.iso of=/dev/disk2s4
      


blog comments powered by Disqus