Fixed the problem of not sleeping after SWAP formatting in Ubuntu.
Source: Internet
Author: User
Article Title: fixed the problem of non-sleep after SWAP formatting on Ubuntu. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic classification Ubuntu presets use UUID to identify different partitions. Formatting the swap partition will produce a new UUID, so that Ubuntu cannot find the swap partition. Because the system hibernate needs to store the system status in the swap partition. If it is not found, the swap partition will cause sleep and reply failure. Therefore, we need to tell the new UUID of the Ubuntu swap partition to modify the sleep function.
Use blkid to find the new UUID of the swap partition:
Now we can know that the UUID of the Swap partition is "62a19d18-5c43-4df8-9df0-701_bf7dc5d 」. First, correct the Swap partition location in/etc/fstab:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service