Running the filesystem check on the usb stick:
It leaves the file system unchanged ... even with option y...
Then, being in static mode...
tried to
Before showing the status, I have to mention that I tried even the "small Python webserver" method to "pull" the image from the box by wget-ting it. The problem turned out to be the file system has been mounted read only...
Here the status:
In /etc/config you have
root@debian-thinkpad-x220:/home/arf# fsck -v /dev/sdb1 fsck from util-linux 2.20.1 dosfsck 3.0.13 (30 Jun 2012) dosfsck 3.0.13, 30 Jun 2012, FAT32, LFN Checking we can access the last sector of the filesystem Boot sector contents: System ID "MSDOS5.0" Media byte 0xf8 (hard disk) 512 bytes per logical sector 16384 bytes per cluster 18958 reserved sectors First FAT starts at byte 9706496 (sector 18958) 2 FATs, 32 bit entries 7696896 bytes per FAT (= 15033 sectors) Root directory start at cluster 2 (arbitrary size) Data area starts at byte 25100288 (sector 49024) 1923584 data clusters (31516000256 bytes) 63 sectors/track, 255 heads 128 hidden sectors 61603712 sectors total Checking for unused clusters. Reclaimed 197 unused clusters (3227648 bytes). Checking free cluster summary. Free cluster summary wrong (1817193 vs. really 1817583) 1) Correct 2) Don't correct ? 1 Leaving file system unchanged. /dev/sdb1: 20088 files, 106001/1923584 clusters
It leaves the file system unchanged ... even with option y...
Then, being in static mode...
root@debian-thinkpad-x220:/etc/network# ifconfig eth0 Link encap:Ethernet HWaddr f0:de:f1:6b:e9:96 inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::f2de:f1ff:fe6b:e996/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4318 errors:0 dropped:0 overruns:0 frame:0 TX packets:4984 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:419315 (409.4 KiB) TX bytes:551071 (538.1 KiB) Interrupt:20 Memory:f2600000-f2620000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:1903 errors:0 dropped:0 overruns:0 frame:0 TX packets:1903 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:274569 (268.1 KiB) TX bytes:274569 (268.1 KiB)
tried to
arf@debian-thinkpad-x220:~$ ssh 192.168.1.1 ssh: connect to host 192.168.1.1 port 22: Connection refused
Before showing the status, I have to mention that I tried even the "small Python webserver" method to "pull" the image from the box by wget-ting it. The problem turned out to be the file system has been mounted read only...
Here the status:
root@(none):/# mount rootfs on / type rootfs (rw) /dev/root on / 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)
root@(none):/# ls -la /mnt/ drwxr-xr-x 2 root root 3 Apr 18 2014 . drwxr-xr-x 16 root root 223 May 29 2014 ..
root@(none):/# ls -la /opt ls: /opt: No such file or directory
root@(none):/# cat /etc/config/network cat: can't open '/etc/config/network':No such file or directory
In /etc/config you have
root@(none):/# ls -la /etc/config/ drwxr-xr-x 2 root root 104 May 29 2014 . drwxr-xr-x 12 root root 728 May 29 2014 .. -rw-r--r-- 1 root root 439 Apr 18 2014 batman-adv -rw-r--r-- 1 root root 885 Apr 12 2014 dhcp -rw-r--r-- 1 root root 134 Apr 12 2014 dropbear -rw-r--r-- 1 root root 3887 Apr 12 2014 firewall -rw-r--r-- 1 root root 335 Apr 12 2014 fstab -rw-r--r-- 1 root root 251 Feb 12 2014 system
root@(none):/# 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" root@(none):/# cat /etc/pbx_custom_image PBX_auto_Image_2.1
t@(none):/# dmesg | tail -n 20 [ 0.540000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [ 0.550000] mtd: partition "rootfs" set to be root filesystem [ 0.560000] mtd: partition "rootfs_data" created automatically, ofs=310000, len=E0000 [ 0.560000] 0x000000310000-0x0000003f0000 : "rootfs_data" [ 0.570000] 0x0000003f0000-0x000000400000 : "art" [ 0.580000] 0x000000020000-0x0000003f0000 : "firmware" [ 0.600000] ag71xx_mdio: probed [ 0.610000] eth0: Atheros AG71xx at 0xb9000000, irq 4 [ 1.160000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY] [ 1.170000] TCP cubic registered [ 1.170000] NET: Registered protocol family 17 [ 1.170000] Bridge firewalling registered [ 1.180000] 8021q: 802.1Q VLAN Support v1.8 [ 1.190000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2. [ 1.200000] Freeing unused kernel memory: 216k freed [ 3.560000] Registered led device: tp-link:green:3g [ 3.560000] Registered led device: tp-link:green:wlan [ 3.560000] Registered led device: tp-link:green:lan [ 3.560000] Registered led device: tp-link:green:wps [ 6.160000] eth0: link up (100Mbps/Full duplex)
root@(none):/# ps PID USER VSZ STAT COMMAND 1 root 1636 S {preinit} /bin/sh /etc/preinit 2 root 0 SW [kthreadd] 3 root 0 SW [ksoftirqd/0] 4 root 0 SW [kworker/0: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] 366 root 804 S /sbin/hotplug2 --set-worker /lib/hotplug2/worker_for 429 root 1496 S telnetd -l /bin/login.sh 431 root 1488 S lock /tmp/.failsafe 432 root 1500 S ash --login 451 root 1504 S /bin/ash --login 478 root 1496 R ps