You are on page 1of 8

• Partitioning

• Boot from CentOS DVD


• Install CentOS
• Create Custom Layout

© Samantha Indika
Partition Types
1. Primary partitions (must) - Physical partitions
2. Extended partitions - 1/2/3/4
3. Logical partitions - 5 onwards

Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA,


BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE +
Security + Messaging, MCSA + Security + Messaging,
MCP
1
• Cont.. Partitioning
• Only primary partitions • Primary / Extended / Logical
Max :- 4 Max :- 3 Max :- 1 Max :- depends on OS

© Samantha Indika
hda5 hda6

hda P hda P P P L L

hda1 hda1 hda2 hda3


hda4
hda P P hda5 hda6 hda7
hda1 hda2 hda P P L L L

hda1 hda2
hda3
hda P P P
hda5 hda6 hda7 hda8
hda1 hda2 hda3
hda P L L L L

hda1
hda P P P P hda2
hda1 hda2 hda3 hda4

Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA,


BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE +
Security + Messaging, MCSA + Security + Messaging,
MCP
2
• Cont.. Partitioning
• Creating minimum partitions for installation; Microsoft
Un-hide
• swap Hidden Files & System Files
• boot

© Samantha Indika
Eg: pagefile.sys
• root

Creating a swap partition


• New > No Mount point for swap partition (no human readable)

Physical memory (RAM) less than 2GB


Virtual Memory = 2 X Physical Memory
2048MB = 2 X 1024MB

Physical memory (RAM) equal or more than 2GB


Virtual Memory = Physical Memory
3500MB = 3GB + 512MB
(3.5GB) (300MB)
• Size : 2048MB
• Fixed Size Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA,
• Encrypt BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE +
Security + Messaging, MCSA + Security + Messaging,
MCP
3
• Cont.. Partitioning
ext2 - Non Journaling
ext3 - Journaling
Creating a boot partition ext4 - Journaling
• New > /boot

© Samantha Indika
• ext3
• 100MB
• Fixed size
• Don’t encrypt the boot partition

Creating a root partition


• New > /
• ext3
• Size : Any size (Eg: 1024MB)
• Encrypt

Creating recommended additional partitions


• New > /home
• ext3
• Size : Any size (Eg: 1024MB) - Maximum Prepared
16TB by : Samantha Indika | MCT, ACS, CEH, CCNA,
• Fixed size BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE +
Security + Messaging, MCSA + Security + Messaging,
• Encrypt MCP
4
• Cont.. Partitioning
Creating optional partition /usr - Software installation
/usr/local - Software installation
• New > /tmp Not necessary /opt - Software installation
• ext3 /tmp
/var
- Temporary data
- Dynamic Data

© Samantha Indika
• Size : 1000MB
• Fixed size
• Encrypt

Creating custom partitions


• New > /data - No spaces / No case problem / Any name
• ext3
• Fill to maximum allowable size www.fs-driver.org
EXT2IFS
• Encrypt
• Maximum 64 mount point can be created Linux EXT2IFS Windows

Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA,


BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE +
Security + Messaging, MCSA + Security + Messaging,
MCP
5
• Cont.. Partitioning
Creating LVM partition for installing Linux [Logical Volume Manager]
• Allows you to resize existing partitions using another physical hard drive space
without loosing existing data.

© Samantha Indika
• Any Linux partition can be created using the LVM file system except boot partition.

80GB
hda
swap boot root home

500GB
hdb

80GB + 500GB = 580GB

Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA,


BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE +
Security + Messaging, MCSA + Security + Messaging,
MCP
6
• Cont.. Partitioning
Delete all partition before create LVM partitions

Creating a standard boot partition

© Samantha Indika
• New > /boot
• ext3
• Size : 100MB

Using the rest of the hard drive space create a LVM partition

• New >
• File System Type : LVM
• Fill to maximum allowable size
• Encrypt

Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA,


BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE +
Security + Messaging, MCSA + Security + Messaging,
MCP
7
• Cont.. Partitioning
Create all other necessary partitions with in the LVM
• LVM > Name : LVM1
• Physical extent : 32MB

© Samantha Indika
• Add > swap system
• Type : swap
• Name : swap
• Size : 1024MB
• Encrypt www.open-iscsi.org
• Ok

• Type : / • Type : /home


• Name : root • Name : home
• Size : 2000MB • Size : 3000MB
• Ok • Ok

• Type : /data < Custom partition


• Name : data
• Size : 4960MB
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA,
• Ok BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE +
Security + Messaging, MCSA + Security + Messaging,
MCP
8

You might also like