OpenWrt Forum Archive

Topic: fstab don't start (latest trunk - TL-MR3220)

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, I follow all steps on wiki and after I check https://forum.openwrt.org/viewtopic.php?pid=142907
But in my case the problem is that it does not start in any way, though I can manually mount everything without problems.

Maybe I've run into a bug, because the most strange is that when I connect the USB drive lost automatic DNS settings on the modem 3G (and I must manually configure clients to point to ISP DNS). I had thought that could be related to energy consumption, but before checking that all was a failed DNS ... (wget say me 'bad address 'downloads.openwrt.org' but I can ping to DNS server...).

The truth is that I can not think what to do. As I've tried the suggestions of the message https://forum.openwrt.org/viewtopic.php?pid=142907 but can not get about to start.

Goal is: sda1 = overlay, sda2 = home, and sda3 = swap (I use UUID better), and now for testing I have:

Edited:

config 'global' 'automount'
        option 'from_fstab' '1'
        option 'anon_mount' '1'

config 'global' 'autoswap'
        option 'from_fstab' '1'
        option 'anon_swap' '1'

config 'mount'
        option 'target' '/mnt/sda1'
        option 'device' 'UUID=aa3e8fc7-5921-49c1-9933-99a9d392a7ce'
        option 'fstype' 'ext3'
        option 'options' 'rw,sync'
        option 'enabled' '1'
        option 'enabled_fsck' '0'

config 'mount'
        option 'target' '/mnt/sda2'
        option 'device' 'UUID=d3e5f1e0-7877-4268-8656-a6dd6e2131db'
        option 'fstype' 'ext3'
        option 'options' 'rw,sync'
        option 'enabled' '1'
        option 'enabled_fsck' '0'

config 'swap'
        option 'device' 'UUID=7310a383-4ace-4564-92a3-a3b286746777'
        option 'enabled' '0'

With option 'anon_mount' '1' & option 'anon_swap' '1' I get it work on hotplug.

Automatic mount over /mnt/sda1 is working, but over /overlay configuration is missed...

Regards.

(Last edited by almursi on 28 Jan 2012, 21:39)

Hi, I was lucky and was able to configure it, but instead of /overlay I use a rootfs.
A package that I have included in the compilation is autofs4 (perhaps the missing to function properly).

Sysupgrade and fist /etc/config/fstab

config global automount
        option from_fstab 1
        option anon_mount 1

config global autoswap
        option from_fstab 1
        option anon_swap 0

config mount
        option target   /
        option device   /dev/sda1
        option fstype   ext3
        option options  rw,sync
        option enabled  1
        option enabled_fsck 0

config swap
        option device   /dev/sda3
        option enabled  0

After boot I have a /tmp/whole_root-disabled

mkdir -p /tmp/cproot
mount --bind / /tmp/cproot
tar -C /tmp/cproot -cvf - . | tar -C /tmp/whole_root-disabled -xf -
umount /tmp/cproot
/etc/init.d/fstab whole_root_enable

After boot I have a rootfs working. Now a fix swap and ready smile.

Now that I have more space I try to find problem with dns server....

Regards.

Hi, after use of USB disk I have a /tmp/resolv.conf.ppp but it's ignored... :-? I'd copy /tmp/resolv.conf.ppp to /tmp/resolv.conf and I have dns working again (Edited: on LuCI I see a resolve file /tmp/resolv.conf.auto, that I change to /tmp/resolv.conf.ppp). Regards.

(Last edited by almursi on 28 Jan 2012, 23:57)

I have the same Router and use it with an overlayd Root on an 4GB USB-Stick that is connect togeher with an USB-Sound Device through an simple hub.
I took the folowing steps (after installing the firmware and setting up the lan so that opkg can work, of course)
1. starting (!) fstab like explained at http://wiki.openwrt.org/doc/uci/fstab
2. Setting up the rest as explained at https://wiki.aseith.com/pages/viewpage. … Id=4161740 (this is in german, but the code is universal, I would say ;-) )

That worked for me, I use openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin as firmware-version from http://downloads.openwrt.org/snapshots/trunk/ar71xx/ which I downloaded at the 22.01.

hth,
-mud-

Hi, thanks Mudhenn, but in german I don't understand any smile. However the trick was to do in the first login after sysupgrade, because that is what has allowed me to generate the rootfs properly.

root@OpenWrt:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                 1038120     46268    939116   5% /
/dev/root                 2304      2304         0 100% /rom
tmpfs                    14756       144     14612   1% /tmp
tmpfs                      512         0       512   0% /dev
/dev/sda1              1038120     46268    939116   5% /
/dev/mtdblock2            2304      2304         0 100% /mnt/mtdblock2
/dev/sda2              2306072     69036   2119892   3% /mnt/sda2
root@OpenWrt:~# free
             total         used         free       shared      buffers
Mem:         29508        22528         6980            0         2388
-/+ buffers:              20140         9368
Swap:       509948            0       509948


Regards.

The discussion might have continued from here.