Modify

Opened 4 years ago

Last modified 3 years ago

#14183 new defect

no_ext_root on WDR3600 v1

Reported by: j-a-c-k Owned by: developers
Priority: highest Milestone: Chaos Calmer 15.05
Component: other Version: Trunk
Keywords: Cc:

Description

Just upgraded to 38031. Can't create extroot. Install block-mount kmod-fs-ext4 kmod-usb-storage - OK, Mounting - OK, Copy - OK, Files - OK, edit fstab - OK... reboot - no_ext_root
Please, help!!!
Thanks in advance!!!

Attachments (0)

Change History (10)

comment:1 Changed 4 years ago by anonymous

my tp-link WDR4300 no_ext_root

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

opkg update
opkg install libiwinfo-lua
opkg install luci-app-firewall
opkg install luci-theme-openwrt
opkg install luci-mod-admin-full
opkg install kmod-usb-storage kmod-usb-ohci kmod-usb2 kmod-usb-uhci
opkg install block-mount
opkg install e2fsck
opkg install kmod-fs-ext4
opkg install libext2fs

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

Replying to anonymous:

opkg update
opkg install libiwinfo-lua
opkg install luci-app-firewall
opkg install luci-theme-openwrt
opkg install luci-mod-admin-full
opkg install kmod-usb-storage kmod-usb-ohci kmod-usb2 kmod-usb-uhci
opkg install block-mount
opkg install e2fsck
opkg install kmod-fs-ext4
opkg install libext2fs

my 4300 no_ext_root

comment:4 Changed 4 years ago by anonymous

Any progress on this issue?

comment:5 Changed 4 years ago by petr.stetina@…

In my case USB flash disk /dev/sda1 is mounted during boot only when /etc/config/fstab constains option is_rootfs '1' but is mounted as /mnt/sda1 instead of / or /overlay

comment:6 Changed 4 years ago by petr.stetina@…

...and I have TP-Link TL-WDR4300 v1

comment:7 Changed 3 years ago by keranoz

I cannot get extroot (pivot root) working on Chaos Calmer r42701 either (WDR4300 v1). It looks like it does not use the fstab config file anymore.

I installed all usb packages I think I need (Including kmod-fs-ext4). I can manually mount my usb flashdrive. It gets recognized as /dev/sda(1/2/3...). Writing and reading both work.

Used block mount > /etc/config/fstab
Get this in /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 'mount'

option target '/mnt/sda1'
option uuid '<removed-by-me>'
option enabled '0'

So I changed target to / and enabled to 1. Does not work. Looks like it totally ignores /etc/config/fstab. Even if I just leave it as what block detect reports and just set enabled to 1 and reboot the router, my usb is not automatically mounted. I have 3 primary partitions on the usb, 512mb ext4 (sda1), 100mb swap (sda2), all of the remaining on a fat32 partition wich is sda3. (It's a 16gb usb).

Last edited 3 years ago by keranoz (previous) (diff)

comment:8 Changed 3 years ago by anonymous

Try to increase delay_root to 15 or so.

comment:9 Changed 3 years ago by keranoz

Tried setting it to 15 and 30, both didn't work, thanks for the reply anyways.

comment:10 Changed 3 years ago by keranoz

I tried it again today on r42740 and I got it working: (USB is at /dev/sda1, fully working)

echo > /etc/config/fstab
reboot
block detect > /etc/config/stab

in the fstab config file change target from /dev/sda1 to / and enabled to 1 under config mount.
reboot

13:11 root ~# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,noatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/sda1 on / type ext4 (rw,relatime,data=ordered)
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)

This is, again, on a WDR4300 v1 running r42740.

Last edited 3 years ago by keranoz (previous) (diff)

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.