View Single Post
Posts: 249 | Thanked: 47 times | Joined on Apr 2010
#167
Originally Posted by anthonie View Post
Hmm. Out of curiosity I tried

cd /home/user/ubuntu
./chrootubuntu /home/user/MyDocs/specific-image-name-because-i-have-more-than-one.

As expected I get the message chroot is not supposed to handle that file.

Code:
 Everything set up, running chroot...
chroot: cannot execute /home/user/MyDocs/ubuntu-m5-v1.img.ext2: Permission denied
~/ubuntu $
Why donīt you simply edit the ubuntu file and change the image location there?

Edit: confirmed

I just moved the ubuntu image with the standard file manager to my sd card, changed the location in /ubuntu/chrootubuntu and it works without problems at first sight.
I followed everything in page 1 until :

./ubuntu

then i got this error

Code:
./ubuntu: line 9: /media/mmc1/ubuntu/chrootubuntu: Permission denied
./ubuntu: line 12: /media/mmc1/ubuntu/chrootubuntu: Permission denied
I tried to
chmod +x /media/mmc1/ubuntu/chrootubuntu and
chmod 777 /media/mmc1/ubuntu/chrootubuntu

But i still got the same error, i suspect this has something to do with the modificated "chrootubuntu" file

So here's mine :

Code:
if [ "x$UBUNTUIMG" = "x" ] ; then
  UBUNTUIMG="`ls -1 /media/mmc1/ubuntu*.img* | head -1`"
fi

if [ "x$UBUNTUCHROOT" = "x" ] ; then
  UBUNTUCHROOT="/.ubuntu"
fi

if [ ! -d "$UBUNTUCHROOT" ] ; then
  sudo mkdir $UBUNTUCHROOT
fi

sudo qchroot $UBUNTUIMG $UBUNTUCHROOT "$@"
Did i make a mistake somewhere?

Last edited by deny_winarto; 2010-12-09 at 09:08.