1 (edytowany przez miguelos 2017-08-24 07:22:11)

Temat: LEDE problem z extroot

Postanowilem zrobic upgrade z CC do LEDE
wszystko poszlo ladnie, ale podczas robienia extroot pojawil sie problem

robie f2fs jak opisane.
za pierwszym razem poszlo wszystko niby ok, ide wg poradnika
http://eko.one.pl/?p=openwrt-externalroot

podmontowalem i skopiowalem konfiguracje

pierwsze zaskoczenie - bo zbootowaniu nie zawieral starej konfiguracji.. (identyczny ugrade robilem tydzien temu bez problemu)
ok, wprowadzilem recznie.. ale kolejny reboot = start z internal flash..

robie ponownie extroota od zera i teraz juz ciagle wywala sie podczas kopiowania starej konfiguracji

root@rtr:~# mkdir -p /tmp/dysk
root@rtr:~# mount /dev/sda1 /tmp/dysk
NTFS signature is missing.
Failed to mount '/dev/sda1': Invalid argument
The device '/dev/sda1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
root@rtr:~# tar -C /overlay -cvf - . | tar -C /tmp/dysk -xf -
./
./.fs_state
./work/
./work/work/
./upper/
tar: can't make dir ./work: No such file or directory
tar: can't create directory './work': No such file or directory
tar: can't make dir ./work/work: No such file or directory
tar: can't make dir ./upper: No such file or directory
./upper/etc/
./upper/etc/rc.d/
tar: can't create directory './upper': No such file or directory
./upper/etc/rc.d/S98sysntpd
tar: can't make dir ./upper/etc: No such file or directory
./upper/etc/samba/
tar: can't create directory './upper/': No such file or directory
./upper/etc/samba/smbpasswd
tar: can't make dir ./upper/: No such file or directory
./upper/etc/samba/secrets.tdb
tar: can't create directory './upper/': No such file or directory
./upper/etc/samba/smb.conf
tar: can't create symlink from ./upper/ to ../init.d/sysntpd: No such file or directory
tar: can't create directory './upper/': No such file or directory
tar: can't make dir ./upper/: No such file or directory
tar: can't create directory './upper/': No such file or directory
tar: can't open './upper/': Is a directory
./upper/etc/shadow-

/sda1 jest typu f2fs
/dev/sda1 on /tmp/dysk type f2fs (rw,relatime,background_gc=on,user_xattr,inline_data,extent_cache,active_logs=6)


po reboocie router znowu wstaje z internal flasha...
co moze byc problemem ? padl pendrive podczas formatu ?

2

Odp: LEDE problem z extroot

Zostaw na razie kopię konfiguracji w spokoju. Zobacz czy wstanie po starcie extroot, jak nie - zobacz co masz w block info, czy zgadza się w fstabem, co jest w logach.

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

3 (edytowany przez miguelos 2017-08-24 09:11:42)

Odp: LEDE problem z extroot

fstab zgadza sie z block info
logi niewiele mowia

root@rtr:~# blkid
/dev/mtdblock2: TYPE="squashfs"
/dev/sda1: UUID="3e0d1d19-fc72-404d-9621-001707ac2388" TYPE="f2fs"



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 '1'

config mount
        option uuid '3e0d1d19-fc72-404d-9621-001707ac2388'
        option target '/overlay'
        option enabled '1'



Thu Aug 24 08:13:16 2017 kern.info kernel: [    5.231042] usb 1-1: new high-speed USB device number 2 using ehci-platform
Thu Aug 24 08:13:16 2017 kern.notice kernel: [    5.453895] random: procd: uninitialized urandom read (4 bytes read, 9 bits of entropy available)
Thu Aug 24 08:13:16 2017 kern.info kernel: [    5.463359] hub 1-1:1.0: USB hub found
Thu Aug 24 08:13:16 2017 kern.info kernel: [    5.471187] hub 1-1:1.0: 4 ports detected
Thu Aug 24 08:13:16 2017 kern.info kernel: [    5.605173] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Thu Aug 24 08:13:16 2017 kern.info kernel: [    5.770966] usb 1-1.1: new high-speed USB device number 3 using ehci-platform
Thu Aug 24 08:13:16 2017 kern.info kernel: [    5.883204] usb-storage 1-1.1:1.0: USB Mass Storage device detected
Thu Aug 24 08:13:16 2017 kern.info kernel: [    5.890317] scsi host0: usb-storage 1-1.1:1.0
Thu Aug 24 08:13:16 2017 kern.notice kernel: [    6.892396] scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
Thu Aug 24 08:13:16 2017 kern.notice kernel: [    6.903256] sd 0:0:0:0: [sda] 62521344 512-byte logical blocks: (32.0 GB/29.8 GiB)
Thu Aug 24 08:13:16 2017 kern.notice kernel: [    6.912435] sd 0:0:0:0: [sda] Write Protect is off
Thu Aug 24 08:13:16 2017 kern.debug kernel: [    6.917316] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
Thu Aug 24 08:13:16 2017 kern.notice kernel: [    6.918048] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Thu Aug 24 08:13:16 2017 kern.info kernel: [    6.937053]  sda: sda1
Thu Aug 24 08:13:16 2017 kern.notice kernel: [    6.943188] sd 0:0:0:0: [sda] Attached SCSI removable disk

4

Odp: LEDE problem z extroot

Trochę wcześniej, na samym początku jest info z czego robi /overlaya. Cały log pokaż od razu po starcie systemu, bez podłączonego wanu czy innych klientów.

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

5 (edytowany przez miguelos 2017-08-24 09:58:43)

Odp: LEDE problem z extroot

Thu Aug 24 08:13:16 2017 user.info kernel: [    8.801322] mount_root: loading kmods from internal overlay
Thu Aug 24 08:13:16 2017 user.info kernel: [    8.843674] kmodloader: loading kernel modules from //etc/modules-boot.d/*
Thu Aug 24 08:13:16 2017 user.info kernel: [    8.852381] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
Thu Aug 24 08:13:16 2017 kern.notice kernel: [    9.070437] jffs2: notice: (455) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
Thu Aug 24 08:13:16 2017 user.info kernel: [    9.086600] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
Thu Aug 24 08:13:16 2017 user.err kernel: [    9.098352] block: extroot: filesystem f2fs not supported by kernel
Thu Aug 24 08:13:16 2017 kern.notice kernel: [    9.140489] jffs2: notice: (452) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
Thu Aug 24 08:13:16 2017 user.info kernel: [    9.157587] mount_root: loading kmods from internal overlay
Thu Aug 24 08:13:16 2017 user.info kernel: [    9.236907] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
Thu Aug 24 08:13:16 2017 user.info kernel: [    9.360914] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
Thu Aug 24 08:13:16 2017 user.info kernel: [    9.508566] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
Thu Aug 24 08:13:16 2017 user.err kernel: [    9.518390] block: check_filesystem: /usr/sbin/fsck.f2fs not found
Thu Aug 24 08:13:16 2017 user.err kernel: [    9.652774] block: extroot: failed to write UUID to /tmp/extroot/overlay/etc/.extroot-uuid: 2 (No such file or directory)
Thu Aug 24 08:13:16 2017 kern.err kernel: [    9.666126] overlayfs: failed to resolve '/overlay/upper': -2
Thu Aug 24 08:13:16 2017 user.err kernel: [    9.672843] mount_root: mount failed: No such device, options lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work
Thu Aug 24 08:13:16 2017 user.err kernel: [    9.683875] mount_root: switching to extroot failed - continue normal boot
Thu Aug 24 08:13:16 2017 user.info kernel: [    9.713657] mount_root: switching to jffs2 overlay

block: check_filesystem: /usr/sbin/fsck.f2fs not found
failed to resolve '/overlay/upper': -2

to jest ciagle log ze skopiowanym konfigiem, wiecej nie robie bo siedze zdalnie a zrobienie extroot teraz odetnie mnie od neta
fsck.f2fs na pewno jest zainstalowany przez :
opkg install block-mount kmod-fs-f2fs f2fsck

6

Odp: LEDE problem z extroot

Zrób extroota na ext4.

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

7 (edytowany przez miguelos 2017-08-24 12:22:53)

Odp: LEDE problem z extroot

Cezary napisał/a:

Zrób extroota na ext4.

jakis konkretny powod ? bede probowac jeszcze bez kopiowania konfigu, zobacze czym sie roznia
ale wyglada na to, ze nie znajduje modulu do obslugi f2fs, tak ?

8

Odp: LEDE problem z extroot

filesystem f2fs not supported by kernel

Coś mało jasnego w powyższym?

9

Odp: LEDE problem z extroot

Nie spojrzałeś dalej. Powiedział że nie ma f2fs wkompilowanego w kenrel a później poszedł i załadował moduły z flash. I próbował zrobić extroota.

Bardziej niepokojące jest to że potem nie umiał zrobić pliku i dlatego darował sobie składanie extroota.

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

10

Odp: LEDE problem z extroot

to jakim cudem dzialalo to za pierwszym razem (bo extroot sie zamontowal, ale bez plikow konfiguracyjnych)
oraz - na tym samym obrazie, ale innym routerku + te same kroki zgodnie z guidem = wszystko poszlo poprawnie...

11

Odp: LEDE problem z extroot

Nie wiem, ale pisze on że nie może i już. Zmuś go smile Dlatego zaproponowałem żebyś na zwykłym ext4 zrobił.

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

12 (edytowany przez miguelos 2017-08-24 13:21:37)

Odp: LEDE problem z extroot

dzialajace

Wed Aug 23 13:51:05 2017 kern.notice kernel: [    7.444736] sd 0:0:0:0: [sda] Attached SCSI removable disk
Wed Aug 23 13:51:05 2017 user.info kernel: [    7.804826] mount_root: loading kmods from internal overlay
Wed Aug 23 13:51:05 2017 user.info kernel: [    7.847210] kmodloader: loading kernel modules from //etc/modules-boot.d/*
Wed Aug 23 13:51:05 2017 user.info kernel: [    7.855911] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
Wed Aug 23 13:51:05 2017 kern.notice kernel: [    8.073019] jffs2: notice: (455) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
Wed Aug 23 13:51:05 2017 user.info kernel: [    8.089283] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
Wed Aug 23 13:51:05 2017 user.err kernel: [    8.101320] block: extroot: filesystem f2fs not supported by kernel
Wed Aug 23 13:51:05 2017 kern.notice kernel: [    8.143945] jffs2: notice: (452) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
Wed Aug 23 13:51:05 2017 user.info kernel: [    8.161314] mount_root: loading kmods from internal overlay
Wed Aug 23 13:51:05 2017 user.info kernel: [    8.241107] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
Wed Aug 23 13:51:05 2017 user.info kernel: [    8.365497] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
Wed Aug 23 13:51:05 2017 user.info kernel: [    8.504701] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
Wed Aug 23 13:51:05 2017 user.err kernel: [    8.514558] block: check_filesystem: /usr/sbin/fsck.f2fs not found
Wed Aug 23 13:51:05 2017 user.info kernel: [    9.202529] mount_root: switched to extroot

nie dzialajace :

Thu Aug 24 08:13:16 2017 user.info kernel: [    8.801322] mount_root: loading kmods from internal overlay
Thu Aug 24 08:13:16 2017 user.info kernel: [    8.843674] kmodloader: loading kernel modules from //etc/modules-boot.d/*
Thu Aug 24 08:13:16 2017 user.info kernel: [    8.852381] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
Thu Aug 24 08:13:16 2017 kern.notice kernel: [    9.070437] jffs2: notice: (455) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
Thu Aug 24 08:13:16 2017 user.info kernel: [    9.086600] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
Thu Aug 24 08:13:16 2017 user.err kernel: [    9.098352] block: extroot: filesystem f2fs not supported by kernel
Thu Aug 24 08:13:16 2017 kern.notice kernel: [    9.140489] jffs2: notice: (452) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
Thu Aug 24 08:13:16 2017 user.info kernel: [    9.157587] mount_root: loading kmods from internal overlay
Thu Aug 24 08:13:16 2017 user.info kernel: [    9.236907] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
Thu Aug 24 08:13:16 2017 user.info kernel: [    9.360914] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
Thu Aug 24 08:13:16 2017 user.info kernel: [    9.508566] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
Thu Aug 24 08:13:16 2017 user.err kernel: [    9.518390] block: check_filesystem: /usr/sbin/fsck.f2fs not found
Thu Aug 24 08:13:16 2017 user.err kernel: [    9.652774] block: extroot: failed to write UUID to /tmp/extroot/overlay/etc/.extroot-uuid: 2 (No such file or directory)
Thu Aug 24 08:13:16 2017 kern.err kernel: [    9.666126] overlayfs: failed to resolve '/overlay/upper': -2
Thu Aug 24 08:13:16 2017 user.err kernel: [    9.672843] mount_root: mount failed: No such device, options lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work
Thu Aug 24 08:13:16 2017 user.err kernel: [    9.683875] mount_root: switching to extroot failed - continue normal boot
Thu Aug 24 08:13:16 2017 user.info kernel: [    9.713657] mount_root: switching to jffs2 overlay

13

Odp: LEDE problem z extroot

A weź użyj inny pendrive.

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

14

Odp: LEDE problem z extroot

bede sie bawic po poludniu - przeoram go jeszcze na fat i z powrotem na f2fs
czy guide dla LEDE bedzie wygladac identycznie tylko z mkfs.ext4 ?
poprzednio mialem ext2 bo gdzies wyczytalem, ze ext4 za bardzo "orze" flashdiski przez pliki journalowe...

15

Odp: LEDE problem z extroot

Tak instrukcja jest identyczna jak dla CC. Możesz nawet sobie zrobić ext4 bez kroniki. Ale w sumie openwrt przecież prawie wcale nie zapisuje we flash, chyba że jawnie sam to zrobisz.

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

16

Odp: LEDE problem z extroot

A jesli mam 1 partycje do wszystkiego ?
tzn oprocz extroot mam rowniez share po sambie + czasami transmission cos pociagnie
z tego co znalazlem to bedzie "mkfs.ext4 -O"

17

Odp: LEDE problem z extroot

A to wtedy jest więcej zapisów. Zwłaszcza przez ten transmission...

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

18

Odp: LEDE problem z extroot

do tej pory mialem ext2, sprobuje zatem ext4 bez kroniki jesli f2fs nie da rady..

19

Odp: LEDE problem z extroot

ext4 dziala bez zarzutu

kolejna proba zrobienia f2fs ujawnia troche wiecej informacji

Thu Aug 24 17:27:32 2017 user.info kernel: [    8.809687] mount_root: loading kmods from internal overlay
Thu Aug 24 17:27:32 2017 user.info kernel: [    8.852309] kmodloader: loading kernel modules from //etc/modules-boot.d/*
Thu Aug 24 17:27:32 2017 user.info kernel: [    8.860813] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
Thu Aug 24 17:27:32 2017 kern.notice kernel: [    9.079438] jffs2: notice: (456) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
Thu Aug 24 17:27:32 2017 user.info kernel: [    9.095718] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
Thu Aug 24 17:27:32 2017 user.err kernel: [    9.107236] block: extroot: filesystem f2fs not supported by kernel
Thu Aug 24 17:27:32 2017 kern.notice kernel: [    9.149716] jffs2: notice: (453) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
Thu Aug 24 17:27:32 2017 user.info kernel: [    9.166912] mount_root: loading kmods from internal overlay
Thu Aug 24 17:27:32 2017 user.info kernel: [    9.246092] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
Thu Aug 24 17:27:32 2017 user.info kernel: [    9.377406] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
Thu Aug 24 17:27:32 2017 user.info kernel: [    9.517740] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
Thu Aug 24 17:27:32 2017 user.err kernel: [    9.527500] block: check_filesystem: /usr/sbin/fsck.f2fs not found
Thu Aug 24 17:27:32 2017 kern.err kernel: [    9.673951] F2FS-fs (sda1): Failed to read root inode
Thu Aug 24 17:27:32 2017 kern.info kernel: [    9.839758] attempt to access beyond end of device
Thu Aug 24 17:27:32 2017 kern.info kernel: [    9.844698] sda1: rw=16, want=22642400320, limit=62519296
Thu Aug 24 17:27:32 2017 kern.err kernel: [    9.850903] F2FS-fs (sda1): Failed to read root inode
Thu Aug 24 17:27:32 2017 user.err kernel: [    9.878205] block: extroot: mounting /dev/sda1 (f2fs) on /tmp/extroot/overlay failed: 5 (I/O error)
Thu Aug 24 17:27:32 2017 user.info kernel: [    9.888392] mount_root: switching to jffs2 overlay
Thu Aug 24 17:27:32 2017 user.warn kernel: [    9.901027] urandom-seed: Seeding with /etc/urandom.seed

googlowanie prowadzi do dyskusji, gdzie jest wzmianka, ze f2fs w wersji 1.7 jest zwalony i 1.8 jest to naprawione
https://github.com/openwrt/packages/issues/1848

tymczasem wersja na LEDE juz jest 1.8.0 :

root@rtr:~# mkfs.f2fs /dev/sda1

        F2FS-tools: mkfs.f2fs Ver: 1.8.0 (2017-02-03)

Info: Debug level = 0

20

Odp: LEDE problem z extroot

Np tak, 1.8 jest od dawna. A ty miałeś 1.7? To czego używałeś?

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

21

Odp: LEDE problem z extroot

nie, mam 1.8, najnowsze LEDE z eko.one.pl
a mimo to nie dziala, moze z racji wielkosci dysku (32GB)..

root@rtr:~# opkg list-installed | grep f2f
f2fsck - 1.8.0-1
kmod-fs-f2fs - 4.4.79-1
libf2fs - 1.8.0-1
mkf2fs - 1.8.0-1