Nguyễn Đức Thành
New member
How do I resize a file system?
Answer
Option 2
Answer
Option 2
- Check if disk is available: dmesg | grep sdb.
- Check if disk is mounted: df -h | grep sdb.
- Ensure there are no other partitions on disk: fdisk -l /dev/sdb. …
- Resize the last partition: fdisk /dev/sdb. …
- Verify the partition: fsck /dev/sdb.
- Resize the filesystem: resize2fs /dev/sdb3.