You are not logged in.

#1 2015-11-03 15:15:59

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Need to regenerate mkinitcpio file

I tried using the live disk, but it said "module not found" for a bunch of modules like hid-kye and hid-generic.  When i look at the mkinitcpio.conf file, my modules are empty.

Offline

#2 2015-11-03 15:19:12

frostschutz
Member
Registered: 2013-11-15
Posts: 1,421

Re: Need to regenerate mkinitcpio file

Did you chroot with bind-mounts for /dev /proc /sys? Which command(s) did you use?

Offline

#3 2015-11-03 15:24:54

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,899
Website

Re: Need to regenerate mkinitcpio file

Check your downloaded image passed the md5sum check, and make sure you're burning/creating it properly.

The mkinitcpio.conf file doesn't list any modules by default, and you don't need to worry about it when booting a liveCD anyway.

See https://projects.archlinux.org/mkinitcp … ?h=v18#n23


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

#4 2015-11-03 15:26:02

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Need to regenerate mkinitcpio file

mkswap /dev/sdxY
swapon /dev/sdxY
mount /dev/sdxY /mnt
mount /dev/sdxY /mnt/home
genfstab -U /mnt > /mnt/etc/fstab
mkinitcpio -p linux

Offline

#5 2015-11-03 15:27:21

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Need to regenerate mkinitcpio file

This was my original image I've used since 3/2013, so its worked before.

Offline

#6 2015-11-03 15:40:59

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,899
Website

Re: Need to regenerate mkinitcpio file

That doesn't mean it's still good now though. MD5 and SHA1 hashes are available here: https://www.archlinux.org/releng/releases/2013.03.01/

mkswap /dev/sdxY
swapon /dev/sdxY
mount /dev/sdxY /mnt
mount /dev/sdxY /mnt/home
genfstab -U /mnt > /mnt/etc/fstab
mkinitcpio -p linux

What is all this supposed to accomplish?


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

#7 2015-11-03 15:43:59

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Need to regenerate mkinitcpio file

I was having errors on boot, so I thought I'd regenerate the startup files and theoritically fix what was wrong.  My systemd-tempfiles-setup.service failed. I figured since my machine booted with a fallback image before the issues started, that regenerating the mkinitcpio would help.  I don't seem to have the image anymore that worked either.

Last edited by svalmont (2015-11-03 15:46:02)

Offline

#8 2015-11-03 19:26:57

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,899
Website

Re: Need to regenerate mkinitcpio file

I'm confused now. In your first post, you say you're having problems booting a liveCD, now you say you're having errors booting your system without using the fallback image. Which is it? Is it both?

If you're getting "module not found" errors while booting the liveCD, then the image is either corrupt, or there is a hardware (CD/CD drive/cables) problem.

If you're getting "module not found" errors while booting your actual installation, then it's more likely that your boot partition kernel, and root partition kernel modules have become desynchronised (i.e. your boot partition has kernel 4.2.4, but your root partition has modules for kernel 4.2.5). You don't mention mounting /boot in post #4 though, so could you confirm what your partition layout is? If you boot the fallback kernel, what is the output of

$ uname -a
$ pacman -Q linux

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

#9 2015-11-03 19:37:56

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Need to regenerate mkinitcpio file

2 separate issues.  Solving the boot issues was why I was trying to use mkinitcpio in the first place. 

"module not found" does not happen when I try to boot the liveCD, but when I run mkinitcpio -p linux after following the steps above.  "module not found" is an error from mkinitcpio, the liveCD boots just fine.

My partition layout is 3 partitions:
swap
root
home

My grub is stored on a different partition.

The fallback partition no longer boots.

Offline

#10 2015-11-03 19:53:02

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Need to regenerate mkinitcpio file

I think you might be on to something.  I checked the grub entry and it references linux 3.13, while I have 4.2 installed.  Boot folder also only contains references to 3.13.11 How do I resolve?

Last edited by svalmont (2015-11-03 19:58:02)

Offline

#11 2015-11-03 21:56:39

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Need to regenerate mkinitcpio file

svalmont wrote:

mkswap /dev/sdxY
swapon /dev/sdxY
mount /dev/sdxY /mnt
mount /dev/sdxY /mnt/home
genfstab -U /mnt > /mnt/etc/fstab
mkinitcpio -p linux

You're supposed to use `arch-chroot` before rebuilding the initramfs (as frostshutz said) -- did you do that?

Which guide are you following?

Also, how do you have kernel 3.13?

Please describe in much more detail your exact set up and which steps you have followed to this point (and why).

Read this: http://xyproblem.info/

Offline

#12 2015-11-03 22:13:52

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Need to regenerate mkinitcpio file

Yes.  Here is my latest attempt:

mount /dev/sdxY /mnt
cd /mnt/
mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/
mount -t devpts pts dev/pts/
chroot /mnt /bin/bash
ip link set eth0 up
dhcpcd eth0
pacman -Syyu mkinitcpio linux udev (which responds with a ton of "this file is already installed" messages) or mkinitcpio -p linux (which responds with /boot/vmlinuz-linux does not exist)

Not following a guide.

I had a partition that was working when I was on kernel 3.13.  I've upgraded (-Syu) a bit ago and now have linux 4.2.5-1, but I'm experiencing issues which I believe are caused by the .img files not being generated in the boot folder.

Offline

#13 2015-11-03 22:21:18

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Need to regenerate mkinitcpio file

svalmont wrote:

mount /dev/sdxY /mnt
cd /mnt/
mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/
mount -t devpts pts dev/pts/
chroot /mnt /bin/bash

You have to install the filesystem package (using `pacstrap`) before you can bind mount those folders.
EDIT: Sorry, you already have that installed, don't you?

Perhaps you should read a guide...
https://wiki.archlinux.org/index.php/Beginners%27_guide

EDIT: Why exactly are you trying to rebuild the initramfs?

It shouldn't usually be necessary.

Last edited by Head_on_a_Stick (2015-11-03 22:23:50)

Offline

#14 2015-11-03 22:24:58

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Need to regenerate mkinitcpio file

This isn't a new install.  Why would I need to install the filesystem package on an existing installation?  They seem to mount just fine.  Maybe I'm missing something, just trying to understand.

Offline

#15 2015-11-03 22:27:13

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Need to regenerate mkinitcpio file

Sorry, I beat your edit. smile  My img files stored on the boot are out of sync with what I have installed (3.13 vs 4.2.5-1).  Doesn't rebuilding initramfs regenerate that?  Also what I was going for with "pacman -Syyu mkinitcpio linux udev" as well
.

Offline

#16 2015-11-03 22:36:06

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Need to regenerate mkinitcpio file

svalmont wrote:

My img files stored on the boot are out of sync with what I have installed (3.13 vs 4.2.5-1).  Doesn't rebuilding initramfs regenerate that?

How do you know which kernel versions they are?

The Arch kernel image is always called "vmlinuz-linux" regardless of the version.

What is the output of:

lsblk -f
ls /boot

Offline

#17 2015-11-03 22:41:08

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Need to regenerate mkinitcpio file

My 3 partitions are
Swap
Root
Home

ls /boot = initramfs-3.13.11img   initramfs-linux-fallback.img    initramfs-linux.img    System-3.13.11.map    System.map    vmlinuz    vmlinuz-3.13.11

Offline

#18 2015-11-03 22:54:46

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Need to regenerate mkinitcpio file

Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#19 2015-11-03 22:59:14

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Need to regenerate mkinitcpio file

svalmont wrote:

vmlinuz    vmlinuz-3.13.11

How did you install these?

Those don't look like Arch kernel images to me.

Debian uses system.map files in /boot but Arch doesn't (AFAIK).

Offline

#20 2015-11-03 23:25:34

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Need to regenerate mkinitcpio file

I do believe I used pacman around when that kernel was new.

Offline

#21 2015-11-04 11:10:02

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,899
Website

Re: Need to regenerate mkinitcpio file

That was a very odd response. No official Arch kernel has had that sort of naming convention, and that kernel version was released about a year and a half ago. Have you not updated since then?

My grub is stored on a different partition

I don't use grub, but usually your kernels are stored on the same partition as the boot loader. Are there any kernels on this grub partition? Do you have any other partitions on your machine?


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

#22 2015-11-04 13:39:43

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Need to regenerate mkinitcpio file

I thought I remembered having to update the kernel once manually for a security patch.  It was probably around that time.  My guess is it's "stuck" since then.  Especially if that wasn't an official Arch release.  name -a gives my 4.2.5-1, while my image is still 3.13.

You are correct, the files .img etc, shown above in my /boot directory are what updates the files.  Perhaps I delete the .map files? Or maybe all the files in the /boot directory and reinstall linux? 

I do have an ElementaryOS partition on my machine and a Windows 7 which I haven't touched much.

Offline

#23 2015-11-04 19:36:16

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: Need to regenerate mkinitcpio file

Re-installing the linux package and GRUB and re-generating the bootloader configuration file should work.

It's all very strange though -- it looks like the Elementary files have "leaked" into your Arch system hmm

Are any parts of your Elementary system mounted to your Arch partitions?

Offline

#24 2015-11-04 19:39:59

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Need to regenerate mkinitcpio file

No complete separate partitions with the exception of swap.

Offline

#25 2015-11-05 15:00:43

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Need to regenerate mkinitcpio file

Okay, so I've tried removing all the files on /boot.
I've tried pacman -S linux (will not install because 100's of duplicate files)
pacstrap -i base base-devel (same)
pacman -S linux-ltr (same)
pacman -Rs linux (says it couldn't find)

How do I re-install linux?

Offline

Board footer

Powered by FluxBB