Temat: Extroot w luci 1043NDv2 Barrier Breaker 14.07 / LuCI 0.12 Branch

Mam niby ustawiona w GUI partycje jako extroot, ale chyba cos pobaranilem:
https://www.dropbox.com/s/luw39ghr530rk … i.PNG?dl=0

root@OpenWrt:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                    1600       528      1072  33% /
/dev/root                 5376      5376         0 100% /rom
tmpfs                    30664       424     30240   1% /tmp
/dev/mtdblock3            1600       528      1072  33% /overlay
overlayfs:/overlay        1600       528      1072  33% /
tmpfs                      512         0       512   0% /dev
/dev/sda3              3457056     36520   3225208   1% /mnt/sda3

Swap chyba dziala:

root@OpenWrt:~# free
             total         used         free       shared      buffers
Mem:         61332        31064        30268            0         4032
-/+ buffers:              27032        34300
Swap:       131068            0       131068
/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 uuid '5c2b437c-1971-4db1-8795-0590d5b467f0'
        option enabled '1'

config mount
        option device '/dev/sda1'
        option fstype 'ext4'
        option is_rootfs '1'
        option enabled_fsck '1'
        option enabled '0'

config mount
        option enabled '1'
        option device '/dev/sda3'
        option target '/mnt/sda3'
        option fstype 'ext4'
root@OpenWrt:~# blkid
/dev/mtdblock2: TYPE="squashfs"
/dev/sda1: UUID="f34f3c8d-c9ce-4b0c-b3f8-c5921c21ed83" TYPE="ext4" PARTUUID="c3072e18-01"
/dev/sda2: UUID="5c2b437c-1971-4db1-8795-0590d5b467f0" TYPE="swap" PARTUUID="c3072e18-02"
/dev/sda3: UUID="27540b38-69bd-4844-bf73-9ac349506a8d" TYPE="ext4" PARTUUID="c3072e18-03"

Co jest nie tak?

MiniPC 6xRJ45 2Gb, N100, 16GB DDR5, 1TB NVMe (Gargoyle)
Linksys WRT3200ACM (Gargoyle)
Tp-link 1043NDv2 (Gargoyle)

2

Odp: Extroot w luci 1043NDv2 Barrier Breaker 14.07 / LuCI 0.12 Branch

ption device '/dev/sda1' zmien na option uuid f34f3c8d-c9ce-4b0c-b3f8-c5921c21ed83, dodaj option traget /overlay.

option is_rootfs '1'
option enabled_fsck '1'

skasuj, option enabled '0' przestaw na 1. Dokładnie wszystko na odwrót zrobiłeś.  Poradnik mój polecam smile

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3 (edytowany przez badziewiak 2016-08-17 01:21:12)

Odp: Extroot w luci 1043NDv2 Barrier Breaker 14.07 / LuCI 0.12 Branch

EDIT:
W celu uniknięcia przypadkowego zapchania flash, podmieniłem /mnt na /tmp. Zamieszczam kompletne polecenia jakie wykonałem w celu utworzenia extroota. Dotyczy wersji BB i CC.

root@Gargoyle:~# umount /dev/sda1
root@Gargoyle:~# mkfs.ext4 -m 0 /dev/sda1
mke2fs 1.42.12 (29-Aug-2014)
/dev/sda1 contains a ext4 file system
        last mounted on Wed Aug 17 01:06:20 2016
Proceed anyway? (y,n) y
Creating filesystem with 459520 1k blocks and 114912 inodes
Filesystem UUID: ce6a8c73-ba72-4258-9d7a-39fb32e05bf6
Superblock backups stored on blocks:
        8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409

Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

root@Gargoyle:~# block detect > /etc/config/fstab
root@Gargoyle:~# uci set fstab.@mount[0].target=/overlay
root@Gargoyle:~# uci set fstab.@mount[0].enabled=1
root@Gargoyle:~# uci commit fstab

#przepisanie konfiguracji z flash na extroot
root@Gargoyle:~# block detect > /etc/config/fstab
root@Gargoyle:~# uci set fstab.@mount[0].target=/overlay
root@Gargoyle:~# uci set fstab.@mount[0].enabled=1
root@Gargoyle:~# uci commit fstab
root@Gargoyle:~# mkdir /tmp/sda1
root@Gargoyle:~# ls /tmp/sda1
root@Gargoyle:~# mount -t ext4 /dev/sda1 /tmp/sda1
root@Gargoyle:~# cp -R /overlay/* /tmp/sda1
root@Gargoyle:~# umount /dev/sda1
root@Gargoyle:~# sync
root@Gargoyle:~# reboot
root@Gargoyle:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                  436822      2461    430265   1% /
/dev/root                 5888      5888         0 100% /rom
tmpfs                    30524       104     30420   0% /tmp
/dev/sda1               436822      2461    430265   1% /overlay
overlayfs:/overlay      436822      2461    430265   1% /
tmpfs                      512         0       512   0% /dev

Wyglada zatem ze dziala, tylko dziwi mnie kaszana robiona przez GUI Luci.
Dziekuje za pomoc.

MiniPC 6xRJ45 2Gb, N100, 16GB DDR5, 1TB NVMe (Gargoyle)
Linksys WRT3200ACM (Gargoyle)
Tp-link 1043NDv2 (Gargoyle)

4

Odp: Extroot w luci 1043NDv2 Barrier Breaker 14.07 / LuCI 0.12 Branch

Ponieważ luci nie jest dostosowanie do BB (niespodzianka!)

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.