Skip to main content

Posts

Showing posts with the label Setting partition in Centos

SETTING PARTITION IN CENTOS

#lsblk   (to view all partitions available) This will list the available space    #fdisk /dev/sdc (Select n Then p for primary e for extended Give size w for save) similarly we can create multiple number of partition based on requirement. Then we need to assign a file system to the created partition.Here we are assigning ext3 file system.  #mkfs -t ext3 /dev/sdc Now create mount point.ie,the directory to which we want to mount #mkdir /disk Open fstab file inorder to permenently mount a file system. #vi /etc/fstab Here we gave details about UUID  mountpoint  filesystem defaults 0 0 (note:here fst zero indicates wheather disk is to be backed up.0 indicates no Second 0 indicates wheather fscheck is needed or not.0 means no fscheck. We can give these value no issue in it) To know the UUID blkid command can be used #blkid /dev/sdc1 After editing fstab file run partprobe command to reload...