Piratebox installation issue

Posted by Robert 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
Piratebox installation issue
April 26, 2018 09:15PM
Hi, I'm new to the community and upon stumbling on this project, I decided to try it. I'm using a TL-MR3020 and a DataTraveler 100G3 8Gb USB stick. I can't seem to get it to finish the install. I formatted the USB stick with Rufus as FAT32. I was able to telnet and set time saver and password, after that I SSH into it with PuTTY. The MR3020 sits with all the LED lights on and the ethernet light flickers while accessing it. If I unplug the ethernet cable, the lights remain on for the exception of the ethernet LED. I ran the troubleshooting procedures and logged the output of the various commands. Any insight? I would really like to have this work. I apologize if I didn't post this on here correctly. Thank you.

--------------------------------------------------------------------------------------------------------------------------------------------------------
root@OpenWrt:~# 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,size=14592k)
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)
none on /proc/bus/usb type usbfs (rw,relatime)


root@OpenWrt:~# ls -la /mnt/
drwxr-xr-x 1 root root 0 Jan 1 00:00 .
drwxr-xr-x 1 root root 0 Jan 1 00:00 ..
drwxr-xr-x 2 root root 0 Jan 1 00:00 usb


root@OpenWrt:~# ls -la /mnt/usb
drwxr-xr-x 2 root root 0 Jan 1 00:00 .
drwxr-xr-x 1 root root 0 Jan 1 00:00 ..
-rw-r--r-- 1 root root 3806 Jan 1 00:00 install.log


root@OpenWrt:~# ls -la /mnt/usb/piratebox
ls: /mnt/usb/piratebox: No such file or directory


root@OpenWrt:~# ls -la /mnt/install
ls: /mnt/install: No such file or directory


root@OpenWrt:~# ls -la /opt/piratebox
ls: /opt/piratebox: No such file or directory


root@OpenWrt:~# ls -la /opt/piratebox/www
ls: /opt/piratebox/www: No such file or directory


root@OpenWrt:~# cat /etc/pbx_custom_image
PBX_auto_Image_2.3.2


root@OpenWrt:~# cat /etc/openwrt_release
DISTRIB_ID="OpenWrt_backports"
DISTRIB_RELEASE="12.09.2"
DISTRIB_REVISION="r42647"
DISTRIB_CODENAME="attitude_adjustment"
DISTRIB_TARGET="ar71xx/generic"
DISTRIB_DESCRIPTION="OpenWrt_backports Attitude Adjustment 12.09.2"
DISTRIB_BACKPORT="V0.3-MaStr"


root@OpenWrt:~# cat /opt/piratebox/version
cat: can't open '/opt/piratebox/version': No such file or directory


root@OpenWrt:~# cat /opt/piratebox/tmp/error.log
cat: can't open '/opt/piratebox/tmp/error.log': No such file or directory


root@OpenWrt:~# cat /opt/piratebox/tmp/break.log
cat: can't open '/opt/piratebox/tmp/break.log': No such file or directory


root@OpenWrt:~# 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'


root@OpenWrt:~# cat /etc/config/wireless
config wifi-device radio0
option type mac80211
option channel 11
option hwmode 11ng
option macaddr d4:6e:0e:4f:52:f2
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
# REMOVE THIS LINE TO ENABLE WIFI:
option disabled 1

config wifi-iface
option device radio0
option network lan
option mode ap
option ssid OpenWrt
option encryption none


root@OpenWrt:~# dmesg | tail -n 20
[ 31.470000] loop: module loaded
[ 31.520000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 31.700000] nf_conntrack version 0.5.0 (455 buckets, 1820 max)
[ 31.980000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 32.260000] batman_adv: B.A.T.M.A.N. advanced 2013.4.0 (compatibility version 14) loaded
[ 36.550000] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 36.560000] device eth0 entered promiscuous mode
[ 36.560000] ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 36.850000] eth0: link up (100Mbps/Full duplex)
[ 36.850000] br-lan: port 1(eth0) entered forwarding state
[ 36.860000] br-lan: port 1(eth0) entered forwarding state
[ 36.860000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 36.890000] ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 38.860000] br-lan: port 1(eth0) entered forwarding state
[ 540.870000] eth0: link down
[ 540.870000] br-lan: port 1(eth0) entered disabled state
[ 769.870000] eth0: link up (100Mbps/Full duplex)
[ 769.870000] br-lan: port 1(eth0) entered forwarding state
[ 769.880000] br-lan: port 1(eth0) entered forwarding state
[ 771.880000] br-lan: port 1(eth0) entered forwarding state


root@OpenWrt:~# dmesg | grep sda
[ 11.080000] sd 0:0:0:0: [sda] 15364416 512-byte logical blocks: (7.86 GB/7.32 Gicool smiley
[ 11.090000] sd 0:0:0:0: [sda] Write Protect is off
[ 11.090000] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 11.090000] sd 0:0:0:0: [sda] No Caching mode page present
[ 11.100000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 11.110000] sd 0:0:0:0: [sda] No Caching mode page present
[ 11.110000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 11.140000] sda: sda1
[ 11.150000] sd 0:0:0:0: [sda] No Caching mode page present
[ 11.150000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 11.160000] sd 0:0:0:0: [sda] Attached SCSI removable disk


root@OpenWrt:~# ls /dev/sd*
/dev/sda /dev/sda1


root@OpenWrt:~# 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]
7 root 0 SW [kworker/u:1]
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]
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/0:2]
505 root 1504 S init
540 root 0 SW< [cfg80211]
618 root 0 SW< [bat_events]
645 root 1508 S /sbin/syslogd -C16
647 root 1488 S /sbin/klogd
649 root 872 S /sbin/hotplug2 --override --persistent --set-rules-f
657 root 872 S /sbin/ubusd
717 root 1468 S /sbin/netifd
1085 root 1152 S /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
1282 root 1500 S /sbin/watchdog -t 5 /dev/watchdog
1334 nobody 956 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf
1351 root 1492 S syslogd -n -L -R 192.168.1.2:9999
1391 root 1500 S /usr/sbin/ntpd -n -p 0.openwrt.pool.ntp.org -p 1.ope
1404 root 1216 S /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
1405 root 1508 S -ash
1437 root 1496 R ps


root@OpenWrt:~# tail -n 200 /mnt/usb/install.log
Jan 1 00:00:48 OpenWrt syslog.info syslogd started: BusyBox v1.19.4
Jan 1 00:00:48 OpenWrt user.notice root: /bin/box_installer_start.sh : Doing extendRoot initilization
Jan 1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : executing run_test
Jan 1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : Testing requirements...
Jan 1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : .. USB storage modules available
Jan 1 00:00:49 OpenWrt user.notice root: /bin/box_installer.sh : extendRoot package is installed
Jan 1 00:00:49 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan 1 00:00:49 OpenWrt user.notice root: /bin/box_installer.sh : executing run_signaling_extendRoot_start
Jan 1 00:00:49 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan 1 00:00:49 OpenWrt user.notice root: /bin/box_installer.sh : executing run_prepare_extendRoot
Jan 1 00:00:49 OpenWrt user.notice root: /bin/box_installer.sh : configure initi step for extendRoot
Jan 1 00:00:49 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan 1 00:00:49 OpenWrt user.notice root: /bin/box_installer.sh : executing run_init_extendRoot
Jan 1 00:00:49 OpenWrt user.notice root: /etc/init.d/ext: Mounting external USB storage...
Jan 1 00:00:49 OpenWrt user.notice root: mount: mounting /dev/sda on /mnt/usb failed: Invalid argument
Jan 1 00:00:49 OpenWrt user.notice root: /etc/init.d/ext: ERROR: unable to mount USB storage
Jan 1 00:00:49 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan 1 00:00:49 OpenWrt user.notice root: /bin/box_installer.sh : executing run_signaling_extendRoot_stop
Jan 1 00:00:49 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan 1 00:00:49 OpenWrt user.notice root: /bin/box_installer.sh : executing exit
---------------------------------------------
Jan 1 00:00:48 OpenWrt syslog.info syslogd started: BusyBox v1.19.4
Jan 1 00:00:48 OpenWrt user.notice root: /bin/box_installer_start.sh : Doing extendRoot initilization
Jan 1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : executing run_test
Jan 1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : Testing requirements...
Jan 1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : .. USB storage modules available
Jan 1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : extendRoot package is installed
Jan 1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan 1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : executing run_signaling_extendRoot_start
Jan 1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan 1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : executing run_prepare_extendRoot
Jan 1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : configure initi step for extendRoot
Jan 1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan 1 00:00:48 OpenWrt user.notice root: /bin/box_installer.sh : executing run_init_extendRoot
Jan 1 00:00:48 OpenWrt user.notice root: /etc/init.d/ext: Mounting external USB storage...
Jan 1 00:00:49 OpenWrt user.notice root: mount: mounting /dev/sda on /mnt/usb failed: Invalid argument
Jan 1 00:00:49 OpenWrt user.notice root: /etc/init.d/ext: ERROR: unable to mount USB storage
Jan 1 00:00:49 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan 1 00:00:49 OpenWrt user.notice root: /bin/box_installer.sh : executing run_signaling_extendRoot_stop
Jan 1 00:00:49 OpenWrt user.notice root: /bin/box_installer.sh : Trying to find next step
Jan 1 00:00:49 OpenWrt user.notice root: /bin/box_installer.sh : executing exit
Re: Piratebox installation issue
May 07, 2018 07:17PM
Hi,
is there a chance you changed /etc/ext.config , because the usb stick is found correctly, but it seems it tries to mount /dev/sda instead.

best regards Matthias