Archlinux mkinitcpio p linux не работает

Arch Linux

You are not logged in.

#1 2010-11-10 00:47:15

[SOLVED]mkinitcpio command not found.

I receive the following when trying to rebuild the stock kernel:

The same error occurs even after the re-installation of ‘mkinitcpio’.

I’ve had the same problem with ‘hwdetect’, regardless of whether I’ve reinstalled it.

I seem to have commands that do not work on this system, like ‘shutdown’ for example.. ‘shutdown: command not found’. Perhaps I’ve missed installing a crucial package?

My sincerest thanks in advance.

Last edited by edward.taylor89 (2010-11-10 17:39:46)

‘The perfect blossom is a rare thing. You could spend your life looking for one, and it would not be a wasted life.’

#2 2010-11-10 00:50:29

Re: [SOLVED]mkinitcpio command not found.

What is the output of `pacman -Ql mkinitcpio`

#3 2010-11-10 00:53:16

Re: [SOLVED]mkinitcpio command not found.

Here as follows:

——————————————
mkinitcpio /etc/
mkinitcpio /etc/mkinitcpio.conf
mkinitcpio /etc/mkinitcpio.d/
mkinitcpio /etc/mkinitcpio.d/example.preset
mkinitcpio /lib/
mkinitcpio /lib/initcpio/
mkinitcpio /lib/initcpio/functions
mkinitcpio /lib/initcpio/hooks/
mkinitcpio /lib/initcpio/hooks/btrfs
mkinitcpio /lib/initcpio/hooks/consolefont
mkinitcpio /lib/initcpio/hooks/dmesg
mkinitcpio /lib/initcpio/hooks/keymap
mkinitcpio /lib/initcpio/hooks/memdisk
mkinitcpio /lib/initcpio/hooks/net
mkinitcpio /lib/initcpio/hooks/resume
mkinitcpio /lib/initcpio/hooks/sleep
mkinitcpio /lib/initcpio/hooks/udev
mkinitcpio /lib/initcpio/init
mkinitcpio /lib/initcpio/init_functions
mkinitcpio /lib/initcpio/install/
mkinitcpio /lib/initcpio/install/autodetect
mkinitcpio /lib/initcpio/install/base
mkinitcpio /lib/initcpio/install/btrfs
mkinitcpio /lib/initcpio/install/consolefont
mkinitcpio /lib/initcpio/install/dmesg
mkinitcpio /lib/initcpio/install/dsdt
mkinitcpio /lib/initcpio/install/filesystems
mkinitcpio /lib/initcpio/install/fw
mkinitcpio /lib/initcpio/install/ide
mkinitcpio /lib/initcpio/install/keymap
mkinitcpio /lib/initcpio/install/memdisk
mkinitcpio /lib/initcpio/install/net
mkinitcpio /lib/initcpio/install/pata
mkinitcpio /lib/initcpio/install/pcmcia
mkinitcpio /lib/initcpio/install/resume
mkinitcpio /lib/initcpio/install/sata
mkinitcpio /lib/initcpio/install/scsi
mkinitcpio /lib/initcpio/install/sleep
mkinitcpio /lib/initcpio/install/udev
mkinitcpio /lib/initcpio/install/usb
mkinitcpio /lib/initcpio/install/usbinput
mkinitcpio /lib/initcpio/udev/
mkinitcpio /lib/initcpio/udev/01-memdisk.rules
mkinitcpio /lib/initcpio/udev/load-modules.sh
mkinitcpio /sbin/
mkinitcpio /sbin/mkinitcpio
mkinitcpio /usr/
mkinitcpio /usr/share/
mkinitcpio /usr/share/man/
mkinitcpio /usr/share/man/man5/
mkinitcpio /usr/share/man/man5/mkinitcpio.5.gz

‘The perfect blossom is a rare thing. You could spend your life looking for one, and it would not be a wasted life.’

#4 2010-11-10 01:14:26

Re: [SOLVED]mkinitcpio command not found.

I /sbin in your PATH?

#5 2010-11-10 03:34:01

Re: [SOLVED]mkinitcpio command not found.

Definately sounds like a PATH issue. Usually normal users (non root) do not have /sbin or /usr/sbin on their path. The commands you mentioned are likely found in those directories.

#6 2010-11-10 04:49:29

Re: [SOLVED]mkinitcpio command not found.

Definately sounds like a PATH issue. Usually normal users (non root) do not have /sbin or /usr/sbin on their path. The commands you mentioned are likely found in those directories.

Really? I’m on a Fedora machine right now and /sbin is in my path. Could be different with Arch but I don’t have access to one right now to check.

#7 2010-11-10 13:42:24

Re: [SOLVED]mkinitcpio command not found.

I found ‘mkinitcpio’ within /sbin, however, it it a shell script. Is it supposed to be a shell script? When I execute the script after ‘cd /sbin’, nothing happens.

]$ cd /sbin
[taylor-unix@Legion sbin]$ mkinitcpio -p kernel26
bash: mkinitcpio: command not found
[taylor-unix@Legion sbin]$
——————————————

Читайте также:  Как увидеть реестр windows

I’d prefer to withdraw myself from simply reformatting / to reinstall arch, as this prevents me from learning new solutions to Arch-related issues.

hmm.. Would my fstab options affect the execution of scripts? I did remove ‘noexec’ from the

mount options for ‘make mrproper’ to work.. Perhaps I should also try removing ‘nosuid’ and see what happens.. I’ve included these options for

to include an extra layer of security — preventing nasty things like rootkits from running(I know this is GNU/Linux, but just in case. )

‘The perfect blossom is a rare thing. You could spend your life looking for one, and it would not be a wasted life.’

Источник

Arch Linux

You are not logged in.

#1 2012-09-16 07:12:27

[SOLVED]Grub-Install can’t Find Kernel and/or initrd, mkinitcpio Fails

I have recently installed Arch on my new build (with UEFI firmware). I successfully set up xorg, alsa/pulseaudio, xfce, etc. things were looking pretty good. Then, I tried to blacklist the pcspkr in order to silence the annoying beep every time I selected «Log Out» inside xfce. I executed

and was presented with the following errors:

There were no such files anywhere on /boot. I tried doing

and nothing was found. I wasn’t quite sure why that was happening, but I tried uninstalling/reinstall grub (grub-common and grub2-efi-x86_64). I installed grub to /boot using

and then generated /boot/grub/grub.cfg. I tried rebuilding the initramfs again but got the same error. I was tired and frustrated so I removed the old grub efi entry with

and then went to sleep.

I didn’t have the chance to turn the computer back on until tonight. I was then presented with a grub2 shell. Since I didn’t know where the kernel/initrd were located I tried

but grub told me

So that’s about it. It appears that grub-mkconfig is having trouble locating the kernel/initrd so it doesn’t make any entries, dropping me right into a shell. I’ve tried booting up with my installation USB and chrooting in and reinstalling grub again but nothing seems to work. So what I’d like to try to do is just boot up into my system and then modify add the grub boot entries entries I want. but I just can’t figure out what’s causing all these issues.

Sorry if I mess up any terminology. still learning the ropes here. Thanks for any input.

Last edited by cogeary (2012-09-17 05:35:51)

#2 2012-09-16 07:21:29

Re: [SOLVED]Grub-Install can’t Find Kernel and/or initrd, mkinitcpio Fails

Probably because you have a separate boot partition (not just the 512 MB «UEFISYS» FAT32 partition), which you forgot to mount (in fstab).

Post your /etc/fstab.

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

#3 2012-09-16 18:14:58

Re: [SOLVED]Grub-Install can’t Find Kernel and/or initrd, mkinitcpio Fails

Probably because you have a separate boot partition (not just the 512 MB «UEFISYS» FAT32 partition), which you forgot to mount (in fstab).

Post your /etc/fstab.

Thank you for your reply!

However, I do not have a separate boot partition apart from the «UEFISYS» partition. Here is my fstab:

When I first looked at the fstab I saw that both of the entries repeated themselves. This was because I had even tried reformatting /boot so I had to generate a new fstab, but for some reason I used «>> /mnt/etc/fstab» rather than «> . «
So I executed

Читайте также:  Оцифровка видеокассет mac os

and reinstalled grub, but still no difference. mkinitcpio fails and I reboot to a grub shell.

Last edited by cogeary (2012-09-16 18:15:51)

#4 2012-09-16 23:16:51

Re: [SOLVED]Grub-Install can’t Find Kernel and/or initrd, mkinitcpio Fails

So you have a combined EFI/boot partition? That is, you do have a separate /boot (separate from /) but it is identical to your EFI partition?

Do you know if that set up can work? That is, can grub use a /boot which is formatted as fat 32?

The usual set up, I think, is to mount the efi partition at /boot/efi. (Whether /boot is separate from / or not.)

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Corporation Wireless 8265 / 8275 | US keyboard with Euro | 512G NVMe INTEL SSDPEKKF512G7L

#5 2012-09-16 23:33:03

Re: [SOLVED]Grub-Install can’t Find Kernel and/or initrd, mkinitcpio Fails

So you have a combined EFI/boot partition? That is, you do have a separate /boot (separate from /) but it is identical to your EFI partition?

Do you know if that set up can work? That is, can grub use a /boot which is formatted as fat 32?

The usual set up, I think, is to mount the efi partition at /boot/efi. (Whether /boot is separate from / or not.)

Well, it worked for me for a day or so before I messed it all up.

Looking at the Arch documentation for grub-efi, I am seeing that mine is not the usual setup. However, I loosely followed a guide that installed grub on /boot, which was the EFI partition, so it seems that others have had it work that way.

I will probably try the «usual» setup and see how it goes, but since I’ve tried installing grub without success the same way I installed it will success originally, I don’t think that’s my problem.

Источник

[РЕШЕНО] Проблема с mkinitcpio (initramfs-linux.img) после неожиданного выключения

# 10 месяцев, 1 неделя назад (отредактировано 10 месяцев назад) Всем привет!
Как-то во время обновления через pacman (там было и ядро и другие пакеты linux-*) неожиданно вырубился ноутбук. Теперь после каждого обновления ядра мне приходится загружаться через флешку и выполнять команду:

# mkinitcpio -k … –generate /boot/initramfs-linux.img

blokpost
Что могло слететь и как это починить?

Прошу простить мне длительное отсутствие в теме..

vs220
sudo pacman -Syyu base linux linux-firmware

Выполнил. При очередном обновлении ядра не помогло. Сразу после обновления пришлось выполнить команду mkinitcpio.
Ошибок никаких не выдавалось.
/boot установлен на отдельном разделе. У меня /boot 500 мб ext2 (свободно достаточно), LVM и маленький раздел под Windows. Недавно перечитывал статью о GRUB и увидел, что отдельный раздел под /boot не рекомендуется. Не понял только почему?!
Касательно правильного монтирования не понял. Как это проверить? И как посмотреть какой путь в загрузчике? Если у меня GRUB, мне нужно посмотреть /boot/grub.grub.cfg?
Даже если это не поможет в связи с нижеизложенным — интересно понять эти моменты, на будущее.

А теперь добавлю. Попробовал установить ядро linux-zen и увидел, что создался файл /etc/mkinitcpio.d/linux-zen.preset со следующим содержимым:
увидел рядом пустой файл linux.preset, который если я правильно понимаю относится к обычной версии ядра. Может все дело в этом? Если изменить пустой файл и вставить такой конфиг:
ничего не поломается или хоть хуже не станет?
И допустим это поможет.. можно как-то систему заставить саму пересоздать файл?
или все это чушь и я не туда залез.

blokpost
И допустим это поможет.. можно как-то систему заставить саму пересоздать файл?

blokpost
И допустим это поможет.. можно как-то систему заставить саму пересоздать файл?

этот файл пустой в дефолте. если вдруг система установлена в uefi, то можно в чруте замутит efistub

Читайте также:  Вывести все процессы windows

Источник

Arch Linux

You are not logged in.

#1 2015-05-07 21:45:19

[SOLVED]mkinitcpio missing «radeon» hook on agp ati card

The kernel is currently using the radeon module:

When I generate an initramfs with the radeon hook added to /etc/mkinitcpio.conf I get this output:

==> ERROR: Hook ‘radeon’ cannot be found

Listing the hooks shows it to be similarly absent:

I’m not sure if this is relevant, but I pulled this from the troubleshooting section of the ati wiki:

AGP is disabled (with KMS)

If you experience poor performance and dmesg shows something like this

then check if the agp driver for your motherboard (e.g., via_agp, intel_agp etc.) is loaded before the radeon module, see Enabling KMS.

This is an older machine, and I am using an agp card. This is the currently loaded agp module:

ultimately, why am I trying to do this at all is to keep my consolefont from changing back to the default. This is a quote from the Fonts page in the wiki:

To use the specified font in early userspace, use the consolefont hook in /etc/mkinitcpio.conf. See Mkinitcpio#HOOKS for more information.

If the fonts seems to not change on boot, or change only temporarily, it is most likely that they got reset when graphics driver was initialized and console was switched to framebuffer. To avoid this, load your graphics driver earlier. See for example Kernel mode setting#Early KMS start, [2] or other ways to setup your framebuffer before /etc/vconsole.conf is applied.

If I can’t get the hooks issue resolved, I would be fine with using one of these «other ways» to setup my framebuffer before /etc/vconsole.conf is applied.

Thanks in advance for any help.

Last edited by mjtracy (2015-05-07 21:56:57)

Источник

Ошибки после обновления!

После обновления 11.07.18 при входе в систему получаю следующее сообщение:

[DEPEND] Dependency failed for /home
[DEPEND] Dependency failed for Local File Sistem

You are in emergency mode. After logging in, type «journalctl -xb» to view system logs, «system reboot» to reboot, «system default» or «exit» to boot into default mode.

при нажатии Ctrl + d начинается загрузка системы.
В логах ничего не нашел
Все работает исправно.
НО!!

Что это может быть? И как это можно исправить??
Предполагаю, что последнее обновление linux-lts «кривое» или криво встало, может я рукожоп.
Ребят не игнорьте, помогите плзззз.

dikoobraz
Предполагаю, что последнее обновление linux-lts «кривое» или криво встало

# 3 года, 3 месяца назад (отредактировано 3 года, 3 месяца назад)

dikoobraz
от рута запускаете mkinitcpio?

/home отдельно монтируется?

# 3 года, 3 месяца назад (отредактировано 3 года, 3 месяца назад)

indeviral
dikoobraz
от рута запускаете mkinitcpio?

/home отдельно монтируется?

Запустил от рута
Ошибок не выдал.
Перезагрузился. ошибок нет было.
Перезагрузился еще раз. опять получил
Откатился через Timeshift чуток назад. ошибок нет
Ставлю последние обновы, опять те же ошибки.

З.Ы. /home отдельно

# 3 года, 2 месяца назад (отредактировано 3 года, 2 месяца назад) Та же самая ситуация после обновления. Только не /home страдает, а другой раздел. Плюс иногда fstab не монтирует другой один раздел.

mkinitcpio -p linux ошибок не дает.
Проверка fsck этого раздела ошибок не дает.
Комментирование этого раздела в fstab решает проблему. Система грузится без emergency mode.

Источник

Оцените статью