Problem with old uuuid

UUID is a pseudo random ID created at the time a partition is created. If a partition is deleted then recreated you get a different number. The make files you ran only takes the info from the exiting settings. The system does not know a swap partition from any other it is where you tell the system the swap is that counts. Or any other partition. OS’s are not clairvoyant they only know what you tell them

On 2015-08-09 00:56, userez wrote:
>
> arvidjaar;2723084 Wrote:
>> So you need to either remove resume= parameter if you do not plan to use
>> suspend-to-disk or change it to match actual swap partition. Apparently
>> installation of another system formatted swap partition which changed
>> UUID. To fix go into YaST bootloader settings and edit kernel
>> parameters.
> OK I changed uuid in kernel parameters and problem fixed.
> Thanks all for help.

I told you about that issue 4 hours earlier :wink:

> But why uuid has not changed automaticly?

Why should it?

> I run:
> grub2-mkconfig -o /boot/grub2/grub.cfg - two times
> grub2-install /dev/sda - two times
> mkinitrd - your suggestion

But you did not edit /etc/default/grubsomething.

You installed another Linux, and told it to format swap: that was your
error. The format changes the UUID, so you have to edit ALL references
to it in ALL operating systems.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

Ok, I understand, I again thank you all for replies.

IMHO it is better for this situation (Swap used by several OSes) to use UID and not UUID. That will point to the partition itself and not to what is created on it.
I have to contemplate a bit, but I think the idea of using UUID might be good for the root partition. But on every other partition it will give you problems when you create a new file systemm on it (for whatever reason). Of course you can make a mental (or written) note: “when new file system, adapt all occasions of UUID”. But using UID (or LABEL, but do not forget to add the label to the new file system) might be more versatile

On 2015-08-09 12:06, hcvv wrote:
>
> IMHO it is better for this situation (Swap used by several OSes) to use
> UID and not UUID. That will point to the partition itself and not to
> what is created on it.

swaplabel (8) - print or change the label or UUID of a swap area

:slight_smile:

Me, I use labels on all mounts, except on encrypted filesystems because
it does not work. There I use UUIDs.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))