Munged Install? No /opt

Posted by cogdog 
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
Munged Install? No /opt
October 12, 2017 06:54AM
It's been a while since I used by box, but hoping to use it for some educator demos soon. Got a new MR3020, flashed firmware, telnetted in.

But am not seeing the /opt directory so I've got no piratebox. My directory:

root@OpenWrt:/# ls -al
drwxr-xr-x    1 root     root             0 Jan  1 00:00 .
drwxr-xr-x    1 root     root             0 Jan  1 00:00 ..
-rw-r--r--    1 root     root            33 Jan  1 00:00 .extroot.md5sum
drwxr-xr-x    1 root     root             0 Jan  1 00:01 bin
drwxr-xr-x    6 root     root          1300 Jan  1 00:00 dev
drwxr-xr-x    1 root     root             0 Jan  1 00:03 etc
-rwxr-xr-x    1 root     root          2313 Jan 26  2016 init
drwxr-xr-x   14 root     root           645 Jan 31  2016 lib
drwxr-xr-x    1 root     root             0 Jan  1 00:01 mnt
drwxr-xr-x    7 root     root             0 Jan  1 00:00 overlay
dr-xr-xr-x   52 root     root             0 Jan  1 00:00 proc
drwxr-xr-x   16 root     root           223 Sep 21  2016 rom
drwxr-xr-x    2 root     root             3 Feb  1  2016 root
drwxr-xr-x    2 root     root           691 Sep 21  2016 sbin
drwxr-xr-x   11 root     root             0 Jan  1 00:00 sys
drwxrwxrwt   11 root     root           320 Jan  1 00:00 tmp
drwxr-xr-x    1 root     root             0 Jan  1 00:01 usr
lrwxrwxrwx    1 root     root             4 Sep 21  2016 var -> /tmp
drwxr-xr-x    2 root     root             3 Feb  1  2016 www

I thought I'd ace it this time. Sigh... Help?
Re: Munged Install? No /opt
October 12, 2017 12:23PM
Hi,
mh. Did you use our custom image?
Can you please post the output of the following commands?

cat /etc/pbx_custom_image
cat /etc/openwrt_release
dmesg | tail -n 20 
dmesg | grep sda
ls /dev/sd*

Best regards Matthias
Re: Munged Install? No /opt
October 13, 2017 12:39AM
Thanks for rescuing me again, Matthias. My last install 2 years ago was flawless.

Perhaps I did not give the setup process not long enough. The connection to the Wrt Web Admin page did drop and I waited until all lights were solid.

Here is output as requested:

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:~# dmesg | tail -n 20 
[   31.000000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[   31.450000] loop: module loaded
[   31.510000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   31.680000] nf_conntrack version 0.5.0 (455 buckets, 1820 max)
[   31.970000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   32.240000] batman_adv: B.A.T.M.A.N. advanced 2013.4.0 (compatibility version 14) loaded
[   35.480000] EXT4-fs (loop0): couldn't mount as ext3 due to feature incompatibilities
[   35.480000] EXT4-fs (loop0): couldn't mount as ext2 due to feature incompatibilities
[   35.540000] EXT4-fs (loop0): recovery complete
[   35.550000] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)
[   36.940000] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   36.950000] device eth0 entered promiscuous mode
[   36.950000] ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   37.600000] eth0: link up (100Mbps/Full duplex)
[   37.600000] br-lan: port 1(eth0) entered forwarding state
[   37.610000] br-lan: port 1(eth0) entered forwarding state
[   37.610000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   37.620000] ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   39.610000] br-lan: port 1(eth0) entered forwarding state
[   43.100000] Adding 32760k swap on /mnt/usb/external_fs/OpenWRT.swap.  Priority:-1 extents:1 across:32760k 
root@OpenWrt:~# dmesg | grep sda
[    9.780000] sd 0:0:0:0: [sda] 31266816 512-byte logical blocks: (16.0 GB/14.9 Gicool smiley
[    9.790000] sd 0:0:0:0: [sda] Write Protect is off
[    9.790000] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[    9.790000] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    9.810000]  sda: sda1
[    9.820000] sd 0:0:0:0: [sda] Attached SCSI disk
root@OpenWrt:~# ls /dev/sd*
/dev/sda   /dev/sda1
Re: Munged Install? No /opt
October 13, 2017 04:00AM
Hi,
it seems that the USB stick recognized correctly and the extroot is intialized:

Quote

[ 35.480000] EXT4-fs (loop0): couldn't mount as ext3 due to feature incompatibilities
[ 35.480000] EXT4-fs (loop0): couldn't mount as ext2 due to feature incompatibilities
[ 35.540000] EXT4-fs (loop0): recovery complete
[ 35.550000] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)

So I guess, that your install folder is not like it should be. Please paste the output of the following commands:

ls /mnt/
ls /mnt/usb/install

If you can find an "auto_package_done" file, please rename it via

mv /mnt/usb/install/auto_package_done /mnt/usb/install/auto_package

and reboot. That should kick in the installation again.

best regards Matthias
Re: Munged Install? No /opt
October 13, 2017 10:59PM
Thanks Matthias.

The first try changed nothing. Then I re-downloaded the install package and replaced the directory on the USB drive. Reset the auto_package file name. The reboot worked, I could tell because it took longer and the lights blinked as it installed. I have a new working PirateBox and can start by customizations.

Thanks again. Where is your tip jar? Your long term work on this project is amazing.

Alan
Re: Munged Install? No /opt
October 14, 2017 01:19PM
Glad it is working now.
BTW: Mod-Theming guide.

I only have Bitcoin as tip jar left, because Paypal kicked me for years (because of piratebox)
see About-Matthias.

Flattr is not working, I guess.

Thank you,
best regards
Matthias