My system takes ages to boot, especially to log in. I'm not sure how I should go about the problem - I can't use Ubuntu like that.
Here are the relevant parts from
dmesg -d
:[ 15.997008 < 2.347582>] Adding 16062460k swap on /dev/sdc5. Priority:-1 extents:1 across:16062460k FS [ 20.466801 < 4.469793>] IPv6: ADDRCONF(NETDEV_UP): wlx74da387e95a8: link is not ready [ 20.478821 < 0.012020>] IPv6: ADDRCONF(NETDEV_UP): wlx74da387e95a8: link is not ready [ 21.020986 < 0.542165>] IPv6: ADDRCONF(NETDEV_UP): wlx74da387e95a8: link is not ready [ 37.437661 < 16.416675>] wlx74da387e95a8: authenticate with e8:74:e6:09:de:69
and
[ 112.496226 < 75.016139>] usb 1-1.3: rtl8xxxu_ampdu_action: IEEE80211_AMPDU_RX_START
The latter is the driver of my Wirelesss stick, the Edimax EW-7811Un running on RTL8188Cu. The driver isn't original, I had to manually install it and replace the original one in order for the stick to work properly.
Here's my systemd plot:
Time my system needs for startup, measured with a phone:
- 30s for bootup, as indicated in the bootchart
- 2 minutes 10 seconds for login and opening of terminal using Ctrl+Alt+T
Maybe there is a problem with my harddrive - or my
/home
partition specifically. When logging in, Ubuntu behaves as if the loading process was very slow: I first see my background for a long time, then unity appears but is unreactive for a bit - then my launcher takes a while to load and finally the first application I launch takes a while as well. After that everything works with quite a decent speed though, as if it cached the files - I don't know enough about Linux to speculate about that though. Notice that the mounting of my/home
-partition takes up most of the time of the booting process by far.
About my file system: Myroot
is an 500GBExt4
partition. I then have a sepearteNTSF
partition on the same harddrive for the/home
directory.Root
,/home
andSwap
are all on the same harddrive.- I created a new account to see if it takes a long time to log in as well. It doesn't. Neither does logging in from the virtual terminals.
- Resetting unity using
dconf reset -f /org/compiz
and thensetsid unity
doesn't change anything either.
~/.profile
,~/.xsession
,~/.xsessionrc
,~/.xinitrc
, and~/.config/autostart/
. You can rename them temporarily. You could also try a different desktop session type, e. g. Gnome, Xfce or LXDE (you can install them and later remove them with Apt). – David Foerster Oct 09 '16 at 18:06~/.config/autostart
existed, though. After a quick look into that folder I found that "shutter", the screenshot-tool, was still in there even though I had set it to not start at boot time. It already made problems back then. So removing that out of the folder brought down log-in time from 2 minutes to 40 seconds, yay! Though e.g. Chromium still needs like 1:30 minutes to load, do you have any suggestions on that? Windows runs way faster on the same machine. – Nearoo Oct 14 '16 at 22:16