Managing Disks and Space
Disk Info
df -h : displays the information of device name, total blocks, total disk space, used disk space, available disk space and mount points on a file system (-h displays output in readable format).
sudo du -mxsh * | sort -n : The du command summarises the disk usage of each file.
mount | grep root : displays mount points with "root" in them
sudo pvdisplay : display attributes of a physical volume
sudo lvdisplay : display attributes of a logical volume
Disk restructuring & resizing (LVM)
- sudo lvremove /dev/fedora_baselmania/home
- sudo lvextend -L+90G /dev/fedora_baselmania/root
- sudo resize2fs /dev/mapper/fedora_baselmania-root
Other
sudo yum clean all : cleans cache
No comments to display
No comments to display