EXTROOT script doesn't work

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
varma
Posts: 37
Joined: Thu Feb 17, 2011 7:53 pm

EXTROOT script doesn't work

Post by varma »

hi everybody,
I'm trying to use the "automagical" extroot implementation in the USB Storage page, but it doesn't work at all.

My WR1043ND has this Gargoyle build: 1.7.X (Built 20150207-0832 git@3344fb7).

After some tests I format my 1 GB pendrive with gparted into:
512 MB ext4 (I would like to use it as extroot)
256 MB ext4 (I'm using it as plugins_root)
190-200 MB swap

and the plugins page accepted the pendrive giving me the ability to install the addons.

This could be a good start to set the extroot manually, but it's really complicated to myself.
Is there anybody able to explain it in a easy way?? :mrgreen:
Might be possible to execute a script to set it up?
Might anybody share the important configuration files to make it easy?

I found this into the wiki page of OpenWRT:
http://wiki.openwrt.org/doc/howto/extroot
Some users reported a problem with Barier Breaker 14.07 (and RC versions) on ar71xx devices, the problem was solved by user S-trace, thanks to him. The partition won't mount as /overlay, but still mount as /mnt/sdax. To get the right uuid run block detect.
Might be due to this problem?
Thank you very much as always!
Tp-Link WR1043ND v1.4 using Gargoyle 1.7.2
Tp-Link WDR3600 v1.5 using OpenWRT CC by SamKnows

Image

varma
Posts: 37
Joined: Thu Feb 17, 2011 7:53 pm

Re: EXTROOT script doesn't work

Post by varma »

Hello again,

I freshly installed the new 1.7.2 version
an tried to setup extroot in the "USB Storage" page with the following box:

Code: Select all

Use Disk As External Root (Extroot)
When using an external root drive or extroot an external USB drive becomes the root drive on your router. This can enable a very large root drive, but if you remove the drive all configuration changes since the extroot was activated will be lost. 
the router rebooted and this is the "mount" situation:

Code: Select all

/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)
/dev/mtdblock3 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlayfs (rw,noatime,lowerdir=/,upperdir=/overlay)
tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
and this is my "dmesg":

Code: Select all

root@Gargoyle:/# dmesg
[    0.000000] Linux version 3.10.49 (eric@Osiris) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 unknown) ) #5 Fri Jul 17 00:01:20 EDT 2015
[    0.000000] MyLoader: sysp=00a02304, boardp=0042a061, parts=24280400
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR9132 rev 2
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:5.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat 8031ee20, node_mem_map 81000000
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8192 pages, LIFO batch:0
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  board=TL-WR1043ND console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 28720k/32768k available (2287k kernel code, 4048k reserved, 613k data, 232k init, 0k highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.080000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 512
[    0.090000] NET: Registered protocol family 16
[    0.100000] MIPS: machine is TP-LINK TL-WR1043ND
[    0.360000] bio: create slab <bio-0> at 0
[    0.370000] Switching to clocksource MIPS
[    0.380000] NET: Registered protocol family 2
[    0.380000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.380000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.390000] TCP: Hash tables configured (established 512 bind 512)
[    0.390000] TCP: reno registered
[    0.400000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.400000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.410000] NET: Registered protocol family 1
[    0.410000] PCI: CLS 0 bytes, default 32
[    0.430000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.440000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.450000] msgmni has been set to 56
[    0.450000] io scheduler noop registered
[    0.460000] io scheduler deadline registered (default)
[    0.460000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.490000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    0.500000] console [ttyS0] enabled, bootconsole disabled
[    0.510000] ath79-spi ath79-spi: master is unqueued, this is deprecated
[    0.520000] m25p80 spi0.0: found m25p64, expected m25p80
[    0.520000] m25p80 spi0.0: m25p64 (8192 Kbytes)
[    0.530000] 5 tp-link partitions found on MTD device spi0.0
[    0.530000] Creating 5 MTD partitions on "spi0.0":
[    0.540000] 0x000000000000-0x000000020000 : "u-boot"
[    0.540000] 0x000000020000-0x000000129200 : "kernel"
[    0.550000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.560000] 0x000000129200-0x0000007f0000 : "rootfs"
[    0.570000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.580000] mtd: device 2 (rootfs) set to be root filesystem
[    0.590000] 1 squashfs-split partitions found on MTD device rootfs
[    0.600000] 0x0000006e0000-0x0000007f0000 : "rootfs_data"
[    0.600000] 0x0000007f0000-0x000000800000 : "art"
[    0.610000] 0x000000020000-0x0000007f0000 : "firmware"
[    0.620000] Realtek RTL8366RB ethernet switch driver version 0.2.4
[    0.740000] rtl8366rb rtl8366rb: using GPIO pins 18 (SDA) and 19 (SCK)
[    0.740000] rtl8366rb rtl8366rb: RTL5937 ver. 3 chip found
[    0.930000] libphy: rtl8366rb: probed
[    1.230000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[    1.240000] TCP: cubic registered
[    1.240000] NET: Registered protocol family 17
[    1.250000] Bridge firewalling registered
[    1.250000] Ebtables v2.0 registered
[    1.260000] 8021q: 802.1Q VLAN Support v1.8
[    1.270000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.280000] Freeing unused kernel memory: 232K (80336000 - 80370000)
[    5.660000] usbcore: registered new interface driver usbfs
[    5.670000] usbcore: registered new interface driver hub
[    5.670000] usbcore: registered new device driver usb
[    5.720000] SCSI subsystem initialized
[    5.730000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.740000] ehci-platform: EHCI generic platform driver
[    5.750000] ehci-platform ehci-platform: EHCI Host Controller
[    5.750000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    5.760000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    5.790000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    5.790000] hub 1-0:1.0: USB hub found
[    5.800000] hub 1-0:1.0: 1 port detected
[    5.800000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.820000] usbcore: registered new interface driver usb-storage
[    6.260000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    6.540000] ar71xx: pll_reg 0xb8050014: 0x1a000000
[    6.540000] eth0: link up (1000Mbps/Full duplex)
[    6.570000] usb-storage 1-1:1.0: USB Mass Storage device detected
[    6.570000] scsi0 : usb-storage 1-1:1.0
[    7.580000] scsi 0:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 2
[    7.590000] sd 0:0:0:0: [sda] 1968128 512-byte logical blocks: (1.00 GB/961 MiB)
[    7.600000] sd 0:0:0:0: [sda] Write Protect is off
[    7.600000] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[    7.600000] sd 0:0:0:0: [sda] No Caching mode page found
[    7.610000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    7.620000] sd 0:0:0:0: [sda] No Caching mode page found
[    7.620000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    7.640000]  sda: sda1 sda2
[    7.650000] sd 0:0:0:0: [sda] No Caching mode page found
[    7.650000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    7.660000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   10.480000] jffs2: notice: (356) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 31 of xref (0 dead, 4 orphan) found.
[   10.500000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[   10.510000] block: unable to load configuration (fstab: Entry not found)
[   10.520000] block: attempting to load /tmp/jffs_cfg/etc/config/fstab
[   10.530000] block: extroot: not configured
[   10.580000] jffs2: notice: (353) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 31 of xref (0 dead, 4 orphan) found.
[   10.840000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[   10.840000] block: unable to load configuration (fstab: Entry not found)
[   10.850000] block: attempting to load /tmp/jffs_cfg/etc/config/fstab
[   10.870000] block: extroot: not configured
[   10.910000] eth0: link down
[   14.030000] RPC: Registered named UNIX socket transport module.
[   14.040000] RPC: Registered udp transport module.
[   14.040000] RPC: Registered tcp transport module.
[   14.050000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   14.070000] tun: Universal TUN/TAP device driver, 1.6
[   14.070000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   14.090000] gre: GRE over IPv4 demultiplexor driver
[   14.090000] ip_gre: GRE over IPv4 tunneling driver
[   14.130000] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   14.150000] 	Hooked IMQ after mangle on PREROUTING
[   14.160000] 	Hooked IMQ after nat on POSTROUTING
[   14.160000] IMQ driver loaded successfully. (numdevs = 2, numqueues = 1)
[   14.170000] 	Hooking IMQ before NAT on PREROUTING.
[   14.170000] 	Hooking IMQ after NAT on POSTROUTING.
[   14.180000] Netfilter messages via NETLINK v0.30.
[   14.190000] ip_set: protocol 6
[   14.240000] u32 classifier
[   14.240000]     input device check on
[   14.240000]     Actions configured
[   14.250000] Mirror/redirect action on
[   14.270000] Failed to load ipt action
[   14.290000] fuse init (API version 7.22)
[   14.310000] usbcore: registered new interface driver cdc_acm
[   14.310000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   14.320000] usbcore: registered new interface driver cdc_wdm
[   14.330000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
[   14.340000] Backport generated by backports.git backports-20140320-37-g5c33da0
[   14.350000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.380000] nf_conntrack version 0.5.0 (452 buckets, 1808 max)
[   14.510000] usbcore: registered new interface driver ums-alauda
[   14.530000] usbcore: registered new interface driver ums-cypress
[   14.550000] usbcore: registered new interface driver ums-datafab
[   14.570000] usbcore: registered new interface driver ums-freecom
[   14.590000] usbcore: registered new interface driver ums-isd200
[   14.600000] usbcore: registered new interface driver ums-jumpshot
[   14.630000] usbcore: registered new interface driver ums-karma
[   14.640000] usbcore: registered new interface driver ums-sddr09
[   14.660000] usbcore: registered new interface driver ums-sddr55
[   14.680000] usbcore: registered new interface driver ums-usbat
[   14.690000] usbcore: registered new interface driver usblp
[   14.720000] usbcore: registered new interface driver usbserial
[   14.730000] usbcore: registered new interface driver usbserial_generic
[   14.730000] usbserial: USB Serial support registered for generic
[   14.830000] xt_time: kernel timezone is -0000
[   14.880000] cfg80211: Calling CRDA to update world regulatory domain
[   14.900000] cfg80211: World regulatory domain updated:
[   14.900000] cfg80211:  DFS Master region: unset
[   14.900000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   14.910000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   14.920000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   14.930000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   14.940000] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
[   14.950000] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   14.960000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   14.960000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   14.970000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   15.180000] PPP generic driver version 2.4.2
[   15.200000] PPP MPPE Compression module registered
[   15.220000] NET: Registered protocol family 24
[   15.260000] PPTP driver version 0.8.5
[   15.320000] usbcore: registered new interface driver qmi_wwan
[   15.350000] usbcore: registered new interface driver sierra
[   15.350000] usbserial: USB Serial support registered for Sierra USB modem
[   15.620000] usbcore: registered new interface driver option
[   15.640000] usbserial: USB Serial support registered for GSM modem (1-port)
[   15.940000] usbcore: registered new interface driver qcserial
[   15.940000] usbserial: USB Serial support registered for Qualcomm USB modem
[   16.100000] ath: EEPROM regdomain: 0x0
[   16.100000] ath: EEPROM indicates default country code should be used
[   16.100000] ath: doing EEPROM country->regdmn map search
[   16.100000] ath: country maps to regdmn code: 0x3a
[   16.100000] ath: Country alpha2 being used: US
[   16.100000] ath: Regpair used: 0x3a
[   16.160000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   16.170000] ieee80211 phy0: Atheros AR9100 MAC/BB Rev:7 AR2133 RF Rev:a2 mem=0xb80c0000, irq=2
[   16.180000] cfg80211: Calling CRDA for country: US
[   16.180000] cfg80211: Regulatory domain changed to country: US
[   16.190000] cfg80211:  DFS Master region: FCC
[   16.190000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   16.200000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[   16.210000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm), (N/A)
[   16.220000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm), (0 s)
[   16.230000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
[   16.240000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[   18.740000] Adding 245756k swap on /dev/sda2.  Priority:-1 extents:1 across:245756k 
[   20.740000] Adding 245756k swap on /dev/sda2.  Priority:-1 extents:1 across:245756k 
[   22.550000] Adding 245756k swap on /dev/sda2.  Priority:-1 extents:1 across:245756k 
[   30.290000] ar71xx: pll_reg 0xb8050014: 0x1a000000
[   30.310000] eth0: link up (1000Mbps/Full duplex)
[   30.330000] device eth0.1 entered promiscuous mode
[   30.330000] device eth0 entered promiscuous mode
[   30.350000] br-lan: port 1(eth0.1) entered forwarding state
[   30.350000] br-lan: port 1(eth0.1) entered forwarding state
[   32.350000] br-lan: port 1(eth0.1) entered forwarding state
[   33.880000] device wlan0 entered promiscuous mode
[   36.670000] br-lan: port 2(wlan0) entered forwarding state
[   36.670000] br-lan: port 2(wlan0) entered forwarding state
[   38.670000] br-lan: port 2(wlan0) entered forwarding state
[   81.070000] ipt_bandwidth: timezone shift of 120 minutes detected, adjusting
[   81.070000]                old minutes west=0, new minutes west=-120
any help is well accepted
Tp-Link WR1043ND v1.4 using Gargoyle 1.7.2
Tp-Link WDR3600 v1.5 using OpenWRT CC by SamKnows

Image

varma
Posts: 37
Joined: Thu Feb 17, 2011 7:53 pm

Re: EXTROOT script doesn't work

Post by varma »

At the end I set everything manually
Tp-Link WR1043ND v1.4 using Gargoyle 1.7.2
Tp-Link WDR3600 v1.5 using OpenWRT CC by SamKnows

Image

Post Reply