Swap does not start in machine start up.

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Swap does not start in machine start up.

Postby arelatensis » Apr 27th, '12, 22:47

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
User avatar
arelatensis
 
Posts: 18
Joined: Feb 12th, '12, 15:42

Re: Swap does not start in machine start up.

Postby doktor5000 » Apr 28th, '12, 08:59

Please do a
Code: Select all
mount -a && swapon -s
as root and post the output here.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18055
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Swap does not start in machine start up.

Postby arelatensis » Apr 28th, '12, 13:27

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
User avatar
arelatensis
 
Posts: 18
Joined: Feb 12th, '12, 15:42

Re: Swap does not start in machine start up.

Postby doktor5000 » Apr 29th, '12, 09:57

Please show the output of
Code: Select all
blkid
as root.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18055
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Swap does not start in machine start up.

Postby arelatensis » Apr 29th, '12, 11:18

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.
User avatar
arelatensis
 
Posts: 18
Joined: Feb 12th, '12, 15:42

Re: Swap does not start in machine start up.

Postby doktor5000 » Apr 29th, '12, 15:33

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18055
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron