How Do I Change the Space in Linux?
Contents How Do I Change the Swap Space in Linux? the Basic Steps to Take Are Simple: Turn off the Existing Swap Space. Create a New Swap Partition of the...
Contents
How do I change the swap space in Linux?
The basic steps to take are simple:
- Turn off the existing swap space.
- Create a new swap partition of the desired size.
- Reread the partition table.
- Configure the partition as swap space.
- Add the new partition/etc/fstab.
- Turn on swap.
27 мар. 2020 г.
How do I resize a file in Linux?
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.
23 июн. 2019 г.