Page MenuHomeSolus

swap is not mounted after solus installation
Open, HighPublic

Description

After the installation of solus, the swap partition are not mounted automatically.

# /etc/fstab: static file system information.
#
# <fs>      <mountpoint> <type> <opts>      <dump/pass>

# /dev/ROOT   /            ext3    noatime        0 1
# /dev/SWAP   none         swap    sw             0 0
# /dev/fd0    /mnt/floppy  auto    noauto         0 0
none        /proc        proc    nosuid,noexec  0 0
none        /dev/shm     tmpfs   defaults       0 0
# /dev/sda5 at time of installation
UUID=242d22e1-340d-4943-899f-38c60c1cab14	/home	ext4	rw,relatime,errors=remount-ro	0	2
# /dev/sda6 at time of installation
UUID=fcb5c0c3-b1ff-4f77-8c05-5f776dda2c76	/	ext4	rw,relatime,errors=remount-ro	0	1

the line of the swap are not included and I have to manually include it

/dev/sda1	none	swap	sw	0	0
osgyan added a subscriber: osgyan.Dec 14 2016, 11:48 AM

I am facing the Same problems. However my Case is very specific. I have tried several Solus Installations, My Observations are as below.

  1. if I choose automatic partitioning everything works as expected.
  2. if I choose any partition which is either an extended partition, Swap does not auto-mount and the Installer does not write any information about SWAP in the /etc/fstab file.
  3. if I install Solus with Swap as the first partition on the disk and / as the second partition, Or as long as SWAP stays the first partition and I manually create all other partitions after Creating SWAP first as first partition, I see the issue happens and there is no entry for SWAP partition in FSTAB.

Other than these two conditions the installer always creates the SWAP entry in FSTAB.

Hope this description helps in evaluating this bug.

Tick added a subscriber: Tick.Jun 18 2017, 12:19 AM
Tick added a comment.Jun 19 2017, 1:33 AM

I have the same issue, I'm using unstable since a long time, I have no idea when the problem starts.
"dmesg" says the swap partition is mounted, but it doesn't.

I did a fresh install recently, completely wiped the hard drive, default lvm partition settings using the installer. Same problem, the proper fstab command wasn't generated to activate the swap partition.

Same problem, with Solus 3.

fadain added a subscriber: fadain.Aug 22 2017, 3:19 PM

I'd just like to confirm that this bug still exists in Solus 3. With the option to use entire disk and LVM partitions, swap is not mounted in a new installation. I have verified this on two separate systems.

Perhaps related to T4336

dracut-initqueue[358]: Failed to start systemd-cryptsetup<big string of chars>.service: Unit systemd-cryptsetup@luks<big string of chars>.service failed to load: No such file or directory.

Perhaps related to T1199.

With the option to use entire disk and LVM partitions, swap is not mounted in a new installation.

If swap were mounted, would it actually be encrypted out of the box and if yes, how to ensure it is?

neo-alquimista added a comment.EditedSep 26 2017, 3:49 PM

Perhaps related to T1199.

With the option to use entire disk and LVM partitions, swap is not mounted in a new installation.

If swap were mounted, would it actually be encrypted out of the box and if yes, how to ensure it is?

But if it's inside the LVM container (it is) and the method of encryption is LVM on top of LUKS, then swap is certainly inside the encryption. I learned it from Arch installs.

I also see the same warning message samuelcecilio posted. It's during boot, while typing the decryption password. It always appears there.

Hello, this is still an issue. I am using LVM on top of LUKS and found swap was not active when I tried hibernating my laptop.

You mean after a fresh installation? Of course this is still not working: ISOs haven't been updated yet (Solus 4 is not out yet).

DataDrake triaged this task as Low priority.Oct 16 2018, 8:30 PM
DataDrake added a subscriber: DataDrake.

I think this is Low Hanging Fruit for the next ISO.

DataDrake raised the priority of this task from Low to High.

I am also experiencing this issue on an LVM on LUKS install. Had to manually include in fstab with: /dev/SolusSystem/Swap none swap sw 0 0.

shbach added a subscriber: shbach.Sun, Apr 21, 12:17 AM