應急方法(重啟失效)系統-系統管理-分區編輯器-右鍵搜動啟動SWAP
沒裝分區編輯器也可操作:
要重新啟動swap分區,你需要先用分區格式工具分出一個swap分區,並記下分區編號。 然後在終端下操作:
sudo mkswap /dev/hdaX #X是swap分區的編號,千萬別把編號弄錯了,否則會死得很難看:)
把產生的UUID序號記下來。
徹底解決:
# /etc/fstab: static file system information.
#
#&HTTP://www.aliyun.com/zixun/aggregation/37954.html">nbsp; -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# Entry for /dev/sda8 :
UUID=3673d939-cfa2-4eb8-b9bd-4421cf7738db / ext3 relatime,errors=remount-ro 0 1
# Entry for /dev/ !! UNKNOW DEVICE !! :
UUID=52a459ee-99cb-4856-9ea4-ff698b58bff8 none swap sw 0 0
我現在的
UUID=52a459ee-99cb-4856-9ea4-ff698b58bff8 none swap sw 0 0
修改紅色部分UUID號
用
ls -l /dev/disk/by-uuid
命令查看UUID
現在查詢到的UUID:
may@may-desktop:~$ ls -l /dev/disk/by-uuid
總用量 0
lrwxrwxrwx 1 root root 10 2009-04-06 11:55 0EF02DE5F02DD3AD -> .. /.. /sda6
lrwxrwxrwx 1 root root 10 2009-04-06 19:47 3673d939-cfa2-4eb8-b9bd-4421cf7738db -> .. /.. /sda8
lrwxrwxrwx 1 root root 10 2009-04-06 11:55 4C844B34844B2036 -> .. /.. /sda1
lrwxrwxrwx 1 root root 10 2009-04-06 11:55 52a459ee-99cb-4856-9ea4-ff698b58bff8 -> .. /.. /sda3
lrwxrwxrwx 1 root root 10 2009-04-06 11:55 7660424460420AF7 -> .. /.. /sda5
lrwxrwxrwx 1 root root 10 2009-04-06 11:55 DEF80115F800EE19 -> .. /.. /sda7
may@may-desktop:~$
lrwxrwxrwx 1 root root 10 2009-04-06 11:55 52a459ee-99cb-4856-9ea4-ff698b58bff8 -> .. /.. /sda3