Modify

Opened 4 years ago

Last modified 21 months ago

#14946 new defect

TL-WDR4300 pivot root not working

Reported by: anonymous Owned by: developers
Priority: response-needed Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: Cc:

Description

Using the latest trunk version, the router TP-Link TL-WDR4300 (Rev. 1.6) can
not mount a pivot root that is on an USB stick. I was using the latest block-mount
package, testing the following (as working for this problem in other tickets
documented) configurations.

  1. Initial try (using output of block detect)
     config 'mount'
        option target '/overlay'
        option uuid '<UUID of Stick>'
        option enabled '1'
    
  2. Increasing root_delay step-by-step until a value of 120
  3. Using option device '/dev/sda1' with matching filesystem
  4. Using the export PREINIT=1; mount_root entries in /etc/rc.local

Each of the above attempts including variations brought the message
that /dev/mtdblock3 is already mounted (same output as calling block mount
on the commandline). Every time, /dev/mtdblock3 is mounted first.

Configurations 1 and 3 as defined above are working flawlessly when the stick
is mounted to let's say /mnt. So the uuid and device used are correct and
the stick is OK.

The pivot_root isn't broken too since it is working when using the
release 12.09. Sorry, something is broken in the trunk version concerning
this feature with the above router.

If I can provide more data that helps debugging this please request further
information. I'd be glad to help getting this debugged.

Attachments (0)

Change History (16)

comment:1 follow-up: Changed 4 years ago by jow

The option is called "delay_root", not "root_delay".

Alo make sure that there is no mismatching ".extroot-uuid" file on the disk.

comment:2 in reply to: ↑ 1 Changed 4 years ago by anonymous

Replying to jow:

The option is called "delay_root", not "root_delay".

Alo make sure that there is no mismatching ".extroot-uuid" file on the disk.

Sorry, the variable name in my first posting was wrong. I edited the numeric value
inside /etc/config/fstab with no effect other than more waiting time at startup. To be
sure I checked it again and the mount didn't succeed.

Any other idea?

comment:3 Changed 4 years ago by anonymous

Attach the output of
"block info",
"cat /mnt/.extroot-uuid" (when disk is mounted to /mnt),
"cat /etc/config/fstab"

comment:4 Changed 4 years ago by anonymous

# block info
/dev/mtdblock2: UUID="c967bfe8-4fcabdda-3cf954b5-70bd871f" VERSION="4.0" TYPE="squashfs"
/dev/mtdblock3: TYPE="jffs2"
/dev/sda1: UUID="ee49a705-5e7e-4ff2-9177-b017d78a4806" NAME="EXT_JOURNAL" VERSION="1.0" TYPE="ext3"

/etc/config/fstab:

config 'global'

option anon_swap '0'
option anon_mount '0'
option auto_swap '1'
option auto_mount '1'
option delay_root '40'
option check_fs '0'

config 'mount'

option target '/overlay'
option uuid 'ee49a705-5e7e-4ff2-9177-b017d78a4806'
option enabled '1'

There is no .extroot-uuid. Should this by generated when mounting as overlay?
I'm not using the USB Stick as extroot, I just want to save the overlay data
there (pivot root).

Increasing delay_root doesn't make any difference. The above output was
generated with BARRIER BREAKER (Bleeding Edge, r39504).

logread tells

Thu Feb 10 08:14:11 2014 user.emerg syslog: this file has been obseleted. please call "/sbin/block mount" directly
Thu Feb 10 08:14:11 2014 user.emerg syslog: /dev/mtdblock3 is already mounted

comment:5 Changed 4 years ago by jow

  • Priority changed from normal to response-needed

Attach your dmesg output as well please.

comment:6 Changed 4 years ago by anonymous

Trac threw an error so I uploaded it to pastebin.

http://pastebin.com/j1GVNB9Y

comment:7 Changed 4 years ago by anonymous

Is there a chance of fixing this? Do you need more information?

comment:8 Changed 4 years ago by anonymous

I have the same problem too,
Sat Apr 12 11:40:07 2014 user.emerg syslog: Error: Failed to connect to ubus
Sat Apr 12 11:40:09 2014 user.emerg syslog: this file has been obseleted. please call "/sbin/b
lock mount" directly
Sat Apr 12 11:40:09 2014 user.err syslog: /dev/mtdblock3 is already mounted
Sat Apr 12 11:40:09 2014 user.emerg syslog: block: /dev/mtdblock3 is already mounted

comment:9 Changed 4 years ago by anonymous

i also have the same problem:-(

comment:10 Changed 4 years ago by Bob

I try to setup OpenWRT BARRIER BREAKER (Bleeding Edge, r40846) to TP-Link MR3040 and have the same problem with automount:

Sat Jun  7 16:31:03 2014 user.emerg syslog: Error: Failed to connect to ubus
Sat Jun  7 16:31:05 2014 user.emerg syslog: this file has been obseleted. please call "/sbin/block mount" directly
Sat Jun  7 16:31:05 2014 user.err syslog: /dev/mtdblock3 is already mounted
Sat Jun  7 16:31:05 2014 user.emerg syslog: block: /dev/mtdblock3 is already mounted

comment:11 Changed 4 years ago by Bob

Addition to the previous comment:
I've installed BARRIER BREAKER (Bleeding Edge, r41037) and the problem with automount has gone. Thanks!

comment:12 Changed 4 years ago by anonymous

I also have this problem with r41553 on TP-Link WR842N v2. The same output.

comment:13 follow-up: Changed 4 years ago by anonymous

Fixed by adding 'option target /overlay'. Main problem is that Luci is still using 'option is_rootfs 1' to set overlay instead of 'option target /overlay'.

comment:14 in reply to: ↑ 13 Changed 4 years ago by anonymous

Replying to anonymous:

Fixed by adding 'option target /overlay'. Main problem is that Luci is still using 'option is_rootfs 1' to set overlay instead of 'option target /overlay'.

That fixed my problem, thank you!

comment:15 Changed 3 years ago by anonymous

There exists an issue where

option target '/overlay'

does not mount as the overlay, and the issue appears to be the "/". Eliminating the forward slash eliminates the issue; therefor, the command should be

option target 'overlay'

comment:16 Changed 21 months ago by mikecai

I have the same issue in tl-720n v4 with tf card(16G).

My /etc/config/fstab is:

config global

option anon_swap '0'
option anon_mount '0'
option auto_swap '1'
option auto_mount '1'
option delay_root '15'
option check_fs '0'

config mount

option target '/overlay'
option uuid '8bbd5035-70f8-40ad-9da2-4167abd59293'
option fstype ext4
option options rw,sync
option enabled '1'
option enabled_fsck 0

config swap

option uuid '78b1f160-1ca4-452c-b790-3f4e50020def'
option enabled '1'

config mount

option target '/mnt/sda3'
option uuid 'f45fcdb6-af0b-464c-ba44-07b998ec9881'
option enabled '1'

everythim I run /sbin/block mount it said:
block: /dev/mtdblock3 is already mounted
block: /dev/sda3 is already mounted

and my block info:
root@OpenWrt:/# block info
/dev/mtdblock2: UUID="470f2557-0da2896b-5eaea3ce-11971589" VERSION="4.0" TYPE="squashfs"
/dev/mtdblock3: TYPE="jffs2"
/dev/sda1: UUID="8bbd5035-70f8-40ad-9da2-4167abd59293" NAME="EXT_JOURNAL" VERSION="1.0" TYPE="ext4"
/dev/sda2: UUID="78b1f160-1ca4-452c-b790-3f4e50020def" VERSION="2" TYPE="swap"
/dev/sda3: UUID="f45fcdb6-af0b-464c-ba44-07b998ec9881" NAME="EXT_JOURNAL" VERSION="1.0" TYPE="ext4"

any idea?

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.