You are not logged in.

#1 2011-08-23 14:57:59

PSW
Member
From: Brighton
Registered: 2011-06-15
Posts: 32

[SOLVED] Error compiling initrd image with USB support.

I'm trying to install Arch on a USB and need to add support to the initrd image as stated in the relevant documentation. However when running mkinitcpio I get the following error:

==> Building image from preset: 'default'
-> -k /boot/vmlinuz -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
/sbin/mkinitcpio: line 86: /dev/fd/62: No such file or directory
==> ERROR: invalid kernel specifier: '/boot/vmlinuz-linux'

Does anyone know what the problem may be?

EDIT: Looking in /dev I only have three files. console, null, and zero. This doesn't seem right.

Last edited by PSW (2011-08-24 08:42:22)

Offline

#2 2011-08-23 17:46:20

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Error compiling initrd image with USB support.

mkinitcpio needs to refuse to run without /dev mounted to avoid errors like this.

mount -t devtmpfs devtmpfs /dev

Last edited by falconindy (2011-08-23 17:47:01)

Offline

#3 2011-08-24 08:42:06

PSW
Member
From: Brighton
Registered: 2011-06-15
Posts: 32

Re: [SOLVED] Error compiling initrd image with USB support.

falconindy wrote:

mkinitcpio needs to refuse to run without /dev mounted to avoid errors like this.

mount -t devtmpfs devtmpfs /dev

Thanks falconindy, works great now.

Offline

Board footer

Powered by FluxBB