Create a 500MB new partition and should be mounted under
/mountpoint as ext4 type.
Answer:
# fdisk -cul
(for viewing the partition information)
# fdisk -cu
/dev/vda
# m (for help)
# n (for new partition)
# e (for all spaces extended partition)
# Not p (because primary partition limit only 4)
# 3 (for partition number)
# Enter (for first cylinder)
# Enter (for last cylinder)
# w (for save)
# reboot (for rebooting the machine)
After rebooting the machine:
# fdisk -cul
(for viewing partition)
# fdisk -cu
/dev/vda
# m (for help)
# n (for new partition)
# l (for logical partition)
# Enter (for first cylinder)
# +500M Enter (for last cylinder)
# w (for save)
# reboot (for rebooting the machine)
After rebooting the machine:
# fdisk -cul
(for viewing partition)
# mkfs.ext4 /dev/vda5
# mkdir -p /mountpoint (p for focely created one directory in another)
# mount /dev/vda5 /coss/new/
# df -h
(for mounting information)
# vim /etc/fstab (for permanently mount)
/dev/vda5 /mountpoint ext4 defaults
0 0
# mount -a
# df -h