I've done a disk partition with fdisk /dev/sda
with following options:
P
- primary
But when inspecting disk with df -h
command I do not see the disk space available to use. But I can see it with lsblk
that it is part of the /dev/sda
device drive as /dev/sda3
. Is my new partition ready to use now or do I need to mount it first or do something else with it to enable it?
I got this when running lsblk:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 500G 0 disk
├─sda1 8:1 0 1G 0 part /boot
├─sda2 8:2 0 39G 0 part
│ ├─centos-root 253:0 0 35.1G 0 lvm /
│ └─centos-swap 253:1 0 3.9G 0 lvm [SWAP]
└─sda3 8:3 0 460G 0 part
And this when running df -h:
[root@linx ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 308K 1.9G 1% /dev/shm
tmpfs 1.9G 8.9M 1.9G 1% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/mapper/centos-root 36G 2.7G 33G 8% /
/dev/sda1 1014M 168M 847M 17% /boot
tmpfs 379M 0 379M 0% /run/user/1881099406
sda3
anywhere – muru Nov 05 '19 at 10:36fdisk -l
first to get that missing listing. With `-l' it is no problem, very like lsblk. There you see you new partitions. – Nov 05 '19 at 13:11