14 September 2010

Step by step to Create a new partition for linux

Step by step to Create a new partition for linux

login to root user 

1,fdisk -l  view the hdd detail

2, fdisk (hdd type for example /dev/hdb)

3,p to print the partition type ,n to create a new partition .w for save the the partition type .

4 partprobe

5,mke2fs -j (hdd type for example /dev/hdb5)

6,mkdir partition path and folder name

#mkdir -p /data

mount /dev/sdaX /data

You have to entered the entry of new partition in /etc/fstab

#vi /etc/fstab

entered the following line.

/dev/sdaX /data ext3 defaults 1 2

save this file and reboot your machine to verify the changes.

No comments: