Linux is most popular operating system. Unlike windows operating system most administrator uses command line interface for administration. Linux not uses hard disk drive concept everything is file or folder. some time we require to modify partitioning scheme. To partition a hard disk after installation follow below steps.
Partition in Linux after Installation
Create a directory /new. In this directory we will mount our physical hard disk.
# mkdir /new
Check hard disk identification and present partition.
# fdisk –l
/dev/sda1 * 1 13 104319 83 Linux
Now create partition as primary / extended or logical in extended.
# fdisk /dev/sda
Command (m for help) : n <new> -> e <extended> : first cylinder > : last cylinder (Extended)
Command (m for help) : n <new> : first cylinder > : last cylinder or +500M (logical partion)
Command (m for help) : w (write the new partition table to HDD)
Now restart the hard disk sub system.
# partprobe /dev/sda
# fdisk –l (see the new extended and logical partition)
Create file system to the /dev/sda5 linux Logical partition.
# mkfs –t ext3 /dav/sda5
Mount the /dev/sda5 partition to /new directory.
# mount /dev/sda5 /new (Access HDD partition from /new directory)
Permanently update the partition in fstab for auto mount at system startup.
# vi /etc/fstab
/dev/sda5 /new ext3 default 0 0