View previous topic :: View next topic |
Author |
Message |
gentleguy n00b
Joined: 31 Oct 2014 Posts: 14
|
Posted: Thu Nov 13, 2014 9:06 pm Post subject: Systemd boot takes longer than usual and SWAP not enabled |
|
|
Hello,
I installed the gentoo system with "Systemd" enabled and the boot sequence take longer than usual. When it boots, it actually give me the below message and freeze for exactly 1.30 minutes.
Quote: |
A start job is running for dev-sda2 device
|
Here the sda2 is my SWAP partition, after the system booted, i see that the SWAP is not enabled and 'journalctl" give me the below error message.
Quote: |
Nov 13 02:32:12 computergeek systemd[1]: Dependency failed for /dev/sda2.
Nov 13 02:32:12 computergeek systemd[1]: Timed out waiting for device dev-sda2.device.
Nov 13 02:32:12 computergeek systemd[1]: Job dev-sda2.device/start timed out.
|
And the "systemctl" says..
Quote: |
# systemctl status dev-sda2.swap
● dev-sda2.swap - /dev/sda2
Loaded: loaded (/etc/fstab)
Active: inactive (dead)
What: /dev/sda2
Docs: man:fstab(5)
man:systemd-fstab-generator(
|
And my "/etc/fstab" says.
Quote: |
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1 /boot ext2 noauto,noatime 1 2
/dev/sda3 / ext4 noatime 0 1
/dev/sda2 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
|
Please help me fix this problem.
---------------------------------------
Thanks in advance |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Fri Nov 14, 2014 6:22 am Post subject: |
|
|
enabling open by fhandle system calls and inotify support fixed this problem for me[/quote] |
|
Back to top |
|
|
gentleguy n00b
Joined: 31 Oct 2014 Posts: 14
|
Posted: Fri Nov 14, 2014 6:22 pm Post subject: |
|
|
blakdeath wrote: | enabling open by fhandle system calls and inotify support fixed this problem for me | [/quote]
I already have them added into my kernel.
Code: |
CONFIG_INOTIFY_USER=y
CONFIG_FHANDLE=y
|
Thanks
----------------------- |
|
Back to top |
|
|
gentleguy n00b
Joined: 31 Oct 2014 Posts: 14
|
Posted: Mon Nov 17, 2014 3:06 am Post subject: |
|
|
Is this forum active?
Thanks |
|
Back to top |
|
|
grumblebear Apprentice
Joined: 26 Feb 2008 Posts: 202
|
Posted: Mon Nov 17, 2014 10:38 am Post subject: |
|
|
Have you ever run mkswap on /dev/sda2?
What happens when you manually run swapon /dev/sda2?
Any hints in dmesg? |
|
Back to top |
|
|
gentleguy n00b
Joined: 31 Oct 2014 Posts: 14
|
Posted: Tue Nov 25, 2014 3:37 am Post subject: |
|
|
grumblebear wrote: | Have you ever run mkswap on /dev/sda2?
What happens when you manually run swapon /dev/sda2?
Any hints in dmesg? |
Yes, i did that already.
Actually i switched from OpenRC to Systemd and mkswap was basically part of that initial setup which is complete. I ran that swapon too which will temporarily enable the swap untill the next reboot.
Dmesg stated the same error message and no useful hints there.
Atlast i managed to fix this issue by recompiling my kernel with the "genkernel" tool rather than compiling myselft manually.
Thanks all for all your help |
|
Back to top |
|
|
|