交换分区无法安装!

交换分区无法安装!

我在 PC 上使用 Ubuntu 14.0 32 位。Ubuntu 启动时不会挂载交换分区,每次我都必须使用 GParted 手动启用它。

/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/sda7 during installation
UUID=a8375b84-987c-4270-85ac-0accd8682008 /  ext4    errors=remount-ro     0       1
# swap was on /dev/sda6 during installation
#UUID=c399c299-23f2-4c06-b6b7-aab8ef70d98b none   swap  sw   0  0
/dev/mapper/cryptswap1 none swap sw,noauto 0 0
/dev/disk/by-uuid/5d8d832e-a440-45b7-b3fe-4793f0b678f3 /media/omid/Backup auto 
nosuid,nodev,nofail 0 0

另外,当我打开系统监视器时,我发现交换不可用。我该怎么办?

答案1

如果你不使用加密交换,你应该删除此行

/dev/mapper/cryptswap1 none swap sw,noauto 0 0

取消注释这一条(删除#)

#UUID=c399c299-23f2-4c06-b6b7-aab8ef70d98b none   swap  sw   0  0

相关内容