You are not logged in.

#1 2012-07-28 07:35:08

Nolhian
Member
Registered: 2011-08-21
Posts: 25

[SOLVED]kexec into arch fails : root device not found

Hello,

I have a fresh arch install with only base, base-devel and openssh.
I boot on penbuntu, at this point I can see my devices in /dev.
Then I mount my root arch partition on /mnt/rootfs and do :

kexec --load /mnt/rootfs/boot/vmlinuz-linux --initrd=/mnt/rootfs/boot/initramfs-linux.img --command-line="root=/dev/sda3 ro vesa video=vesafb"

which returns :

 setup_linux_vesafb: 1280x720x32 @ 10028000 +708000

I then do kexec -e, It seems to start loading the kernel since the screen is cleared and each time it does

[0.845500] i8042: No controller found
:: running early hook [udev]
:: running hook [udev]
:: Triggering uevents...
Waiting 10 seconds for device /dev/sda3 ...
ERROR: device '/dev/sda3' not found. Skipping fsck.
ERROR: Unable to find root device '/dev/sda3' /
You are being dropped to a recovery shell
Type 'exit' to try and continue booting
sh: can't access tty: job control turned off
[rootfs /]#

I tried everything as root in the kexec --command-line, root=LABEL, root=UUID but it always do exactly the same thing, waits for 10s for device and then ERROR and drops to the recovery shell.

Any idea of what's going on ? Why can't it see devices ?

EDIT : If that can help, the kernel from which I am kexecing is 2.6.24.3 and If I try to just chroot I notice :

mount -t proc proc proc/
mount -t sysfs sys sys/

Works but when I :

mount -o bind /dev dev/

It returns :

mount: mounting /dev on dev/ failed: Invalid argument

So somehow I think when the kernel loads it has trouble passing the /dev along and therefore sees no devices. But I still can't figure out what to do.

Thanks in advance wink

Last edited by Nolhian (2012-07-28 17:47:30)

Offline

#2 2012-07-28 08:05:47

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [SOLVED]kexec into arch fails : root device not found

Why didn't you try the method given in the wiki?

I use kexec daemon and it works.

Offline

#3 2012-07-28 08:33:01

Nolhian
Member
Registered: 2011-08-21
Posts: 25

Re: [SOLVED]kexec into arch fails : root device not found

I can't because I'm booting on penbuntu and not arch linux. Anyways the command used in the wiki is similar to the one I'm using.

Offline

#4 2012-07-28 17:46:39

Nolhian
Member
Registered: 2011-08-21
Posts: 25

Re: [SOLVED]kexec into arch fails : root device not found

Solved, had to put usb in the hooks in mkinitcpio.conf.

Offline

Board footer

Powered by FluxBB