You are not logged in.

#1 2013-07-14 18:32:12

TheGuyWithTheFace
Member
Registered: 2012-12-09
Posts: 113

Arch fresh install boot hangs for a minute before login screen appears

Hello world!

I just finished installing arch linux 64 bit on my thinkpad T400. (Just the base system, I don't even have X yet.) I recall from previous arch installs that the arch base system is ridiculously fast, but for some reason on this installation, every time I try to boot arch, it hangs during bootup for a minute and a half while displaying this message:

/dev/sda4: clean, 30406/1638400 files, 321108/6553344 blocks

The total boot time is 2 minutes.
Also, I just noticed when I turn the machine on, when grub displays the "Welcome to grub" message, an error message pops up for a very short ammount of time, so short that I don't have a hope of reading the whole thing, but it says something about "error file" followed by more writing I don't have time to read. Any thoughts/suggestions/solutions would be much appreciated!

Offline

#2 2013-07-14 18:39:50

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Arch fresh install boot hangs for a minute before login screen appears

Can you post your /etc/fstab file.  I have a feeling you are trying to mount a volume that is not available at boot and you are waiting for a timeout.

Also, look at the output of systemd-analyze blame
It will tell you what is the long pole in the tent.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2013-07-14 19:10:38

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Arch fresh install boot hangs for a minute before login screen appears

There is now the "systemd-analyze critical-chain" tool as well.  It will tell you at each step of the process, what particular unit is holding things up.

I get this when I run it:

% systemd-analyze critical-chain
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

graphical.target @1.267s
└─user-session@wonderwoofy.service @371ms +896ms
  └─systemd-user-sessions.service @367ms +3ms
    └─basic.target @350ms
      └─timers.target @350ms
        └─systemd-tmpfiles-clean.timer @350ms
          └─sysinit.target @347ms
            └─systemd-update-utmp.service @345ms +1ms
              └─systemd-tmpfiles-setup.service @338ms +6ms
                └─local-fs.target @337ms
                  └─boot.mount @326ms +10ms
                    └─dev-disk-by\x2dlabel-EFI_System.device @273ms

Offline

#4 2013-07-15 01:36:40

TheGuyWithTheFace
Member
Registered: 2012-12-09
Posts: 113

Re: Arch fresh install boot hangs for a minute before login screen appears

Here is my Fstab File:

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
# /dev/sda4
UUID=4743d6de-0d3d-4be3-9b0e-5b41d0879d3a	/         	ext4      	rw,relatime,data=ordered	0 1

# /dev/sda6
UUID=e6bf0c2f-5599-4590-b307-7e4dae9a8cbc	none      	swap      	defaults  	0 0

The Output of systemd-analyze blame:

          1.321s netctl-auto@wlp3s0.service
           490ms systemd-logind.service
           430ms dev-hugepages.mount
           430ms sys-kernel-debug.mount
           426ms sys-kernel-config.mount
           425ms dev-mqueue.mount
           421ms systemd-vconsole-setup.service
           375ms systemd-remount-fs.service
           321ms tmp.mount
           286ms systemd-user-sessions.service
           236ms systemd-udevd.service
           226ms systemd-random-seed-load.service
           216ms systemd-udev-trigger.service
           214ms systemd-update-utmp.service
           207ms systemd-journal-flush.service
           200ms systemd-tmpfiles-clean.service
           173ms systemd-sysctl.service
           159ms systemd-tmpfiles-setup-dev.service
            10ms systemd-tmpfiles-setup.service

Lastly, the output of systemd-analyze critical-chain:

The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

graphical.target @1min 31.840s
└─multi-user.target @1min 31.840s
  └─netctl-auto@wlp3s0.service @1min 30.519s +1.321s
    └─basic.target @1min 30.516s
      └─timers.target @1min 30.516s
        └─systemd-tmpfiles-clean.timer @1min 30.516s
          └─sysinit.target @1min 30.516s
            └─swap.target @1min 30.516s

Also, I found this thread with a similar issue:
https://bbs.archlinux.org/viewtopic.php?pid=1285578
That person fixed his issue by "Removing" his swap, though I'm not sure if that means removing the partition or the entry in his fstab. I was going to try that, but based on systemd-analyze critical-chain, it seems the problem is my network service, right? Also, I'd rather not have to remove my swap partition anyway, as it's used by another OS I have on the disk. Anyways, I hope this info is useful!

Also, I noticed in the forum etiquette that we're supposed to use pastebin for "Large ammounts of code". For future reference, would these combined outputs be long enough to justify using pastebin, or is it ok as is?

Last edited by TheGuyWithTheFace (2013-07-15 01:38:16)

Offline

#5 2013-07-15 04:24:18

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Arch fresh install boot hangs for a minute before login screen appears

Just comment it out of your fstab and see if the problem goes away. It is a very real possibility that even though the boot process gets stuck at a certain spot, it might not be the unit that is listed in critical-chain that is holding up the show.  If you just comment the swap out of the fstab, it will basically just not run "swapon -a" on boot.  If you have a decent amount of RAM, you shouldn't need the swap anyway.  And if your machine is swapping, that means you should probably buy more RAM.

Edit: BTW, that amount of output is fine for code blocks.... that is some nice use of code blocks... and some nice reading of the forum etiquette!

Last edited by WonderWoofy (2013-07-15 04:26:06)

Offline

#6 2013-07-15 17:59:19

TheGuyWithTheFace
Member
Registered: 2012-12-09
Posts: 113

Re: Arch fresh install boot hangs for a minute before login screen appears

Ok, I commented out the swap section of my fstab, and that definitely helped. My Boot time is now 45 seconds total counting the time for the bios to start. Muuch better. That being said, is this an ok boot time for a core duo at 2.5GHz? It still shows the aforementioned screen, but instead of being stuck there for a minute and a half, it just flickers a couple times over the course of 20 seconds or so before it goes to my display manager. Is that normal? Either way, thank you guys for your help!

Last edited by TheGuyWithTheFace (2013-07-15 18:00:02)

Offline

Board footer

Powered by FluxBB