This tutorial belongs to the data disk expansion [non-system disk] default directory /dev/sdb
First uninstall the data disk if it is already mounted. Or enter the directory to delete
Vi /dev/fstab
After the command
Delete
/dev/sdb1 /www ext4 defaults 0 0
This entire line of code.
Then save and exit, restart the system.
Partition operation after restarting the system
Follow the command below
Fdisk /dev/sdb
Press the regional command. You can simply press Enter without content in the middle.
After the completion. Input
E2fsck -f /dev/sdb1 #This command belongs to the check file system.
After waiting for the end
Resize2fs /dev/sdb1 #This command is resized.
This means the change is over.
The last step is to remount.
Direct input
Mount /dev/sdb1 /www
Then at the input
Echo "/dev/sdb1 /www ext4 defaults 0 0" >> /etc/fstab
End.
This data disk has been expanded.
Since it is a simple command operation, no screenshots are attached.
If you don't understand anything, you can submit a work order.