即使交换分区存在并且设置为load in fstab
,它仍未挂载。
fdisk
为交换分区返回以下内容:
file system: /dev/sda5
start: 1
end: 244
blocks: 1951744
id: 82
system: Linux swap / Solaris
在我fstab
看来
file system: /dev/sda5
mount point: none
type: swap
options: sw
dump: 0
pass: 0
我可以用它很好地加载它,swapon /dev/sda5
但是它在启动时不会加载。
我可以提供更多信息来帮助解决问题吗?我不知道还有什么其他有用的信息
根据要求,完整fstab
文件:
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
/dev/sda6 / ext4 errors=remount-ro 0 1
/dev/sda5 none swap sw 0 0
/dev/sr1 none udf rw,noauto 0 0
我正在查看系统日志,但看到了这个,不确定是什么意思还是正常,但是:
Apr 29 17:57:24 caelan-ubuntu os-prober: debug: running /usr/lib/os-probes/50mounted-tests on /dev/sda5
Apr 29 17:57:24 caelan-ubuntu 50mounted-tests: debug: /dev/sda5 is a swap partition; skipping
输出 mountall
mountall: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
mountall: Connection is closed
输出 mountall -v
http://pastie.org/private/ras9mc7mf66yudnjoem4w
swap finished
...
local 4/4 remote 0/0 virtual 12/12 swap 0/0
不确定,仍然没有加载swap ...仍然可以在命令行中添加,并且我的Windows分区正在引导安装,并且也位于fstab中。
sudo blkid
。