Creating new disk in linux

# fdisk /dev/vdc
Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-209715199, default 2048):

Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-209715199, default 209715199):
Using default value 209715199

Command (m for help): w
The partition table has been altered!

# mkfs.ext4 /dev/vdc1
#mount /dev/vdb1 /database
#df -h



Leave a Reply

Your email address will not be published. Required fields are marked *