Friday, September 24, 2021

Linux: Disk Handling Tool: Linux Disk Commands

lsblk -i
lsblk -f
df -Th 
du -sh * |sort -h

mount  /dev/sda  /data    [Manual]

mkfs.xfs /dev/sda
mkfs.ext4 /dev/sdb

edit FSTAB
/dev/sda /data ext4 defaults,nofail 0 0

mount -a

umount /dev/dsx
--------------------------------------------
DONT' UMount if its root disk
sudo parted /dev/sda
print
resizepart
resize2fs /dev/sda1
-------------------------------------------

No comments:

Post a Comment

Azure - Pipeline - Add Approver for Stage

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass