1、使用命令安装分区管理工具gparted
sudo apt-get install gparted
2、使用命令启动分区管理工具
sudo gparted
把交换分区、其余无用分区都删除。
输入命令:
sudo gedit /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=33a0df1e-5b02-4f24-a8c1-8975d5be4b4c / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=66b6daf7-6485-4b72-ba38-839f0865cf9b none swap sw 0 0
删除交换分区: