par*_*sky 5 nvidia freeze drivers
否则,稳定的 Ubuntu 机器会出现问题,因为安装它会在没有明显原因的情况下严重冻结。问题很可能是由 NVDIA 显卡引起的。
sudo blkid 输出:
/dev/sda2: UUID="0E5C95E45C95C73D" TYPE="ntfs" PARTUUID="1ef0523b-02"
/dev/sda5: UUID="16EA-1372" TYPE="vfat" PARTUUID="1ef0523b-05"
/dev/sda6: UUID="fe90c52c-c1b7-4845-971e-e7ed5cb45ac4" TYPE="ext4" PARTUUID="1ef0523b-06"
Run Code Online (Sandbox Code Playgroud)
/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/sda6 during installation
UUID=fe90c52c-c1b7-4845-971e-e7ed5cb45ac4 / ext4 errors=remount-ro 0 1
/swapfile none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
Run Code Online (Sandbox Code Playgroud)
/etc/crypttab:
cryptswap1 UUID=f09a516a-22c0-475c-b749-31ffed5c7bda /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
Run Code Online (Sandbox Code Playgroud)
ls -alh /swapfile:
-rw------- 1 root root 2.0G May 3 13:31 /swapfile
Run Code Online (Sandbox Code Playgroud)
17.04 和加密交换文件似乎存在问题...并且有一些解决方法...
编辑你的/etc/crypttab像这样:
gksudo gedit /etc/crypttab
Run Code Online (Sandbox Code Playgroud)
更改这一行:
cryptswap1 UUID=xxxx-xxxx-xxxx-xxxx /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
Run Code Online (Sandbox Code Playgroud)
对此:
cryptswap1 /swapfile /dev/urandom swap,offset=1024,cipher=aes-xts-plain64
Run Code Online (Sandbox Code Playgroud)
还要确保您/etc/fstab包含以下内容:
/swapfile none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
Run Code Online (Sandbox Code Playgroud)
参考:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1668535
https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/1670336
| 归档时间: |
|
| 查看次数: |
2284 次 |
| 最近记录: |