You are not logged in.

#1 2015-06-01 23:31:13

lapubell
Member
Registered: 2015-05-14
Posts: 15

mkinitcpio hanging on kernel update

I'm getting the latest packages and I'm running into an issue where the image keeps hanging after I install the latest linux kernel.

$ sudo pacman -S linux
warning: linux-4.0.4-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) linux-4.0.4-2

Total Installed Size:  73.08 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring                                                     [###############################################] 100%
(1/1) checking package integrity                                                   [###############################################] 100%
(1/1) loading package files                                                        [###############################################] 100%
(1/1) checking for file conflicts                                                  [###############################################] 100%
(1/1) checking available disk space                                                [###############################################] 100%
(1/1) reinstalling linux                                                           [###############################################] 100%
>>> Updating module dependencies. Please wait ...
>>> Generating initial ramdisk, using mkinitcpio.  Please wait...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.0.4-2-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]

This is where it hangs. I let it sit for about 10 minutes when I did the full system upgrade, and then killed it when it looked like it wasn't doing anything. The output above is from the second time this has happened, and I'm not so sure I want to reboot without this getting built correctly.

Any ideas?

Offline

#2 2015-06-02 07:17:04

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: mkinitcpio hanging on kernel update

Is /boot on a separate partition and is it mounted?

Is your system fully updated otherwise?


Jin, Jîyan, Azadî

Offline

#3 2015-06-02 16:07:39

lapubell
Member
Registered: 2015-05-14
Posts: 15

Re: mkinitcpio hanging on kernel update

Yep.
/ is on /dev/sdb2 and
/home is on /dev/sdb3

Everything else is good to go and updated successfully.

I did try a reboot when I got impatient, and the thing won't boot. Next, I tried to roll back the kernel package with pacman following these instructions:
https://wiki.archlinux.org/index.php/Do … the_kernel

Didn't work. Got a few errors about MODULE files existing or something.

I'm now currently backing up my home folder onto a spare machine, but I haven't wiped the HDD yet. Got any ideas?

Offline

#4 2015-06-02 16:23:26

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: mkinitcpio hanging on kernel update

lapubell wrote:

Didn't work. Got a few errors about MODULE files existing or something.

Please post the actual error messages.

https://bbs.archlinux.org/viewtopic.php?id=57855


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2015-06-02 16:52:37

lapubell
Member
Registered: 2015-05-14
Posts: 15

Re: mkinitcpio hanging on kernel update

Sorry about that.

I definitly will post the actual error output once scp is done copying files. Probably another hour or so...

Offline

#6 2015-06-02 20:04:01

lapubell
Member
Registered: 2015-05-14
Posts: 15

Re: mkinitcpio hanging on kernel update

OK, I switched to the pacman package cache directory and ran pacman -U linux-4.0.1... linux-headers-4.0.1... (can't copy and paste from the busted machine, so know that I typed out the full package correctly)

Output:

(2/2) checking for file conflicts
error: failed to commit transaction (conflicting files)
linux: /usr/lib/modules/4.0.1-1-ARCH/modules.alias exists in filesystem
linux: /usr/lib/modules/4.0.1-1-ARCH/modules.alias.bin exists in filesystem
linux: /usr/lib/modules/4.0.1-1-ARCH/modules.builtin.bin exists in filesystem
linux: /usr/lib/modules/4.0.1-1-ARCH/modules.dep exists in filesystem
linux: /usr/lib/modules/4.0.1-1-ARCH/modules.dep.bin exists in filesystem
linux: /usr/lib/modules/4.0.1-1-ARCH/modules.devname exists in filesystem
linux: /usr/lib/modules/4.0.1-1-ARCH/modules.softdep exists in filesystem
linux: /usr/lib/modules/4.0.1-1-ARCH/modules.symbols exists in filesystem
linux: /usr/lib/modules/4.0.1-1-ARCH/modules.symbols.bin exists in filesystem

I figure these are the files created by the install process (built or moved, i dunno). Safe to remove?

I'm about to wipe the machine and start from scratch unless someone says otherwise.

Offline

#7 2015-06-02 20:17:20

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: mkinitcpio hanging on kernel update

That's a bit of an extreme response, I've not seen anything that would indicate that your install is borked beyond recovery.

Those errors are pacman's way of telling you that there's files that it doesn't know about, and you should do something about them because it wants to extract files over the top of them. See here to see how you should deal with them.

Fix that up, install the kernel, and see if mkinitcpio works this time.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#8 2015-06-02 20:23:32

lapubell
Member
Registered: 2015-05-14
Posts: 15

Re: mkinitcpio hanging on kernel update

Yep, that's what I did. I moved the 4.0.1... folder to 4.0.1...backup and mkinitcpio finished without a hitch. Rebooted and got to XFCE. YAY!

Just ran pacman -Syu again from the machine once it booted up and it brought me back to linux 4.0.4, this time with mkinitcpio finishing just fine. Rebooted one more time and I'm now running the 4.0.4 kernel.

Any idea why it wouldn't work before all this mess started up, and then started working correctly again? Makes me wonder if there are any diagnostic tools I can run to see my system's health.

I'm not going to start from scratch anymore, but I'd sleep better at night if I knew what this hiccup was all about.

Offline

#9 2015-06-02 20:36:50

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: mkinitcpio hanging on kernel update

It's hard to say, but since your pacman database was partly damaged (which is the usual cause of the 'exists in filesystem' errors), it's possible that you encountered a filesystem bug. Check the journal from around the time the mkinitcpio first hung -- see if there's anything of note. If there's anything that seems unusual, but you're not too sure of, post it here (in code tags) with plenty of context (i.e. 10 lines leading up to it, and 10 lines after it), and we can take a look at it.

If there's nothing of note in the journal, then I guess you'll just have to keep an eye out for any recurrences. If it does happen again, try running mkinitcpio in verbose mode, and see what it's hanging on specifically.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#10 2015-06-03 15:17:41

lapubell
Member
Registered: 2015-05-14
Posts: 15

Re: mkinitcpio hanging on kernel update

I'm not seeing anything in the logs that would make me think there is anything strange happening.

I was messing around with optirun and primusrun. Neither of those programs would draw a window and I'm wondering if it has to do with bumblebee or the nvidia driver. Does that sound like it could be an issue?

Offline

#11 2015-06-03 15:28:26

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: mkinitcpio hanging on kernel update

Were you doing anything with the actual kernel modules while mkinitcpio was running? Did you make any changes in /usr/lib/modules?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#12 2015-06-03 16:04:22

lapubell
Member
Registered: 2015-05-14
Posts: 15

Re: mkinitcpio hanging on kernel update

No, this was the only thing I had going. When I do the full sys upgrade I like to kill as many GUI programs as I can, to give my machine more ram and then any programs that were upgraded can use the new versions after the upgrade.

Offline

#13 2015-06-10 22:57:14

lapubell
Member
Registered: 2015-05-14
Posts: 15

Re: mkinitcpio hanging on kernel update

Well, I think we mark this thread as solved.

My latest update pulled in the 4.0.5 kernel and everything built fine. Thanks again for the help!

Offline

Board footer

Powered by FluxBB