Automatically mount swap on Ubuntu after reloading Windows XP

Source: Internet
Author: User
Keywords Ubuntu boot swap
Tags activate button editor etc file hard note restart

Emergency method (restart failure) system-System Management-partition Editor-right button search Activate swap

No partition editor can also operate:

To reactivate the swap partition, you need to first separate the swap partition with the partition Format tool and note the partition number. Then operate under the terminal:

sudo mkswap/dev/hdax #X是swap分区的编号, do not mistake the number, or you will die hard to see:

Write down the resulting UUID serial number.

Complete solution:

#/etc/fstab:static File System information.
#
#&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP; --This file super-delegates 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

My present

Uuid=52a459ee-99cb-4856-9ea4-ff698b58bff8 None swap SW 0 0

Modify the red part UUID

With

LS/dev/disk/by-uuid

Command View UUID

The UUID now queried:

may@may-desktop:~$ ls/dev/disk/by-uuid
Total dosage 0
lrwxrwxrwx 1 root 2009-04-06 11:55 0ef02de5f02dd3ad->. /.. /sda6
lrwxrwxrwx 1 root 2009-04-06 19:47 3673d939-cfa2-4eb8-b9bd-4421cf7738db->. /.. /sda8
lrwxrwxrwx 1 root 2009-04-06 11:55 4c844b34844b2036->. /.. /sda1
lrwxrwxrwx 1 root 2009-04-06 11:55 52a459ee-99cb-4856-9ea4-ff698b58bff8->. /.. /sda3
lrwxrwxrwx 1 root 2009-04-06 11:55 7660424460420af7->. /.. /sda5
lrwxrwxrwx 1 root 2009-04-06 11:55 def80115f800ee19->. /.. /sda7
may@may-desktop:~$

lrwxrwxrwx 1 root 2009-04-06 11:55 52a459ee-99cb-4856-9ea4-ff698b58bff8->. /.. /sda3

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.