chroot: failed to run command '/bin/bash': Permission denied
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 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/ 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 thanks john |
http://docs.slackware.com/howtos:sla...oot_from_media
Does that wiki page describe what you're looking for? |
Is the rescue partition mounted 'noexec' ?
|
Quote:
Code:
/dev/sdb2 /mnt/rescue ext4 noauto,noatime,users,rw 1 2 Quote:
Code:
mount -o bind /dev /mnt/rescue/dev Thanks for the suggestions, but no cigar. John |
From mount's manpage, regarding the 'users' option in fstab:
Quote:
|
Quote:
Adding 'exec' after 'users' in fstab did the trick in conjunction with '-o bind' actually I changed the whole stanza Code:
/dev/sdb2 /mnt/rescue ext4 defaults 1 2 Why didn't I know that. John |
All times are GMT -5. The time now is 04:49 PM. |