I ran into the same problem and got stucked.
thank you for your sharing your answer, which saved me a lot time
Categories: PogoPlug Development
I have been trying to follow the instructions at http://www.nslu2-linux.org/wiki/Main/PlugComputers to install ipkg on my grey Pogoplug (Busybox 1.7). After that I intend to install MiniDLNA, but first things first. I have reached step 5 but when I try to run ipkg (alone or with any argument), I get a "Permission denied" error. The root drive is writable. I am logged in as root and the file has executable permissions. I rebooted the Pogoplug and still no luck. Nothing seems to be working to get ipkg to execute. Can anyone here tell me what is wrong?
Here is an SSH session that will probably answer a lot of questions people may have when considering this:
-bash-3.2# ls -l
drwxr-xr-x 2 root root 0 Nov 4 2009 bin
drwxr-xr-x 5 root root 0 Feb 26 2008 dev
drwxr-xr-x 5 root root 0 Oct 24 00:03 etc
drwxr-xr-x 2 root root 0 Nov 4 2009 lib
lrwxrwxrwx 1 root root 11 Nov 4 2009 linuxrc -> bin/busybox
drwxr-xr-x 2 root root 0 Dec 18 2008 mnt
drwxrwxrwx 7 root root 1024 Oct 24 00:15 opt
dr-xr-xr-x 43 root root 0 Jan 1 1970 proc
drwxr-xr-x 2 root root 0 Oct 24 00:17 root
drwxr-xr-x 2 root root 0 Nov 4 2009 sbin
drwxr-xr-x 10 root root 0 Jan 1 1970 sys
drwxrwxrwt 4 root root 120 Oct 24 13:23 tmp
drwxr-xr-x 7 root root 0 Jan 6 2009 usr
lrwxrwxrwx 1 root root 8 Nov 4 2009 var -> /tmp/var
-bash-3.2# mount
rootfs on / type rootfs (rw)
/dev/root on / type jffs2 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /tmp type tmpfs (rw)
none on /proc/bus/usb type usbfs (rw)
/tmp/.cemnt/sda1 on /tmp/.cemnt/mnt_sda1 type ufsd (rw,nosuid,nodev,noexec,noatime,uid=0,gid=0,fmask=22,dmask=22,nocase,sparse,force)
/tmp/.cemnt/sdb1 on /tmp/.cemnt/mnt_sdb1 type ext2 (rw,nosuid,nodev,noexec,noatime)
/tmp/.cemnt/sdb1 on /opt type ext2 (rw,nosuid,nodev,noexec,noatime)
-bash-3.2# echo $PATH
/opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin
-bash-3.2# cd opt
-bash-3.2# cd bin
-bash-3.2# ls -1
ipkg
ipkg-opt
nano
rnano
update-alternatives
wget
-bash-3.2# ls -l ipkg
-rwxr-xr-x 1 root root 3236 May 14 2010 ipkg
-bash-3.2# cd ..
-bash-3.2# cd etc
-bash-3.2# ls
ipkg ipkg.conf nanorc wgetrc
-bash-3.2# cat ipkg.conf
# Uncomment one of the following package feeds or resolve your arch
# by visiting http://ipkg.nslu2-linux.org/feeds/optware/
# src nslu2 http://ipkg.nslu2-linux.org/feeds/optware/nslu2/cross/stable
# src fsg3 http://ipkg.nslu2-linux.org/feeds/optware/fsg3/cross/stable
# src ddwrt http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable
# src xwrt http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable
# src whiterussian http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable
# src oleg http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable
# src ts72xx http://ipkg.nslu2-linux.org/feeds/optware/ts72xx/cross/stable
# src/gz openwrt-brcm24 http://ipkg.nslu2-linux.org/feeds/optware/openwrt-brcm24/cross/unstable
# src/gz openwrt-ixp4xx http://ipkg.nslu2-linux.org/feeds/optware/openwrt-ixp4xx/cross/unstable/
src cross http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable
dest root /opt
#option verbose-wget
#
# Proxy support:
#
#option http_proxy http://localhost:5865
#option ftp_proxy http://proxy.tld:3128
#option proxy_username <username>
#option proxy_password <password>
-bash-3.2# whoami
root
-bash-3.2# ipkg update
-bash: /opt/bin/ipkg: Permission denied
-bash-3.2# ipkg list
-bash: /opt/bin/ipkg: Permission denied
-bash-3.2# ipkg
-bash: /opt/bin/ipkg: Permission denied

RSS



I found the answer to this and wanted to post it for others who may run into the problem:
The issue was that I let the Pogoplug mount the USB drive on reboot (I'm not sure how to mount it manually -- "mount /dev/sdb1 /opt" and "mount /tmp/.cemnt/mnt_sdb1 /opt" don't work), and as shown in the SSH session above the Pogoplug was mounting the USB drive with the "noexec" option. I had to remount the USB drive with exec rights for the ipkg executable on the drive to be able to run ("mount -o exec,remount /tmp/.cemnt/mnt_sdb1").