Hibernation resuming fails [SOLVED]

Help with the version of MX KDE officially released by the Development Team.
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
fehlix
Developer
Posts: 12967
Joined: Wed Apr 11, 2018 5:09 pm

Re: Hibernation resuming fails [SOLVED]

#11 Post by fehlix »

BlueDragon wrote: Sun Sep 17, 2023 5:49 pm The installer created this content (fstab):

Code: Select all

# Pluggable devices are handled by uDev, they are not in fstab
UUID=c68417a2-b3ee-475c-b98a-bd8707fafb4a / ext4 discard,noatime 1 1
UUID=2940-F4D3 /boot/efi vfat noatime,dmask=0002,fmask=0113 0 0
UUID=0c681cf2-4120-4f27-bc53-6e68ea21957b /home ext4 discard,noatime 1 2
UUID=77df623b-3cf7-43d3-9d06-593ad3dc3d0e swap swap discard
Presently I manually corrected it this way:

Code: Select all

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

#Entry for /dev/sde3 :
UUID=c68417a2-b3ee-475c-b98a-bd8707fafb4a	/	ext4	noatime	1	1
#Entry for /dev/sde1 :
UUID=2940-F4D3	/boot/efi	vfat	noatime,dmask=0002,fmask=0113	0	0
#Entry for /dev/sde6 :
UUID=77df623b-3cf7-43d3-9d06-593ad3dc3d0e swap swap discard
#Entry for /dev/sde4 :
UUID=0c681cf2-4120-4f27-bc53-6e68ea21957b	/home	ext4	noatime	1	1
#Entry for /dev/sde2 :
UUID=cfe2b0e2-37e2-46bf-9cdb-b8b113eb132b	/media/SSD_120GB/Mageia5	btrfs	defaults,nosuid,nodev,noatime,ssd,space_cache,subvolid=5,subvol=/	0	2
#Entry for /dev/sde7 :
UUID=2af283e9-0173-448a-aafd-ac68d755d4a4	/media/SSD_120GB/Mageia-Home	btrfs	defaults,nosuid,nodev,noatime,ssd,space_cache,subvolid=5,subvol=/	0	2
I experimented by also including all my other btrfs (rotating) disks but since the mounting is taking so much time (something like 2 min for the 5 hdd's), I threw all out again and will only mount them whenever needed (just clicking on them in dolphin).

All together manually my fstab then looked like that:

Code: Select all

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

#Entry for /dev/sde3 :
UUID=c68417a2-b3ee-475c-b98a-bd8707fafb4a	/	ext4	noatime	1	1
#Entry for /dev/sde1 :
UUID=2940-F4D3	/boot/efi	vfat	noatime,dmask=0002,fmask=0113	0	0
#Entry for /dev/sde4 :
UUID=0c681cf2-4120-4f27-bc53-6e68ea21957b	/home	ext4	noatime	1	1
#Entry for /dev/sde6 :
UUID=77df623b-3cf7-43d3-9d06-593ad3dc3d0e swap swap discard
#Entry for /dev/sde2 :
UUID=cfe2b0e2-37e2-46bf-9cdb-b8b113eb132b	/media/SSD_120GB/Mageia5	btrfs	defaults,nosuid,nodev,noatime,ssd,space_cache,subvolid=5,subvol=/	0	2
#Entry for /dev/sde7 :
UUID=2af283e9-0173-448a-aafd-ac68d755d4a4	/media/SSD_120GB/Mageia-Home	btrfs	defaults,nosuid,nodev,noatime,ssd,space_cache,subvolid=5,subvol=/	0	2
#Entry for /dev/sda1 :
UUID=a66cea6d-4053-4441-ab94-c65230cbcb3a	/media/Karma_4TB	btrfs	defaults,noatime,x-gvfs-show	0	2
#Entry for /dev/sdb1 :
UUID=1c95f87b-66fa-48f4-968b-089f10ae3988	/media/Brahma_2TB	btrfs	defaults,noatime,x-gvfs-show	0	2
#Entry for /dev/sdc1 :
UUID=50046f68-080d-4924-910d-3a168b3cef2a	/media/Shiva_2TB	btrfs	defaults,noatime,x-gvfs-show	0	2
#Entry for /dev/sdd1 :
UUID=e4881aec-fa32-4bae-9228-b0d4b3801650	/media/Nataraja_2TB	btrfs	defaults,noatime,x-gvfs-show	0	2
#Entry for /dev/sdf1 :
UUID=8271285a-96bb-4111-9625-39d7b6ddf683	/media/Shakti_2TB	btrfs	defaults,noatime,x-gvfs-show	0	2
The Disk Manager is not showing the swap file at all. I guess that must be the reason, why it's discarded (entry deleted), whenever I change something. I can reproduce it every time. Of course it must be a permanent change (check mark in 'Enable').
Thanks. I think you discovered a bug in "Disk Manager", it simply ( and wrongly assumes) a valid fstab line need to hold always 6 fields, which is always to include the the last two dump- and pass-field.
But tools which read those fields would normaly default this value to zero if empty.
You can manually "fix" it by adding "0 0" to the swap line, so it look like this:

Code: Select all

#Entry for /dev/sde6 :
UUID=77df623b-3cf7-43d3-9d06-593ad3dc3d0e swap swap discard 0 0
This makes "Disk Manager" to consider the swap line as valid and won't delete it.

Post Reply

Return to “MX KDE Official Release”