Page 1 of 1

Swap does not start in machine start up.

PostPosted: Apr 27th, '12, 22:47
by arelatensis
Hi all. I had swap partition for Mageia installation on another physical drive than root and home, and got because it increased system load time. The system in start up too long searches swap in this lactation, so I decide to relocate it on to same drive where are other Mageia partitions. I delete old swap and create new. But this new one does not mount in system start up.
In /etc/fstab all ok.
Code: Select all
# Entry for /dev/sdb5 :
UUID=a458cefc-dfdb-4dcd-8460-9b38801c5ae6 swap swap defaults 0 0

sdb5 it is truly new swap partition

Re: Swap does not start in machine start up.

PostPosted: Apr 28th, '12, 08:59
by doktor5000
Please do a
Code: Select all
mount -a && swapon -s
as root and post the output here.

Re: Swap does not start in machine start up.

PostPosted: Apr 28th, '12, 13:27
by arelatensis
Code: Select all
mount -a
It has no explicit output
Code: Select all
# swapon -s
Filename                                Type            Size    Used    Priority
. This is immediately after boot.
If I mount swap manually "swapon /dev/sdb5"so:
Code: Select all
# swapon -s
Filename                                Type            Size    Used    Priority
/dev/sdb5                               partition       1951860 177704  -1

Problem is in this, that very annoying to mount swap partition every time, after turn on the machine, manually

Re: Swap does not start in machine start up.

PostPosted: Apr 29th, '12, 09:57
by doktor5000
Please show the output of
Code: Select all
blkid
as root.

Re: Swap does not start in machine start up.

PostPosted: Apr 29th, '12, 11:18
by arelatensis
Here
Code: Select all
# blkid
/dev/sdb1: LABEL="Mandriva_ro" UUID="f8b04af1-d3f9-4933-a7fa-1fc5ae7badf6" TYPE="ext3"
/dev/sdc1: LABEL="Succes" UUID="72853C9962C4419F" TYPE="ntfs"
/dev/sdc5: LABEL="RECOVER235" UUID="C5A7-11EA" TYPE="vfat"
/dev/sdc6: LABEL="USER_37GB" UUID="DB3C-87FF" TYPE="vfat"
/dev/sdc7: UUID="76B040D8B040A10B" TYPE="ntfs"
/dev/sdc8: LABEL="Data_250Gb" UUID="7F6F8A6B6A0C28C8" TYPE="ntfs"
[u]/dev/sdb5: UUID="9f398367-8c7f-40e5-8481-b486e62d8d43" TYPE="swap"[/u]
/dev/sdb6: LABEL="Mandriva_ho" UUID="6368746f-2074-616b-6f65-207575696400" TYPE="ext2"
/dev/sdb3: LABEL="Debian" TYPE="ufs"
/dev/sda1: LABEL="EFI" UUID="70D6-1701" TYPE="vfat"
/dev/sda2: LABEL="FAT-27" UUID="FD64-10E9" TYPE="vfat"
/dev/sda3: UUID="0e29caf2-f1e6-3c70-a17a-c9fdea1edd5d" LABEL="MacOSX_30" TYPE="hfsplus"
/dev/sda4: UUID="5ee3d935-9620-4d56-b62f-9271d9180188" TYPE="ext2"
/dev/sdc9: LABEL="Film290" UUID="5207e49a-5686-4382-ad22-d09a746eae69" TYPE="xfs"
/dev/sdd1: UUID="7A8B-D5ED" TYPE="vfat"
[root@localhost atrelatensis]#

/dev/sdb5 is also correctly indicated as swap. But here it has another uuid that of /etc/fstab/ file.

Re: Swap does not start in machine start up.

PostPosted: Apr 29th, '12, 15:33
by doktor5000
arelatensis wrote:
blkid wrote:/dev/sdb5: UUID="9f398367-8c7f-40e5-8481-b486e62d8d43" TYPE="swap"

/dev/sdb5 is also correctly indicated as swap. But here it has another uuid that of /etc/fstab/ file.


Exactly what i was aiming for. Either reference it via it's device name (/dev/sdb5) in fstab or update the fstab with the current UUID or fix the UUID of the swap partition to match what you have in fstab. You pick a solution :)

PS: Code-blocks do no support BBCodes markup, you can only use Quote-tags for that.