I have tried to use the short sequence of commands I found on the Arch doc's site to chroot into my rescue partition.
I am getting the error as in the post title
Code:
# cd /mnt/rescue
# mount -t proc proc proc/
# mount -t sysfs sys sys/
# mount -o bind /dev dev/
# mount -t devpts pts dev/pts/
# chroot . /bin/bash
My system is a complete slackware64-14.0 installed from scratch on /dev/sda. A few packages from sbo have been added :
aide/
celt051/
jdk/
kde/
kmymoney/
libalkimia/
libcacard/
libofx/
libreoffice/
pyparsing/
qemu-kvm/
sbopkg/
spice/
spice-protocol/
src2pkg/
usbredir/
using kernel 3.6.2 and PV's config from /testing
rescue is its own partition on /dev/sdb with a complete cherry slackware64-14.0 installed.
I was hoping to use the above sequence to use the 'upgradepkg' command to perform security updates on my rescue partition without rebooting.
As suggested by Didier-Spaier in a similiar post "Additionally you should use the "-o bind" option for all "mount" commands but AFAIK there is no need to mount devpts."
Code:
# mount -o bind /proc proc/
# mount -o bind /sys sys/
# mount -o bind /dev dev/
# chroot . /bin/bash
Also tried without /bin/bash
Also tried with bin/bash
same error "chroot: failed to run command '/bin/bash': Permission Denied"
'bash' exists and is executable
Code:
ls -l /mnt/rescue/bin/bash
-rwxr-xr-x 1 root root 986120 Aug 10 18:09 /mnt/rescue/bin/bash*
any suggestions would be appreciated
thanks
john