1 (edytowany przez Otyniak 2014-04-02 20:32:46)

Temat: TL WDR-3500 - problemy z konfiguracją

Witam,
po rozeznaniu w temacie zdecydowałem się na podłaczenie do routera pendrive 64GB podzielonego na 2 partycje (extroot 256MB i dane - reszta).
Partycje przygotowałem fdiskiem i sformatowałem:
mkfs.ext4 -O ^has_journal -m 0 /dev/sdaX
Następnie konfiguracja zgodnie z tutorialem o montowaniu nośników. Wszystko wygląda ok, ale jakikolwiek utworzony katalog na partycji z danymi znika po restarcie routera, a własciwie konsola sygnalizuje błąd przy próbie wylistowania zawartości partycji sda2:

 root@Gargoyle:~# ls /tmp/usb_mount/2f594974-6edf-48b4-94fc-eb012dbebe8c
ls: /tmp/usb_mount/2f594974-6edf-48b4-94fc-eb012dbebe8c/DLNA: Input/output error
lost+found 

Poniżej ustawienia fstab:

 root@Gargoyle:~# uci show fstab
fstab.automount=global
fstab.automount.from_fstab=1
fstab.automount.anon_mount=0
fstab.autoswap=global
fstab.autoswap.from_fstab=1
fstab.autoswap.anon_swap=0
fstab.@mount[0]=mount
fstab.@mount[0].device=/dev/sda1
fstab.@mount[0].fstype=ext4
fstab.@mount[0].target=/overlay
fstab.@mount[0].options=rw,noatime
fstab.@mount[0].enabled=1
fstab.@mount[0].enabled_fsck=1
fstab.@mount[0].uuid=d459c205-96aa-416d-b353-8a14042d5365
fstab.@mount[0].is_roots=1
fstab.@swap[0]=swap
fstab.@swap[0].device=/dev/sda2
fstab.@swap[0].enabled=0 

Ustawienia samba:

 root@Gargoyle:~# uci show samba
samba.global=samba
samba.global.workgroup=DOM
samba.sda2=sambashare
samba.sda2.name=SDA2
samba.sda2.path=/tmp/usb_mount/2f594974-6edf-48b4-94fc-eb012dbebe8c
samba.sda2.create_mask=0777
samba.sda2.dir_mask=0777
samba.sda2.browseable=yes
samba.sda2.read_only=no
samba.sda2.guest_ok=no
samba.sda2.users_rw=admin 

Czy ma ktoś pomysł co jeszcze robie źle? Dodam, że usługi sieciowe (dostęp do internetu, wi-fi, firewall) działają bez zarzutu po kazdym restarcie.

2

Odp: TL WDR-3500 - problemy z konfiguracją

Logi patrz (logread) i patrz czy nie masz błędów z nośnikiem związanych

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

3

Odp: TL WDR-3500 - problemy z konfiguracją

Podmieniłem jeszcze ustawienia fstaba (te co wcześniej wkleiłem były startowe).

Poniżej fragment logread - nie bardzo wiem czego szukac i jak to czytać...

 Apr  2 21:29:13 Gargoyle daemon.info hostapd: wlan0: STA 00:26:5e:30:9f:5c IEEE 802.11: authenticated
Apr  2 21:29:13 Gargoyle daemon.info hostapd: wlan0: STA 00:26:5e:30:9f:5c IEEE 802.11: associated (aid 4)
Apr  2 21:29:13 Gargoyle daemon.info hostapd: wlan0: STA 00:26:5e:30:9f:5c WPA: pairwise key handshake completed (RSN)
Apr  2 21:29:14 Gargoyle daemon.info dnsmasq[1754]: started, version 2.66 cachesize 150
Apr  2 21:29:14 Gargoyle daemon.info dnsmasq[1754]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth
Apr  2 21:29:14 Gargoyle daemon.info dnsmasq-dhcp[1754]: DHCP, IP range 192.168.1.2 -- 192.168.1.12, lease time 12h
Apr  2 21:29:14 Gargoyle daemon.info dnsmasq[1754]: using local addresses only for domain lan
Apr  2 21:29:14 Gargoyle daemon.info dnsmasq[1754]: reading /tmp/resolv.conf.auto
Apr  2 21:29:14 Gargoyle daemon.info dnsmasq[1754]: using nameserver 213.134.134.134#53
Apr  2 21:29:14 Gargoyle daemon.info dnsmasq[1754]: using nameserver 85.128.107.242#53
Apr  2 21:29:14 Gargoyle daemon.info dnsmasq[1754]: using nameserver 213.134.134.134#53
Apr  2 21:29:14 Gargoyle daemon.info dnsmasq[1754]: using nameserver 85.128.107.242#53
Apr  2 21:29:14 Gargoyle daemon.info dnsmasq[1754]: using local addresses only for domain lan
Apr  2 21:29:14 Gargoyle daemon.info dnsmasq[1754]: read /etc/hosts - 6 addresses
Apr  2 21:29:14 Gargoyle daemon.info dnsmasq-dhcp[1754]: read /etc/ethers - 4 addresses
Apr  2 21:29:14 Gargoyle user.info sysinit: ERROR: No valid dynamic DNS service configurations defined
Apr  2 21:29:14 Gargoyle user.info sysinit: (Did you specify correct configuration file path?)
Apr  2 21:29:15 Gargoyle user.info sysinit: setting up led USB
Apr  2 21:29:15 Gargoyle user.info sysinit: setting up led WLAN2G
Apr  2 21:29:17 Gargoyle daemon.info dnsmasq-dhcp[1754]: DHCPDISCOVER(br-lan) 00:1b:77:04:49:2a
Apr  2 21:29:17 Gargoyle daemon.info dnsmasq-dhcp[1754]: DHCPOFFER(br-lan) 192.168.1.3 00:1b:77:04:49:2a
Apr  2 21:29:17 Gargoyle daemon.info dnsmasq-dhcp[1754]: DHCPREQUEST(br-lan) 192.168.1.3 00:1b:77:04:49:2a
Apr  2 21:29:17 Gargoyle daemon.info dnsmasq-dhcp[1754]: DHCPACK(br-lan) 192.168.1.3 00:1b:77:04:49:2a GR4-0011637
Apr  2 21:29:17 Gargoyle daemon.info dnsmasq-dhcp[1754]: DHCPREQUEST(br-lan) 192.168.1.4 00:26:5e:30:9f:5c
Apr  2 21:29:17 Gargoyle daemon.info dnsmasq-dhcp[1754]: DHCPACK(br-lan) 192.168.1.4 00:26:5e:30:9f:5c Delik
Apr  2 21:29:17 Gargoyle daemon.info dnsmasq-dhcp[1754]: DHCPDISCOVER(br-lan) 94:44:44:8a:9b:73
Apr  2 21:29:17 Gargoyle daemon.info dnsmasq-dhcp[1754]: DHCPOFFER(br-lan) 192.168.1.9 94:44:44:8a:9b:73
Apr  2 21:29:18 Gargoyle kern.warn kernel: [   69.540000] disktype: sending ioctl 5305 to a partition!
Apr  2 21:29:18 Gargoyle kern.warn kernel: [   69.540000] disktype: sending ioctl 5305 to a partition!
Apr  2 21:29:18 Gargoyle kern.warn kernel: [   69.620000] EXT4-fs (sda2): warning: mounting fs with errors, running e2fsck is recommended
Apr  2 21:29:18 Gargoyle kern.info kernel: [   69.660000] EXT4-fs (sda2): mounted filesystem without journal. Opts: (null)
Apr  2 21:29:18 Gargoyle daemon.info dnsmasq-dhcp[1754]: DHCPREQUEST(br-lan) 192.168.1.9 94:44:44:8a:9b:73
Apr  2 21:29:18 Gargoyle daemon.info dnsmasq-dhcp[1754]: DHCPACK(br-lan) 192.168.1.9 94:44:44:8a:9b:73 TV
Apr  2 21:29:20 Gargoyle kern.warn kernel: [   71.810000] disktype: sending ioctl 5305 to a partition!
Apr  2 21:29:20 Gargoyle kern.warn kernel: [   71.810000] disktype: sending ioctl 5305 to a partition!
Apr  2 21:29:20 Gargoyle kern.warn kernel: [   71.890000] EXT4-fs (sda2): warning: mounting fs with errors, running e2fsck is recommended
Apr  2 21:29:20 Gargoyle kern.info kernel: [   71.930000] EXT4-fs (sda2): mounted filesystem without journal. Opts: (null)
Apr  2 21:29:23 Gargoyle kern.warn kernel: [   75.120000] disktype: sending ioctl 5305 to a partition!
Apr  2 21:29:23 Gargoyle kern.warn kernel: [   75.120000] disktype: sending ioctl 5305 to a partition!
Apr  2 21:29:23 Gargoyle kern.warn kernel: [   75.270000] EXT4-fs (sda2): warning: mounting fs with errors, running e2fsck is recommended
Apr  2 21:29:23 Gargoyle kern.info kernel: [   75.310000] EXT4-fs (sda2): mounted filesystem without journal. Opts: (null)
Apr  2 21:29:28 Gargoyle user.notice firewall: Reloading firewall due to ifup of wan (eth1)
Apr  2 21:29:48 Gargoyle authpriv.info dropbear[2850]: Child connection from 192.168.1.3:5980
Apr  2 21:29:56 Gargoyle authpriv.notice dropbear[2850]: Password auth succeeded for 'root' from 192.168.1.3:5980
Apr  2 21:29:59 Gargoyle kern.crit kernel: [  110.360000] EXT4-fs error (device sda2): ext4_lookup:1044: inode #2: comm ls: deleted inode referenced: 1572865
Apr  2 21:30:20 Gargoyle kern.warn kernel: [  132.010000] ipt_bandwidth: timezone shift of 120 minutes detected, adjusting
Apr  2 21:30:20 Gargoyle kern.warn kernel: [  132.020000]                old minutes west=0, new minutes west=-120 

4

Odp: TL WDR-3500 - problemy z konfiguracją

Zacznijmy od tego że masz błędy na nośniku. Więc go odmontuj/wyłącz extroota i sprawdź system plików.

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

5

Odp: TL WDR-3500 - problemy z konfiguracją

Te błędy pojawiają się właśnie wtedy kiedy utworze nowy katalog, przypisze mu uprawnienia i zrestartuje router...

Wykonałem e2fsck na tej partycji (wszystkie monity potwierdzałem). Jak teraz na wyczyszczonej partycji utworze katalog i wykonam restart - błędy się znów pojawią...

 root@Gargoyle:~# e2fsck /dev/sda2
e2fsck 1.42.4 (12-June-2012)
/dev/sda2 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Entry 'DLNA' in / (2) has deleted/unused inode 1572865.  Clear<y>? yes
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Inode 2 ref count is 4, should be 3.  Fix<y>? yes
Pass 5: Checking group summary information
Block bitmap differences:  +(2097152--2105375) +(2621440--2629663) +(2654208--2655232) +(3145728--3153951) +(3670016--3678239) +(4096000--4097024) +(4194304--4202527) +(4718592--4726815) +(5242880--5251103) +(5767168--5775391) +(6291456--6299679) +(6815744--6823967) +(7340032--7348255) +(7864320--7872543) +(7962624--7963648) +(8388608--8396831) +(8912896--8921119) +(9437184--9445407) +(9961472--9969695) +(10485760--10493983) +(11010048--11018271) +(11239424--11240448) +(11534336--11542559) +(12058624--12066847) +(12582912--12591135) +(13107200--13115423) +(13631488--13639711) +(14155776--14163999) +(14680064--14688287) +(15204352--15212575) +(15728640--15736863) +(16252928--16252929) +(16252944--16252945) +(16252960--16253983)
Fix<y>? yes
Free blocks count wrong for group #192 (24543, counted=24544).
Fix<y>? yes
Free blocks count wrong (16048903, counted=16048904).
Fix<y>? yes
Free inodes count wrong for group #192 (8191, counted=8192).
Fix<y>? yes
Directories count wrong for group #192 (1, counted=0).
Fix<y>? yes
Free inodes count wrong (4079604, counted=4079605).
Fix<y>? yes

/dev/sda2: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sda2: 11/4079616 files (0.0% non-contiguous), 269303/16318207 blocks 

6

Odp: TL WDR-3500 - problemy z konfiguracją

To podłącz inny pendrive. Z jakiegoś powodu psuje się system plików i na 99% jest to problem z odłączaniem się usb.

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

7

Odp: TL WDR-3500 - problemy z konfiguracją

Domyślam się że jeśli na innym penie pójdzie wszystko dobrze - wniosek: uszkodzony nośnik?
W nocy zrobie test na innym (4GB)...

A może sformatować tą partycję z innym systemem plików? Jaki inny polecasz do takiej konfiguracji?

8

Odp: TL WDR-3500 - problemy z konfiguracją

Dobrze zrobiłeś system plików.

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

9

Odp: TL WDR-3500 - problemy z konfiguracją

Ok - dzięki za dzisiejszą pomoc - jutro wrzuce info czy na innym pendrive mam takie same problemy.

10

Odp: TL WDR-3500 - problemy z konfiguracją

...kontynując temat. Zrobiłem tą samą konfigurację na innym pendrive i tu wszystko jest ok. Moge tworzyć dowolne katalogi i restartować router. System plików zostaje bez błędów, katalogi są widoczne. Log z tej próby:

 Jan  1 01:00:02 Gargoyle daemon.info hostapd: wlan0: STA 94:44:44:8a:9b:73 IEEE 802.11: 

authenticated
Jan  1 01:00:02 Gargoyle daemon.info hostapd: wlan0: STA 94:44:44:8a:9b:73 IEEE 802.11: 

associated (aid 1)
Jan  1 01:00:02 Gargoyle user.notice usb-modeswitch: 1-1:1.0: Manufacturer=SanDisk 

Product=Cruzer_Micro Serial=4527721B5251B019
Jan  1 01:00:02 Gargoyle daemon.info hostapd: wlan0: STA 94:44:44:8a:9b:73 WPA: pairwise key 

handshake completed (RSN)
Jan  1 01:00:02 Gargoyle daemon.info hostapd: wlan0: STA 44:33:4c:b8:14:de IEEE 802.11: 

authenticated
Jan  1 01:00:02 Gargoyle daemon.info hostapd: wlan0: STA 44:33:4c:b8:14:de IEEE 802.11: 

associated (aid 2)
Jan  1 01:00:02 Gargoyle authpriv.info dropbear[1365]: Running in background
Jan  1 01:00:02 Gargoyle daemon.crit httpd_gargoyle[1393]: bind 0.0.0.0 - Address already in use
Jan  1 01:00:02 Gargoyle daemon.crit httpd_gargoyle[1393]: bind 0.0.0.0 - Address already in use
Jan  1 01:00:02 Gargoyle daemon.warn httpd_gargoyle[1397]: started as root without requesting 

chroot(), warning only
Jan  1 01:00:02 Gargoyle daemon.notice httpd_gargoyle[1397]: httpd_gargoyle/1.0 14mar2008 

starting on Gargoyle, port 80
Jan  1 01:00:02 Gargoyle daemon.info hostapd: wlan0: STA 00:1b:77:04:49:2a IEEE 802.11: 

authenticated
Jan  1 01:00:02 Gargoyle daemon.info hostapd: wlan0: STA 00:1b:77:04:49:2a IEEE 802.11: 

associated (aid 3)
Jan  1 01:00:02 Gargoyle daemon.info hostapd: wlan0: STA 00:1b:77:04:49:2a WPA: pairwise key 

handshake completed (RSN)
Jan  1 01:00:03 Gargoyle daemon.info hostapd: wlan0: STA 44:33:4c:b8:14:de WPA: pairwise key 

handshake completed (RSN)
Jan  1 01:00:04 Gargoyle kern.warn kernel: [   60.750000] disktype: sending ioctl 5305 to a partition!
Jan  1 01:00:04 Gargoyle kern.warn kernel: [   60.760000] disktype: sending ioctl 5305 to a partition!
Jan  1 01:00:04 Gargoyle kern.info kernel: [   61.270000] EXT4-fs (sda2): mounted filesystem without 

journal. Opts: (null)
Jan  1 01:00:05 Gargoyle user.notice dnsmasq: DNS rebinding protection is active, will discard 

upstream RFC1918 responses!
Jan  1 01:00:05 Gargoyle user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Jan  1 01:00:08 Gargoyle kern.warn kernel: [   65.040000] disktype: sending ioctl 5305 to a partition!
Jan  1 01:00:08 Gargoyle kern.warn kernel: [   65.040000] disktype: sending ioctl 5305 to a partition!
Jan  1 01:00:08 Gargoyle kern.info kernel: [   65.090000] EXT4-fs (sda2): mounted filesystem without 

journal. Opts: (null)
Jan  1 01:00:09 Gargoyle daemon.info dnsmasq[1930]: started, version 2.66 cachesize 150
Jan  1 01:00:09 Gargoyle daemon.info dnsmasq[1930]: compile time options: IPv6 GNU-getopt no-

DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth
Jan  1 01:00:09 Gargoyle daemon.info dnsmasq-dhcp[1930]: DHCP, IP range 192.168.1.2 -- 

192.168.1.12, lease time 12h
Jan  1 01:00:09 Gargoyle daemon.info dnsmasq[1930]: using local addresses only for domain lan
Jan  1 01:00:09 Gargoyle daemon.info dnsmasq[1930]: reading /tmp/resolv.conf.auto
Jan  1 01:00:09 Gargoyle daemon.warn dnsmasq[1930]: ignoring nameserver 192.168.1.1 - local 

interface
Jan  1 01:00:09 Gargoyle daemon.info dnsmasq[1930]: using local addresses only for domain lan
Jan  1 01:00:09 Gargoyle daemon.info dnsmasq[1930]: read /etc/hosts - 2 addresses
Jan  1 01:00:09 Gargoyle daemon.info dnsmasq-dhcp[1930]: read /etc/ethers - 0 addresses
Jan  1 01:00:09 Gargoyle user.info sysinit: ERROR: No valid dynamic DNS service configurations 

defined
Jan  1 01:00:09 Gargoyle user.info sysinit: (Did you specify correct configuration file path?)
Jan  1 01:00:09 Gargoyle user.info sysinit: setting up led USB
Jan  1 01:00:09 Gargoyle user.info sysinit: setting up led WLAN2G
Jan  1 01:00:10 Gargoyle kern.warn kernel: [   66.950000] disktype: sending ioctl 5305 to a partition!
Jan  1 01:00:10 Gargoyle kern.warn kernel: [   66.950000] disktype: sending ioctl 5305 to a partition!
Jan  1 01:00:10 Gargoyle kern.info kernel: [   67.000000] EXT4-fs (sda2): mounted filesystem without 

journal. Opts: (null)
Jan  1 01:00:11 Gargoyle kern.warn kernel: [   68.270000] disktype: sending ioctl 5305 to a partition!
Jan  1 01:00:11 Gargoyle kern.warn kernel: [   68.270000] disktype: sending ioctl 5305 to a partition!
Jan  1 01:00:11 Gargoyle kern.info kernel: [   68.320000] EXT4-fs (sda2): mounted filesystem without 

journal. Opts: (null)
Jan  1 01:00:13 Gargoyle daemon.info dnsmasq-dhcp[1930]: DHCPDISCOVER(br-lan) 

00:1b:77:04:49:2a
Jan  1 01:00:13 Gargoyle daemon.info dnsmasq-dhcp[1930]: DHCPOFFER(br-lan) 192.168.1.10 

00:1b:77:04:49:2a
Jan  1 01:00:13 Gargoyle daemon.info dnsmasq-dhcp[1930]: DHCPREQUEST(br-lan) 192.168.1.10 

00:1b:77:04:49:2a
Jan  1 01:00:13 Gargoyle daemon.warn dnsmasq-dhcp[1930]: Ignoring domain corpnet.inside for 

DHCP host name GR4-0011637
Jan  1 01:00:13 Gargoyle daemon.info dnsmasq-dhcp[1930]: DHCPACK(br-lan) 192.168.1.10 

00:1b:77:04:49:2a GR4-0011637
Jan  1 01:00:17 Gargoyle daemon.info dnsmasq-dhcp[1930]: DHCPDISCOVER(br-lan) 

94:44:44:8a:9b:73
Jan  1 01:00:17 Gargoyle daemon.info dnsmasq-dhcp[1930]: DHCPOFFER(br-lan) 192.168.1.2 

94:44:44:8a:9b:73
Jan  1 01:00:17 Gargoyle daemon.info dnsmasq-dhcp[1930]: DHCPREQUEST(br-lan) 192.168.1.2 

94:44:44:8a:9b:73
Jan  1 01:00:17 Gargoyle daemon.info dnsmasq-dhcp[1930]: DHCPACK(br-lan) 192.168.1.2 

94:44:44:8a:9b:73
Jan  1 01:00:23 Gargoyle user.notice firewall: Reloading firewall due to ifup of wan (eth1)
Jan  1 01:01:14 Gargoyle kern.warn kernel: [  131.300000] ipt_bandwidth: timezone shift of 60 

minutes detected, adjusting
Jan  1 01:01:14 Gargoyle kern.warn kernel: [  131.300000]                old minutes west=0, new 

minutes west=-60
Jan  1 01:05:16 Gargoyle authpriv.info dropbear[3414]: Child connection from 192.168.1.10:2456
Jan  1 01:05:28 Gargoyle authpriv.notice dropbear[3414]: Password auth succeeded for 'root' from 

192.168.1.10:2456 

Później jeszcze raz przeskanowałem ten drugi pendrive. Nie dostałem żadnych błędów. Po przywróceniu wczorajszej konfiguracji (na newralgicznym nośniku), znów występują błędy ?! Wygląda to tak, jakby sam pendrive był ok, ale w momencie restartu coś psuło system plików... Kolego Cezary, czy masz jeszcze jakiś pomysł?

11

Odp: TL WDR-3500 - problemy z konfiguracją

Wywal pendrive za okno, kup inny...

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