Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Systemd boot takes longer than usual and SWAP not enabled
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
gentleguy
n00b
n00b


Joined: 31 Oct 2014
Posts: 14

PostPosted: Thu Nov 13, 2014 9:06 pm    Post subject: Systemd boot takes longer than usual and SWAP not enabled Reply with quote

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(8)



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
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Fri Nov 14, 2014 6:22 am    Post subject: Reply with quote

enabling open by fhandle system calls and inotify support fixed this problem for me[/quote]
Back to top
View user's profile Send private message
gentleguy
n00b
n00b


Joined: 31 Oct 2014
Posts: 14

PostPosted: Fri Nov 14, 2014 6:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
gentleguy
n00b
n00b


Joined: 31 Oct 2014
Posts: 14

PostPosted: Mon Nov 17, 2014 3:06 am    Post subject: Reply with quote

Is this forum active?

Thanks
Back to top
View user's profile Send private message
grumblebear
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2008
Posts: 141

PostPosted: Mon Nov 17, 2014 10:38 am    Post subject: Reply with quote

Have you ever run mkswap on /dev/sda2?
What happens when you manually run swapon /dev/sda2?
Any hints in dmesg?
Back to top
View user's profile Send private message
gentleguy
n00b
n00b


Joined: 31 Oct 2014
Posts: 14

PostPosted: Tue Nov 25, 2014 3:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum