Using PB a lot for a month: really smart (involving teachers in italy: here and here).
Yesterday wanted to add some mods:
At first I made it wrong by creating the Upload directory in the wrong place, but then I put it in /mnt/usb/PirateBox, but the problem remained: the wireless network is there - all devices sees it, DHCP lease was correct - but the PB home was not reachable.
Basically, what I see:
I would like to understand what's going on and, if possible solve in a more clever way than, eventually, reinstalling - with mtd write -r openwrt<TAB> firmware (correct?)
Here the output, that I compared with your example
Yesterday wanted to add some mods:
- [*] RESET_CHAT="no" -> ok
[*] UPLOADFOLDER="$SHARE_FOLDER/Upload" -> troubles began
At first I made it wrong by creating the Upload directory in the wrong place, but then I put it in /mnt/usb/PirateBox, but the problem remained: the wireless network is there - all devices sees it, DHCP lease was correct - but the PB home was not reachable.
Basically, what I see:
- [*] dmesg tells about difficulties in mounting EXT4-fs
[*] ps: no python is running
[*] ps: no lighttpd
I would like to understand what's going on and, if possible solve in a more clever way than, eventually, reinstalling - with mtd write -r openwrt<TAB> firmware (correct?)
Here the output, that I compared with your example
*** mount *** rootfs on / type rootfs (rw) /dev/root on /rom type squashfs (ro,relatime) proc on /proc type proc (rw,noatime) sysfs on /sys type sysfs (rw,noatime) tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime) tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755) devpts on /dev/pts type devpts (rw,noatime,mode=600) /dev/mtdblock3 on /overlay type jffs2 (rw,noatime) overlayfs:/overlay on / type overlayfs (rw,relatime,lowerdir=/,upperdir=/overlay) debugfs on /sys/kernel/debug type debugfs (rw,relatime) /dev/sda1 on /mnt/usb type vfat (rw,sync,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro) /dev/loop0 on /mnt/ext type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered) /dev/loop1 on /opt/piratebox type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered) none on /proc/bus/usb type usbfs (rw,relatime) *** ls -la /mnt/ *** drwxr-xr-x 1 root root 0 Jan 1 00:01 . drwxr-xr-x 1 root root 0 Jan 1 00:00 .. drwxr-xr-x 4 root root 1024 May 29 2014 ext drwxrwxrwx 11 root root 16384 Jan 1 00:00 usb *** ls -la /mnt/usb (yes, I have other stuff there, but it did not create problems till now...) *** drwxrwxrwx 11 root root 16384 Jan 1 00:00 . drwxr-xr-x 1 root root 0 Jan 1 00:01 .. drwxrwxrwx 4 root root 16384 Apr 27 2014 .Spotlight-V100 drwxrwxrwx 4 root root 16384 Jun 8 2014 .Trash-1000 drwxrwxrwx 2 root root 16384 Apr 27 2014 .Trashes -rwxrwxrwx 1 root root 4096 Apr 27 2014 ._.Trashes -rwxrwxrwx 1 root root 4096 May 25 2014 ._video ISIA drwxrwxrwx 2 root root 16384 Apr 27 2014 142704_pollock drwxrwxrwx 5 root root 16384 Jan 1 1980 PirateBox -rwxrwxrwx 1 root root 216148461 Jan 1 1980 PirateBox.tgz drwxrwxrwx 2 root root 16384 Jan 1 00:06 debug drwxrwxrwx 12 root root 16384 Jan 1 1980 etc drwxrwxrwx 2 root root 16384 Jan 1 1980 external_fs drwxrwxrwx 3 root root 16384 Jan 1 1980 install -rwxrwxrwx 1 root root 50925 Jan 1 1980 install.log -rwxrwxrwx 1 root root 3932160 Jun 6 2014 openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin *** ls -la /mnt/usb/PirateBox *** drwxrwxrwx 5 root root 16384 Jan 1 1980 . drwxrwxrwx 11 root root 16384 Jan 1 00:00 .. drwxrwxrwx 6 root root 16384 Jan 1 1980 Shared drwxrwxrwx 11 root root 16384 Jan 1 1980 board -rwxrwxrwx 1 root root 156504 Jan 1 1980 cerco-messaggio -rwxrwxrwx 1 root root 4876 Jan 1 1980 index-da-opt-piratebox-www.html -rwxrwxrwx 1 root root 4554 Jun 9 2014 index.html -rwxrwxrwx 1 root root 52428800 Jan 1 00:00 pbIMG_ws.img drwxrwxrwx 2 root root 16384 Jan 1 1980 tmp *** ls -la /opt/piratebox *** drwxr-xr-x 10 root root 1024 Jan 1 00:00 . drwxr-xr-x 3 root root 0 Jan 1 00:04 .. drwxr-xr-x 3 root root 1024 May 29 2014 bin drwxr-xr-x 3 root root 1024 Jan 1 00:00 conf drwxr-xr-x 2 root root 1024 May 29 2014 init.d drwx------ 2 root root 12288 Jan 16 2014 lost+found drwxr-xr-x 2 root root 1024 Jan 1 00:02 python_lib lrwxrwxrwx 1 root root 18 Jan 1 00:00 share -> /mnt/usb/PirateBox drwxr-xr-x 2 root root 1024 Jan 1 00:02 src drwxr-xr-x 2 nobody nogroup 1024 Jan 1 00:00 tmp -rw-r--r-- 1 root root 19 May 29 2014 version drwxr-xr-x 4 nobody nogroup 1024 Jan 1 00:02 www *** ls -la /opt/piratebox/www *** drwxr-xr-x 4 nobody nogroup 1024 Jan 1 00:02 . drwxr-xr-x 10 root root 1024 Jan 1 00:00 .. -rwxr-xr-x 1 nobody nogroup 1458 May 29 2014 .READ.ME.htm lrwxrwxrwx 1 root root 27 Jan 1 00:04 Shared -> /opt/piratebox/share/Shared lrwxrwxrwx 1 root root 26 Jan 1 00:04 board -> /opt/piratebox/share/board drwxr-xr-x 2 nobody nogroup 1024 May 29 2014 cgi-bin -rw-r--r-- 1 nobody nogroup 810 Jan 1 00:00 chat_content.html -rwxr-xr-x 1 nobody nogroup 1406 May 29 2014 favicon.ico -rwxr-xr-x 1 nobody nogroup 254 Jan 1 00:04 forum.html -rwxr-xr-x 1 nobody nogroup 4876 Jan 1 00:16 index.html -rw-r--r-- 1 nobody nogroup 3773 Jan 1 00:08 index.html.bak -rw-r--r-- 1 nobody nogroup 4416 Jan 1 1970 index.html.ita.bak -rwxr-xr-x 1 nobody nogroup 94840 May 29 2014 jquery.min.js drwxr-xr-x 3 nobody nogroup 1024 May 29 2014 library -rw-r--r-- nogroup 2992 May 29 2014 menu.png -rw-r--r-- 1 nobody nogroup 15 May 29 2014 ncsi.txt -rw-r--r-- 1 nobody nogroup 6607 May 29 2014 piratebox-logo-horizontal-white.png -rwxr-xr-x 1 nobody nogroup 12637 May 29 2014 piratebox-logo-small.png -rwxr-xr-x 1 nobody nogroup 201 Jan 1 1970 redirect.html -rwxr-xr-x 1 nobody nogroup 3715 May 29 2014 scripts.js -rw-r--r-- 1 nobody nogroup 5056 May 29 2014 style.css *** cat /opt/piratebox/version *** piratebox-ws_1.0.0 *** cat /etc/config/network *** config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option ifname 'eth0' option type 'bridge' option proto 'static' option ipaddr '192.168.1.1' option netmask '255.255.255.0' *** cat /etc/config/wireless *** config wifi-device 'radio0' option type 'mac80211' option channel '11' option hwmode '11ng' option macaddr '10:fe:ed:4c:c7:52' option htmode 'HT20' list ht_capab 'SHORT-GI-20' list ht_capab 'SHORT-GI-40' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option disabled '0' config wifi-iface option device 'radio0' option network 'lan' option mode 'ap' option encryption 'none' option ssid 'PirateBox - Share Freely' *** cat /etc/openwrt_release *** DISTRIB_ID="OpenWrt_backports" DISTRIB_RELEASE="12.09.2" DISTRIB_REVISION="r40431" DISTRIB_CODENAME="attitude_adjustment" DISTRIB_TARGET="ar71xx/generic" DISTRIB_DESCRIPTION="OpenWrt_backports Attitude Adjustment 12.09.2" DISTRIB_BACKPORT="V0.2" *** cat /etc/pbx_custom_image *** PBX_auto_Image_2.1 *** dmesg | tail -n 20 *** [ 35.140000] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null) [ 35.300000] EXT4-fs (loop1): couldn't mount as ext3 due to feature incompatibilities [ 35.310000] EXT4-fs (loop1): couldn't mount as ext2 due to feature incompatibilities [ 35.340000] EXT4-fs (loop1): mounted filesystem with ordered data mode. Opts: (null) [ 36.950000] ADDRCONF(NETDEV_UP): eth0: link is not ready [ 36.950000] device eth0 entered promiscuous mode [ 36.960000] ADDRCONF(NETDEV_UP): br-lan: link is not ready [ 37.410000] eth0: link up (100Mbps/Full duplex) [ 37.410000] br-lan: port 1(eth0) entered forwarding state [ 37.420000] br-lan: port 1(eth0) entered forwarding state [ 37.420000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 37.450000] ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready [ 39.420000] br-lan: port 1(eth0) entered forwarding state [ 44.010000] ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 44.010000] device wlan0 entered promiscuous mode [ 44.030000] br-lan: port 2(wlan0) entered forwarding state [ 44.040000] br-lan: port 2(wlan0) entered forwarding state [ 44.040000] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 46.040000] br-lan: port 2(wlan0) entered forwarding state [ 47.590000] Adding 32764k swap on /mnt/usb/external_fs/OpenWRT.swap. Priority:-1 extents:1 across:32764k *** ps *** PID USER VSZ STAT COMMAND 1 root 1504 S init 2 root 0 SW [kthreadd] 3 root 0 SW [ksoftirqd/0] 5 root 0 SW [kworker/u:0] 6 root 0 SW< [khelper] 63 root 0 SW [sync_supers] 65 root 0 SW [bdi-default] 67 root 0 SW< [kblockd] 96 root 0 SW [kswapd0] 144 root 0 SW [fsnotify_mark] 173 root 0 SW< [ath79-spi] 184 root 0 SW [mtdblock0] 189 root 0 SW [mtdblock1] 194 root 0 SW [mtdblock2] 199 root 0 SW [mtdblock3] 204 root 0 SW [mtdblock4] 209 root 0 SW [mtdblock5] 250 root 0 SW [kworker/0:1] 390 root 0 SW [kworker/0:2] 442 root 0 SWN [jffs2_gcd_mtd3] 472 root 0 SW [khubd] 481 root 0 SW [scsi_eh_0] 482 root 0 SW [usb-storage] 483 root 0 SW [kworker/u:2] 507 root 1504 S init 540 root 0 SW< [cfg80211] 615 root 0 SW< [bat_events] 642 root 1508 S /sbin/syslogd -C16 644 root 1488 S /sbin/klogd 646 root 872 S /sbin/hotplug2 --override --persistent --set-rules-file /etc/hotplug2.rules --set-coldplug-cmd /sbin/u 654 root 872 S /sbin/ubusd 725 root 0 SW< [loop0] 730 root 0 SW [jbd2/loop0-8] 731 root 0 SW< [ext4-dio-unwrit] 751 root 0 SW< [loop1] 756 root 0 SW [jbd2/loop1-8] 757 root 0 SW< [ext4-dio-unwrit] 762 root 1468 S /sbin/netifd 931 root 0 SW [flush-8:0] 1206 root 1640 S hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostapd-phy0.conf 1354 root 1500 S /sbin/watchdog -t 5 /dev/watchdog 1467 root 1152 S /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22 1505 nobody 956 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf 1522 root 1500 S /usr/sbin/ntpd -n -p 0.openwrt.pool.ntp.org -p 1.openwrt.pool.ntp.org -p 2.openwrt.pool.ntp.org -p 3.o 1523 root 1220 S /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22 1524 root 1524 S -ash 1573 root 1496 R ps