[CentOS] chroot question - can you help?

John R Pierce pierce at hogranch.com
Sat Nov 7 18:12:44 UTC 2009


adrian kok wrote:
> Hi 
>
>
> I install new linux in sda and try to recover the boot partition in sdb
>
> I mount it /dev/sdb1 /bootpartion
>
> but I can't chroot into it and grub-install
>
> Can you help
>
> [root at host ~]# chroot /bootpartion
>
> chroot: cannot run command `/bin/bash': No such file or directory
>   


was the system you're recovering built with a /boot and a seperate / ?  
thats not uncommon.

if thats the case,     mount /dev/sdb2 /bootpartition && mount /dev/sdb1 
/bootpartition/boot
then try the chroot again.  (I'm assuming /dev/sdb2 was the root and 
sdb1 was the /boot)




More information about the CentOS mailing list