ubuntu gparted 扩容 swap 开机挂载

ubuntu gparted 扩容后  swap不能开机自动挂载


打开文件 :  /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).
#
#                
# / was on /dev/sda1 during installation
UUID=108134fc-73b1-436d-b39d-235768ecb7dc /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=fae91196-cc9a-4a34-8012-9439eeaa8058 none            swap    sw              0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
~
由于更改过swap分区,所以UUID已经变了。更改过来就可以了。

通过gparted 查看新的swap分区的UUID号码

你可能感兴趣的:(Linux)