There is a Linux Mint. A partition under swap was configured on another physical disk.

On a physical disk with a swap partitions have been changed. Including in several places unallocated areas of about megabyte size appeared. But the section of the swap itself did not move and its scope did not change. The disk is broken in MBR , not GPT.

Do I need to do something before using Linux? Do I need to customize the swap?

Partitioning a disk before changing partitions:

Partitioning before changing partitions

and after:

Partitioning before changing partitions

The swap partition is Other at 7.45 GB.

Contents of the /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/sdb2 during installation UUID=965d0cac-637e-46d3-881e-132caebadb95 / ext4 errors=remount-ro 0 1 # swap was on /dev/sda6 during installation UUID=71d38886-e09b-4a46-b3c0-02911b34296c none swap sw 0 0 

    1 answer 1

    I think that is not necessary.
    Modern linux distros use UIDs to define partitions and there should be no problems if the partition has not been re-created.
    After starting linux just check that swap connects

     dmesg | grep -i swap 

    If the output is empty, then

    • find out the name of the correct partition ( sudo fdisk -l )
    • change the line corresponding to swap in /etc/fstab
    • give the command sudo mount -a
    • check that swap is connected
    • Um .. Disk in MBR, not in GPT. So the use of UID is questionable. "After launch" - and what happens at startup, if it still does not guess the section? Will he spoil anything on another section? And will it be able to start normally? - Qwertiy
    • Then boot from the Live CD / Flash and check / etc / fstab - Maxim Timakov
    • Completed the question. Really uuid. So everything will be fine and do not need to do anything? - Qwertiy
    • I think that there will be no problems, but for safety with live check the UUID compliance with your section. You can see the list, for example, so ls -l /dev/disk/by-uuid/ - Maxim Timakov
    • @Qwertiy, the MBR has one too - handicraftsman