You are not logged in.

#1 2011-11-07 18:46:28

JJ.Eastwood
Member
Registered: 2011-05-26
Posts: 17

Chroot Problem: '/bin/bash': input/output error

Hi,

For some reason my laptop isn't booting, I'm getting a cannot read /sbin/init -- Kernel panic! issue and stuff online says to chroot and regenerate initramfs etc. But when I chroot I get the following error:

chroot: failed to run command '/bin/bash': Input/ouput error

I'm have /dev/sda1 as unencrypted boot partition and /dev/sda2 as an encrypted LVM with vgroup-root, vgroup-home, vgroup-swap and vgroup-swap.

Here is my process:

modprobe dm-mod
cryptsetup luksOpen /dev/sda2 lvm
vgscan
vgchange -ay
mount /dev/vgroup/root /mnt
mount /dev/vgroup/var /mnt/var
mount /dev/sda1 /mnt/boot
mount -o bind /dev /mnt/dev
mount -t proc none /mnt/proc
mount -t sysfs none /mnt/sysfs
chroot /mnt

And then I get the error.

I figure maybe I'm doing something wrong with the LVM thing. I also have /dev/wrapper/vgroup-{root,var,home} but I have tried those too and they don't work. Any ideas?

EDIT:

After running fsck on the partitions and fixing some disk errors, the error at boot has changed to:

switch_root: can't execute 'sbin/init': No such file or directory

The error when chrooted has also changed to the similar:

chroot: failed to run command '/bin/bash': No such file or directory

Both /sbin/init and /bin/bash are present on the drive, and seem to have correct size and permissions etc.

Last edited by JJ.Eastwood (2011-11-08 17:23:46)

Offline

Board footer

Powered by FluxBB