Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Luter 345 Experiments
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Centos Minimal Installation
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Get shortened URL
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Centos 6.5 Minimal== ===Why minimal install?=== A minimal install only includes files and processes necessary for the computer to run. This then cuts out any unnecessary background processes that would interrupt the experiment. ==Creating a Bootable USB== ===Format Disk=== Format a 4GB+ USB Disk as GUID/FAT32. Partition scheme (GUID):<br /> [[File:Format Disk 1 - Partition Scheme.png]] Format type (FAT):<br /> [[File:Format Disk 2 - Format Type.png]] ===Prepare Disk Image and Copy to Disk on Mac or Linux=== <ol> <li> <div> <p>Download CentOS-6.5-i386-minimal.iso, [http://isoredirect.centos.org/centos/6/isos/i386/ Mirrors available here.]</p> </div> </li> <li> <div> <p>Open Terminal</p> </div> </li> <li> <div> <p>Convert the .iso file to .img using the convert option of hdiutil e.g., </p><pre>hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso</pre><p></p> <p><strong>Note:</strong> OS X tends to put the .dmg ending on the output file automatically.</p> <p><strong>Note:</strong> Try not using ~ for home directory, instead use path from root. Dragging file into the terminal window also pastes the path directly into terminal.</p> </div> </li> <li> <div> <p>Run </p><pre>diskutil list</pre> to get the current list of devices.<p></p> </div> </li> <li> <div> <p>Insert your flash media.</p> </div> </li> <li> <div> <p>Run </p><pre>diskutil list</pre> again and determine the device node assigned to your flash media (e.g. /dev/disk2).<p></p> </div> </li> <li> <div> <p>Run </p><pre>diskutil unmountDisk /dev/diskN</pre> (replace N with the disk number from the last command; in the previous example, N would be 2).<p></p> </div> </li> <li> <div> <p>Execute </p><pre>sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m</pre> (replace /path/to/downloaded.img with the path where the image file is located; for example, ./ubuntu.img or ./ubuntu.dmg).<p></p> <ul> <li>Using /dev/rdisk instead of /dev/disk may be faster</li> <li>If you see the error dd: Invalid number '1m', you are using GNU dd. Use the same command but replace bs=1m with bs=1M</li> <li>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</li> </ul> </div> </li> <li> <div> <p>Run </p><pre>diskutil eject /dev/diskN</pre> and remove your flash media when the command completes.<p></p> </div> </li> <li> <div> <p>Restart your Mac and press alt/option key while the Mac is restarting to choose the USB stick.</p> </div> </li> </ol> ===Prepare Disk Image and Copy to Disk on PC=== For installing Centos 6.5, USB keys can be used to install the desied ISO by using dd. <pre> dd if=CentOS-6.5-x86_64-bin-DVD1.iso of=/dev/sdb </pre> When asked for media, select "Hard disk" and *the device* corresponding to the USB Key (make sure to select device and not partition). For Centos 7, there are issues with Windows tools transferring the Centos installer image correctly. Only use dd for Windows, or Rawrite32, or Win32 Disk Installer. If using a version of Windows newer than Windows 7, make sure you unmount the USB drive first (or format it before launching the disk copier) otherwise you will receive a "can't write to drive" error message. If using dd for Windows, run dd --list and look carefully at the list of NT Block Device Objects and use the one that looks like \\?\Device\Harddisk1\Partition0 where the description is something like "Removable media other than floppy. Block size = 512". Be very careful about which output device you pick or you may overwrite something on accident. The specific path will vary. It is not recommended you install anything past Centos 6.5 at this time, as only the latest version of Centos is ever supported. ==Installing Centos== <ol> <li> <div> <p>Boot from USB</p> </div> </li> <li> <div> <p>What type of media contains the installation disk? Select, “Hard Drive”</p> <br /> [[File:Install CentOS 1 - Media Selection.JPG]] </div> </li> <li> <div> <p>Choose partition, “sda1” </p> [[File:Install CentOS 2 - Partition Selection.JPG]] </div> </li> <li> <div> <p>Choose “Basic storage devices”</p> [[File:Install CentOS 3 - Choose Installation Type.JPG|800px]] </div> </li> <li> <div> <p>Use default hostname.</p> </div> </li> <li> <div> <p>Set root password.</p> </div> </li> <li> <div> <p>Choose “Use All Space”</p> </div> </li> <li> <div> <p>Move Hard Drive to “Install Target Devices”</p> [[File:Install CentOS 4 - Install Target.JPG|800px]] </div> </li> <li> <div> <p>Wait for install to finish and reboot.</p> </div> </li> </ol> ==Mounting a USB== <br> <p>After installing the minimal OS follow these steps to mount a USB:</p> * Plug in the USB *Look for <pre>[root@localhost "]# sd 6:0:0:0: [sdb] Assuming drive cache sd 6:0:0:0: [sdb] Assuming drive cache: write through sd 6:0:0:0: [sdb] Assuming drive cache: write through </pre> * The command needed is <pre> mount /dev/sdb/ /mnt</pre> <br> ===Unmounting=== Make sure you are out of the mount directory. The command is <pre>umount/mnt</pre> And you're unmounted.
Summary:
Please note that all contributions to Luter 345 Experiments may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Luter 345 Experiments:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)