Clado Solutions

Loading

How to install Centos on your system ?

Hi, Here I will show you how to install CentOS 6 on your system. It has been derived entirely from the Red Hat Enterprise Linux distribution. CentOS exists to provide a free enterprise class for computing platform and strives to maintain 100% binary compatibility with its upstream source, Red Hat.[2] Here CentOS stands for Community ENTerprise Operating System.

GNU GPL license has release Centos and it is entirely freely available to download from official website. Once download ISO image, burn it into DVD using your favourite burner and Boot from DVD by making the DVD ROM to boot first in BIOS.

Follow the bellow steps to install CentOS 6

Step 1: Select the Install Button or you can update existing the system and then Press Enter.

Step 2: Choose Skip option the installation media check.

Step 3: Click Next button on Welcome Window.

Step 4: Choose the language you want and click Next.

Step 5: Choose Keyboard type and click on the Next button.

Step 6: Select the installation device type and click on Next.

Basic Storage Devices – It includes normal SATA or IDE Hard disk, This option will work mostly for all PC’s

Step 7: Specify the Host Name you want. If you want to configure network connection click on Configure Network.

Step 8: Select your network device and click on Edit to continue.

Step 9: Check on Connect automatically and click on IPv4 Setting tab.

Step 10: Setup your network setting and click on Apply, Click Close in the Network Configuration Window.

Step 11: Select your Time Zone and click on Next button.

Step 12: Type the password for root account and click Next. the password should use strong words so that becomes strong password.

Step 13: Select the Type of the installation and click on Next button.

Step 14: Select Customize now and click Next button.

Step 16: Select the package of software that y to install and click Next.

Installation will begin

Click on Reboot to Finish the installation process

Only the installation of CentOS 6 is finished, but Post installation configuration are still pending so Once machine rebooted it will prompt you for post configuration.

Disk Partition in Centos 7

Disk Partition in Centos 7

HOW TO CREATE DISK PARTITION ON CENTOS 7

In the following steps I will show you how to create partitions in Centos 7 with fdisk command.

1. Specify the disk device to create the partition.

Here I am using the utility fdisk to create a new partition. First find the name of the device and use fdisk command like this.

The syntax is fdisk <hard-disk> and hit enter.

# fdisk /dev/sda

After hitting enter it will ask you commands to create partitions.

2. Request a new primary or extended partitions

Enter ‘n’ to request a new partition and hit enter. In the next step it will ask you to specify whether the partition should be created a primary or extended partition. The default selection is primary partition type.

Command (m for help): n

Partition type:

p primary (2 primary, 0 extended, 2 free)

e extended

Select (default p):

3. Select the size of partition

In this step it will ask you a partition number, enter 1 or don’t enter anything, just you can hit enter it will take 1 as default. Next it will ask you first sector value, here also just hit enter or don’t enter any values, by default it will take 2048.

In the next step it will ask you last sector size. Here you can mention the size of our partition. I am choosing 20 gb partition, for that I need to enter +20G.

The syntax is +numberG

If you want more size you can choose as your wish.

Partition number (1-4, default 1):

First sector (2048-41943039, default 2048):

Using default value 2048

Last sector, +sectors or +size{K,M,G} (2048-41943039, default 41943039):

Using default value 41943039

Partition 1 of type Linux and of size 20 GiB is set

4. Verifying the partitions

To verify the partitions created or not by typing p and hit enter. It will show you all partitions in your hard drive. Here my hard drive is /dev/sda. Just now we have created one new partition, you can see new partition /dev/sda1.

Command (m for help): p

Disk /dev/sda: 21.5 GB, 21474836480 bytes, 41943040 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk label type: dos

Disk identifier: 0x0008c000

Device Boot Start End Blocks Id System

/dev/sda1 2048 41943039 20970496 83 Linux

5. Save the created partition.

We have created the partition, but it is not saved for that we need to enter w command. So type w and hit enter. Now we have successfully created partition /dev/sda1 in hard drive /dev/sda.

Command (m for help): w

The partition table has been altered!

Calling ioctl() to re-read partition table.

Syncing disks.

6. Partprobe

Partprobe command informs the OS kernel to re read the partitions in hard drive. Then our newly created partitions will become active.

The syntax of partprobe is,

partprobe <hard-drive>

partprobe /dev/sda

7. Reboot

After completing all the above steps, you can reboot your machine. So you can only visible the partitions.

To reboot your machine you can use the command below.

reboot