You are not logged in.
Pages: 1
I am chrooted into arch filesystem, trying to prepar kernel booted from usb. After
mkinitcpio -k 2.6.30-ARCH
I am getting:
FATAL: Hook 'base' can not be found.
What can be wrong?
Last edited by marwooj (2009-08-24 18:08:38)
Offline
What does
ls /lib/initcpio/install/base
return?
Offline
What does
ls /lib/initcpio/install/base
return?
-rw-r--r-- 1 root root 1114 Jul 19 16:18 /lib/initcpio/install/base
Offline
When are you getting the FATAL message? During the running of mkinitcpio or during boot-up?
I'm not aware of why this should improve things, but have you tried:
sudo mkinitcpio -p kernel26
Offline
I am chrooting from ubuntu into arch filesystem
marwooj@host:~$ sudo chroot /media/disk/ bash
[sudo] password for marwooj:
bash-4.0# sudo mkinitcpio -p kernel26
bash: sudo: command not found
bash-4.0# mkinitcpio -p kernel26
==> Building image "default"
==> Running command: /sbin/mkinitcpio -k 2.6.30-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
:: Begin build
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 134: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 134: /dev/null: Permission denied
/sbin/mkinitcpio: line 253: /dev/null: Permission denied
FATAL: Hook 'base' can not be found.
==> FAIL
==> Building image "fallback"
==> Running command: /sbin/mkinitcpio -k 2.6.30-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26-fallback.img -S autodetect
:: Begin build
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 134: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 61: /dev/null: Permission denied
/lib/initcpio/functions: line 134: /dev/null: Permission denied
/sbin/mkinitcpio: line 253: /dev/null: Permission denied
FATAL: Hook 'base' can not be found.
==> FAIL
bash-4.0# who
who whoami
bash-4.0# whoami
root
bash-4.0#
Offline
you have that error because you didn't mounted /dev . see wiki.
Give what you have. To someone, it may be better than you dare to think.
Offline
mount -t proc none /arch/proc
mount -o bind /dev /arch/dev
mount -o bind /sys /arch/sys
chroot /arch /bin/bash
works fine now
Why it is needed?
can not till booting
Offline
not booting in virtual box :-(
Offline
This is how I've learned to chroot:
mount -t proc none /arch/proc
mount -o bind /dev /arch/dev
mount -t sysfs none /sys /arch/sys
chroot /arch /bin/bash
That is, I mount a new sysfs, not just binding the old one. (At least some places on the wiki, concerning how to reinstall grub, say to do it this way.) Does that make a difference?
Offline
never mind works fine on real hardware
Offline
Pages: 1