How to make a partition in Linux post installation and how to mount it?

After logging into Linux what you have to do is you need to know if there is space available or not. If you are sure you got space follow the below mentioned steps:

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 20G 15G 4.3G 78% /
none 942M 0 942M 0% /dev/shm
/dev/sda3 87G 7.2G 75G 9% /usr

fdisk -l
Disk /dev/sda: 120.0 GB, 120060444672 bytes
255 heads, 63 sectors/track, 14596 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2611 20972826 83 Linux
/dev/sda2 2612 3133 4192965 82 Linux swap
/dev/sda3 3134 14596 92076547+ 83 Linux

fdisk /dev/sda

The number of cylinders for this disk is set to 14596. There is nothing wrong with that, but this is larger than 1024, and...

could in certain setups cause problems with:

1. Software that runs at boot time (e.g., old versions of LILO)
2. Booting and partitioning software from other OS's (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): n
Command action
e extended
p primary partition (1-4)
  • Then using fdisk just make a new one using n,t option of fdisk
  • Then rebppt the system
  • Now let’s say you got the new driver which is /dev/sda8 which carries 10Gb
  • So after boot do mkfs /dev/hda8 and then manually mount /dev/hda8 /yourdirectoty or in etc fstab you have to mention the same for automount in every boot time.
We are done with this How-To Feature for Linux, for any problem or question about this post point to our Linux forums

No comments:

Post a Comment