Recently i installed Ubuntu 13.04 and allocated 20 GB for it. The system got installed space less than 10 GB. Now, can i shrink it to 10 GB without formatting it? Thats to say, i don't want to have large empty space in the partition.
1 Answer. Yes, you need to run fdisk to actually change the partition table. After you resize your file system with resize2fs (the partition must be unmounted), look at the output of the command: $ resize2fs /dev/sdb1 24G ...
Begin -> Right click Computer -> Manage. Locate Disk Management under Store on the left, and click to select Disk Management. Right click the partition you want to cut, and choose Shrink Volume. Tune a size on the right of Enter the amount of space to shrink.
The resize2fs is a command-line utility that allows you to resize ext2, ext3, or ext4 file systems. Note: Extending a filesystem is a moderately high-risk operation. So it is recommended to backup your entire partition to prevent data loss.
You could use the resize2fs command.
However, I would suggest to backup the most important files (on e.g. an USB key) before doing that (e.g. /etc/
and some of /home/
)
See also this question...
BTW, 20GB for the system partition is not that much.....
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With