Extroot (/overlay) auto mount problem on boot

Hi all,

I am using "LEDE Reboot 17.01.0 r3205-59508e3" on Linksys WRT1900ACS. And I have a MicroSD on Huawei E173 with 3 partitions connected via USB. I found it cannot mount (/overlay) on boot by default. But the swap and /Start mount points can be mounted automatically without problem. So I need to manually mount it via ssh each time reboot. Anyone have this similar problem or any idea please?

block info:
/dev/sda1: UUID="89fd69dd-5de7-4561-9ff7-efc4de277852" VERSION="1.0" MOUNT="/overlay" TYPE="ext4"
/dev/sda2: VERSION="1" TYPE="swap"
/dev/sda3: UUID="349e7107-fb32-4eae-b94a-fdf26b23a9dd" VERSION="1.0" MOUNT="/Start" TYPE="ext4"

/etc/config/fstab:
config global
option anon_swap '0'
option anon_mount '0'
option auto_swap '1'
option auto_mount '1'
option delay_root '5'
option check_fs '0'

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

config mount
option target '/Start'
option uuid '349e7107-fb32-4eae-b94a-fdf26b23a9dd'
option enabled '1'

config mount
option uuid '89fd69dd-5de7-4561-9ff7-efc4de277852'
option target '/overlay'
option enabled '1'

root@lede:~# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 2560 2560 0 100% /rom
tmpfs 256804 784 256020 0% /tmp
/dev/ubi0_1 1998672 12084 1865348 1% /overlay
overlayfs:/overlay 24196 3464 19460 15% /
ubi1:syscfg 30276 244 28448 1% /tmp/syscfg
tmpfs 512 0 512 0% /dev
/dev/sda3 13066736 40984 12342284 0% /Start
/dev/sda1 1998672 12084 1865348 1% /overlay

Thanks!

That is your "/etc/config/fstab" file after the USB partition has been mounted; now show us the contents of the "/etc/config/fstab" file before the USB partition has been mounted, as seen by the device on boot.

Hi, Thanks for the reply. I have just reboot the device and didn't do any manual mount, please find the information:

[   20.533621] sd 5:0:0:0: [sda] 30881792 512-byte logical blocks: (15.8 GB/14.7 GiB)
[   20.542098] sd 5:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   20.554894]  sda: sda1 sda2 sda3
[   20.671376] ieee80211 phy1: change: 0x40
[   20.871375] ieee80211 phy1: change: 0x40
[   21.071369] ieee80211 phy1: change: 0x40
[   21.271374] ieee80211 phy1: change: 0x40
[   21.301191] IPv6: ADDRCONF(NETDEV_CHANGE): wlan2: link becomes ready
[   21.307646] br-lan: port 2(wlan2) entered forwarding state
[   21.313184] br-lan: port 2(wlan2) entered forwarding state
[   21.471378] ieee80211 phy1: change: 0x40
[   21.671403] ieee80211 phy1: change: 0x40
[   21.764423] ieee80211 phy1: change: 0x100
[   21.832792] ieee80211 phy1: change: 0x100
[   21.845841] ieee80211 phy1: change: 0x42
[   21.951360] br-lan: port 3(wlan0) entered forwarding state
[   22.007437] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   22.013885] br-lan: port 4(wlan1) entered forwarding state
[   22.019416] br-lan: port 4(wlan1) entered forwarding state
[   23.311363] br-lan: port 2(wlan2) entered forwarding state
[   24.011365] br-lan: port 4(wlan1) entered forwarding state
[   29.423482] Adding 1020k swap on /dev/sda2.  Priority:-1 extents:1 across:1020k
[   30.265054] EXT4-fs (sda3): recovery complete
[   30.269438] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts:
root@lede:~# cat /etc/config/fstab

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

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

config mount
        option target '/Start'
        option uuid '349e7107-fb32-4eae-b94a-fdf26b23a9dd'
        option enabled '1'

config mount
        option uuid '89fd69dd-5de7-4561-9ff7-efc4de277852'
        option target '/overlay'
        option enabled '1'

root@lede:~# mount
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/ubi0_1 on /overlay type ubifs (rw,noatime)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
ubi1:syscfg on /tmp/syscfg type ubifs (rw,relatime)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
/dev/sda3 on /Start type ext4 (rw,relatime,data=ordered)

I would try specifying the filesystem type at fstab; it's the only difference that I see with respect to my configuration.

Thanks again. It already ext4 as shown in luCI. I am thinking to format the microSD again to see if it make the difference.