How To Install CentOS 7 With Custom Partitions
How To Install CentOS 7 With Custom Partitions
Linux Partitions
techencyclopedia.wordpress.com/2017/06/07/how-to-install-centos-7-by-manually-creating-lvm-linux-partitions
INTRODUCTION
What Is CentOS?
Lab Configuration
In this lab scenario 32 Gb hard disk is used to manually create LVM (Logical Volume
Manager) Linux partitions namely swap, root, home, var, srv and tmp. standard /boot
partition is created separately to keep the boot files and linux kernal as the system cannot
boot from LVM partition. Feel free to adjust the sizes of the partitions accordingly to the
requirement of your organization.
TUTORIAL
1/31
2/31
Choose the language and press continue
3/31
Date & Time
Language Support
4/31
Keyboard Layout
5/31
Installation Source
6/31
Software Selection
7/31
Installation destination
If you are going to create the root (/) partition as a LVM, be sure to create a standard /boot
partition separately to keep the boot files and the Linux kernel because the system cannot
boot form LVM partitions.
8/31
Create The Standard Partition
9/31
10/31
Press Update Settings
11/31
Create The New LVM PV And Rest of The Partitions
Root partition
Mount Point: /
Desired Capacity: 5 GB
Device Type: LVM [new LVM PV should be created – NewLVM-PV]
File System: ext4
Label: root
12/31
Create a new LVM PV – NewLVM-PV
13/31
14/31
Swap partition
Desired capacity is calculated according to the system RAM. If the system RAM is less than
2 GB it should be multiplied by 2, if the system RAM is more than 2 GB, should add 500
mb to the system RAM.
EX -:
system RAM is 250 mb —> Desired Capacity is 500 mb [250 mb * 2]
system RAM is 3 GB —> Desired Capacity is 3.5 GB [3 GB + 500 mb]
15/31
16/31
Home partition
17/31
Tmp partition (optional)
18/31
19/31
Var partition (optional) on web and mail servers (LVM)
20/31
Srv partition (optional) on FTP servers (LVM)
21/31
After creating required partitions press Done
22/31
Select Accept Changes
23/31
Press Begin Installation
24/31
Configure Root account password to complete installation
25/31
26/31
Press Finish Configuration
Press Reboot
27/31
POST INSTALLATION TASKS
After rebooting, login to the root account using the password given
To view the file system table use the command [find more at:
https://www.howtogeek.com/howto/38125/htg-explains-what-is-the-linux-fstab-and-
how-does-it-work/]
cat /etc/fstab
28/31
A file named /etc/fstab lists the devices (typically hard disk partitions) that are to be
mounted at boot time.
To view users
cat /etc/passwd
29/31
To view created groups
cat /etc/group
30/31
31/31