I am trying to chroot into an old HD to change a forgotten password,
but chroot says permission denied? what gives? I am root! The harddrive I am trying to chroot into is an old version of edUbuntu 7.10 might that have anything to do with it?
root@h:~# chroot /media/usb0/
chroot: failed to run command `/bin/bash': Permission denied
Best Answer
Chroot in ubuntu or recovering Ubuntu,Debian Linux
boot from livecd of ubuntu, if you installed with system 32bit use 32bit Live CD, If 64bit use 64 bit live cd.
Mount the Linux Partitions using
Output:
Here my / Partition is /dev/sda6
Mount the / Partition to mount point using
Then Mount the linux access points, Linux devices, Proc, sys
Linux Device
proc system information
Kernel information to user space
If we need to enable the networking we need to do the following steps (Optional).
Change the Linux root to be the device we mounted earlier in step 2
Now try to change the root password it will work.