OpenWrt Forum Archive

Topic: how to use the new block-mount ?

The content of this topic has been archived between 19 Jun 2015 and 6 May 2018. Unfortunately there are posts – most likely complete pages – missing.

Montbra wrote:

Thanks johan666

I tried this and another  combinations, like option delay_root '0',
option target '/' and nothing. My setup is AR7XX (TP-Link TL-WR1043N/ND v1, OpenWrt Barrier Breaker r37092 / LuCI Trunk (svn-r9844) ). Anyone with success in this setup?

Best Regards from Rio de Janeiro, Brasil

I can confirm that Overlay / Rootoverly isn't working anymore on my TP Link 1043ND ;(

That's weird... When I add a slash at the end of overlay, it's mounted during boot.

config 'mount'
        option  target  '/overlay/'
        option  uuid    '4c4f67d0-c6a1-43d9-b857-5da952c7eef1'
        option  enabled '1'

Here is my df -h

root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    5.1M    632.0K      4.4M  12% /
/dev/root                 1.8M      1.8M         0 100% /rom
tmpfs                    61.7M     52.0K     61.7M   0% /tmp
/dev/mtdblock3            6.9G     31.1M      6.5G   0% /overlay
overlayfs:/overlay        5.1M    632.0K      4.4M  12% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda1                 6.9G     31.1M      6.5G   0% /overlay

But the packages are not installed on the new overlay /dev/sda1. They are still installed on /dev/mtdblock3 which will be out of space soon. Can anyone help please?

TP-Link TL-WDR3500
BARRIER BREAKER (Bleeding Edge, r37177)

(Last edited by isiku on 7 Jul 2013, 10:26)

Settings that work for me
etc/opkg.conf

src/gz barrier_breaker http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
DarkStarXxX wrote:

I can confirm that Overlay / Rootoverly isn't working anymore on my TP Link 1043ND ;(

What in your /etc/config/fstab

isiku wrote:

That's weird... When I add a slash at the end of overlay, it's mounted during boot.

Mine doesn't have back-slash at the end.

johan666 wrote:

Mine doesn't have back-slash at the end.

No, it is a standard slash I put. Not a back-slash. But this didn't work anyway. It creates just another mount point with /overlay name, the new packages still goes to /dev/mtdblock3 --> /overlay.

johan666 wrote:
DarkStarXxX wrote:

I can confirm that Overlay / Rootoverly isn't working anymore on my TP Link 1043ND ;(

What in your /etc/config/fstab

config 'global'
        option  anon_swap       '0'
        option  anon_mount      '0'
        option  auto_swap       '1'
        option  auto_mount      '1'
        option  delay_root      '1'
        option  check_fs        '0'

config 'mount'
        option  target  '/'
        option  uuid    '27030164-f77c-40c0-b495-995c708eaf20'
        option  enabled '1'

config 'mount'
        option  target  '/opt'
        option  uuid    '23831c8f-9fba-4c59-9fa9-b8c5195f61b0'
        option  enabled '1'

config 'swap'
        option  device  'sda3'
        option  enabled '1'

Mine MR3420 also cant mount overlay
if i

config 'mount'
        option  target  '/'

it wont detect the ext space

Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                    1088       544       544  50% /
/dev/root                 1792      1792         0 100% /rom
tmpfs                    14492        88     14404   1% /tmp
/dev/mtdblock3            1088       544       544  50% /overlay
overlayfs:/overlay        1088       544       544  50% /
tmpfs                      512         0       512   0% /dev
/dev/sda2                 1088       544       544  50% /

(Last edited by young_97 on 8 Jul 2013, 07:03)

Extroot problem continues, neither pivot overlay nor pivot root works. I wish there is an Attitude Adjustment for my router.

BARRIER BREAKER (Bleeding Edge, r37180) , TL-WDR3500

@obsy, I've spent all my weekend for this without any success. But today, you've made my day... Thank you!

        _______                     ________        __
       |       |.-----.-----.-----.|  |  |  |.----.|  |_
       |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
       |_______||   __|_____|__|__||________||__|  |____|
                |__| W I R E L E S S   F R E E D O M

 ----------------------------------------------------------------
 |                                                              |
 | OpenWrt Attitude Adjustment 12.09 (r37174)                   |
 | Build time: 2013-07-05 22:17 CEST                            |
 |                                                              |
 | Cezary Jackiewicz (obsy), http://eko.one.pl                  |
 |                                                              |
 ----------------------------------------------------------------
root@OpenWrt:/etc/config# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    6.8G     13.9M      6.5G   0% /
/dev/root                 2.3M      2.3M         0 100% /rom
tmpfs                    61.8M    952.0K     60.9M   2% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda1                 6.8G     13.9M      6.5G   0% /
root@OpenWrt:/etc/config#
isiku wrote:

@obsy, I've spent all my weekend for this without any success. But today, you've made my day... Thank you!

        _______                     ________        __
       |       |.-----.-----.-----.|  |  |  |.----.|  |_
       |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
       |_______||   __|_____|__|__||________||__|  |____|
                |__| W I R E L E S S   F R E E D O M

 ----------------------------------------------------------------
 |                                                              |
 | OpenWrt Attitude Adjustment 12.09 (r37174)                   |
 | Build time: 2013-07-05 22:17 CEST                            |
 |                                                              |
 | Cezary Jackiewicz (obsy), http://eko.one.pl                  |
 |                                                              |
 ----------------------------------------------------------------
root@OpenWrt:/etc/config# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    6.8G     13.9M      6.5G   0% /
/dev/root                 2.3M      2.3M         0 100% /rom
tmpfs                    61.8M    952.0K     60.9M   2% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda1                 6.8G     13.9M      6.5G   0% /
root@OpenWrt:/etc/config#

Oh, good. Have you compile it yourself?
May I have a look at /proc/cpuinfo just for knowledge?

alive4ever wrote:

Oh, good. Have you compile it yourself?
May I have a look at /proc/cpuinfo just for knowledge?

No, I didn't compile, @obsy did (I guess). Here goes /proc/cpuinfo

root@OpenWrt:~# cat /proc/cpuinfo
system type             : Atheros AR9344 rev 2
machine                 : TP-LINK TL-WDR3500
processor               : 0
cpu model               : MIPS 74Kc V4.12
BogoMIPS                : 278.93
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ff8, 0x0ffc, 0x0ff8, 0x0ff8]
ASEs implemented        : mips16 dsp
shadow register sets    : 1
kscratch registers      : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

Strange on my 1043ND

/proc/cpu Shows nothing.... No Permission

After sets to 755

root@HeAvEn-Router:~# /proc/cpuinfo
/proc/cpuinfo: line 1: system: not found
/proc/cpuinfo: line 2: machine: not found
/proc/cpuinfo: line 3: processor: not found
/proc/cpuinfo: line 4: cpu: not found
/proc/cpuinfo: line 5: BogoMIPS: not found
/proc/cpuinfo: wait: line 6: Illegal number: instruction
/proc/cpuinfo: line 7: microsecond: not found
/proc/cpuinfo: line 8: tlb_entries: not found
/proc/cpuinfo: line 9: extra: not found
/proc/cpuinfo: line 10: hardware: not found
/proc/cpuinfo: line 11: ASEs: not found
/proc/cpuinfo: line 12: shadow: not found
/proc/cpuinfo: line 13: kscratch: not found
/proc/cpuinfo: line 14: core: not found
/proc/cpuinfo: line 15: VCED: not found
/proc/cpuinfo: line 16: VCEI: not found

Whats going on here?

This is not file to execute!

cat /proc/cpuinfo

same problem for tp-link wr703n no overlay works, no pivot root works :-( only swap working

/ and /overlay none mount

/etc/config/fstab

config 'global'
        option  anon_swap       '0'
        option  anon_mount      '0'
        option  auto_swap       '1'
        option  auto_mount      '1'
        option  delay_root      '0'
        option  check_fs        '0'

config 'mount'
        option  target  '/'
        option  uuid    'bec53bea-496e-471e-ae86-4c374302e968'
        option  enabled '1'

config 'swap'
        option  device  'sda2'
        option  enabled '1'

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)
/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)

for example /mnt/sda1 working ok

(Last edited by inder on 10 Jul 2013, 07:23)

Hi, this thread always comes up when you google fstab new openwrt and wanted to let you know how I fixed it.

1. Compile the latest trunk with
block-mount
kmod-fs-ext4
kmod-usb-ohci
kmod-usb-storage

To find where these are in the menuconfig type / and you can search for them.

2. Upgrade the system: sysupgrade -v /path/to/file/openwrt.router-sysupgrade.bin

3. Run block info and find out what /dev/sdx is your usb
Then run:
mkfs.ext4 /dev/sda1 (you will need to install e2fsprogs for this)
mount /dev/sda1 /mnt
mkdir /tmp/cproot
mount --bind / /tmp/cproot
tar -C /tmp/cproot -cvf - . | tar -C /mnt -xvf -
sync ; umount /mnt
umount /tmp/cproot

4. After this run:
block detect > /etc/config/fstab
nano /etc/config/fstab (install nano if you dont have it or use vi /etc/config/fstab)
and modify the target line and option enabled line so that it looks like this:
config 'global'
        option  anon_swap       '0'
        option  anon_mount      '0'
        option  auto_swap       '1'
        option  auto_mount      '1'
        option  delay_root      '0'
        option  check_fs        '0'

config 'mount'
        option  target  '/'
        option  uuid    '7d3abfaf-493a-46bb-9730-1d793ecb9783'
        option  enabled '1'

config 'swap'
        option  uuid    '76d36596-5710-4b77-a3a7-02a66d469750'
        option  enabled '1'

5. Reboot

6. Here's proof that it works

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 BARRIER BREAKER (Bleeding Edge, r37322)
 -----------------------------------------------------
  * 1/2 oz Galliano         Pour all ingredients into
  * 4 oz cold Coffee        an irish coffee mug filled
  * 1 1/2 oz Dark Rum       with crushed ice. Stir.
  * 2 tsp. Creme de Cacao
 -----------------------------------------------------
root@OpenWrt:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                 2655832     13196   2488012   1% /
/dev/root                 2560      2560         0 100% /rom
tmpfs                    63256        48     63208   0% /tmp
/dev/sda1              2655832     13196   2488012   1% /
tmpfs                      512         0       512   0% /dev

If someone could add this to the wiki in a Barrier Breaker section at the top that would be great.

(Last edited by shape on 16 Jul 2013, 06:18)

new kernel 3.10, tutorial from shape, tplink wr703n still not working / nor /overlay

please someone with tplink wr703n that is working? or which hardware is ubox working?

the bug is probably only with memory card if i use m2 memory card / or /overlay dont work
the card is detected in mount block as /dev/sda (dummy partition)  and real partition /dev/sda1

with usb flash working without problem tested / and /overlay

bug: if memory card is detect with dummy partition for example /dev/sda

(Last edited by inder on 15 Jul 2013, 11:11)

I can confirm that's not working on TP Link 1043ND, Looks so that all AR71xx Based Routers are broken.

is there somebody who success extroot with the new ubox?
I failed.

epicleii wrote:

is there somebody who success extroot with the new ubox?
I failed.

Works for me. (TP-Link WDR3500). Read 3rd post above yours for a full tutorial. Also several other people on IRC confirmed that it worked for them as well.

(Last edited by shape on 16 Jul 2013, 03:20)

I think it should work, you should use uuid.

This don't work on TP-Link 1043ND.