51

(22 odpowiedzi, napisanych Oprogramowanie / Software)

Witam,
staram się podmontować dysk z openwrt do routera z Gargoyle, które zdecydowanie bardziej mi pasuje.
Mam problem przy podstawie... nie potrafię zamontować dysków.

Całość wygląda tak:
root@Gargoyle:~# mount /dev/sda2 /mnt/usb/sda2/

NTFS signature is missing.
Failed to mount '/dev/sda2': Invalid argument
The device '/dev/sda2' 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?
mount: mounting /dev/sda2 on /mnt/usb/sda2/ failed: Invalid argument

dmesg

[55453.430000] CIFS VFS: default security mechanism requested.  The default security mechanism will be upgraded from ntlm to ntlmv2 in kernel release 3.3
[57468.580000] usb 1-1.1.3: USB disconnect, device number 4
[93726.840000] usb 1-1.1.4: new high-speed USB device number 5 using ehci-platform
[93726.950000] scsi0 : usb-storage 1-1.1.4:1.0
[93727.960000] scsi 0:0:0:0: Direct-Access     Samsung  S2 Portable           PQ: 0 ANSI: 2 CCS
[93727.980000] sd 0:0:0:0: [sda] 312571224 1024-byte logical blocks: (320 GB/298 GiB)
[93727.980000] sd 0:0:0:0: [sda] Write Protect is off
[93727.990000] sd 0:0:0:0: [sda] Mode Sense: 3c 00 00 00
[93727.990000] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[93728.000000] sd 0:0:0:0: [sda] 312571224 1024-byte logical blocks: (320 GB/298 GiB)
[93728.040000]  sda: sda1 sda2 sda3
[93728.040000] sd 0:0:0:0: [sda] 312571224 1024-byte logical blocks: (320 GB/298 GiB)
[93728.060000] sd 0:0:0:0: [sda] Attached SCSI disk
[93729.810000] busybox: sending ioctl 5310 to a partition!
[93729.820000] busybox: sending ioctl 5310 to a partition!
[93733.130000] busybox: sending ioctl 5310 to a partition!
[93733.140000] busybox: sending ioctl 5310 to a partition!
[93887.570000] mount: sending ioctl 5310 to a partition!
[93887.570000] mount: sending ioctl 5310 to a partition!
[93909.850000] mount: sending ioctl 5310 to a partition!
[93909.860000] mount: sending ioctl 5310 to a partition!
[94112.080000] mount: sending ioctl 5310 to a partition!
[94112.090000] mount: sending ioctl 5310 to a partition!

fdisk -l

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1          526336   119756799   119230464   83  Linux
/dev/sda2   *          63      526335      526273   83  Linux
/dev/sda3       119756800   121858559     2101760   82  Linux swap / Solaris

Partition table entries are not in disk order

52

(6 odpowiedzi, napisanych Oprogramowanie / Software)

Przeszukałem i nie wiem gdzie mogę skrócić ten czas. Jakaś podpowiedź?

53

(6 odpowiedzi, napisanych Oprogramowanie / Software)

oka, gdzie zatem moge zmienic ten delay?

54

(6 odpowiedzi, napisanych Oprogramowanie / Software)

no zgadza sie, delay = 20 sek, ale nie 2 min...
Jak to zweryfikowac?

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 '/mnt'
        option uuid '04fb6675-dcaa-4338-97d6-f3c4b024a352'
        option device '/dev/sda1'
        option fstype 'ext4'
        option options 'data=writeback,noatime,nodiratime'
        option enabled '1'
        option enabled_fsck '1'

config mount
        option uuid '766dbfa9-d90f-4221-9e78-fb1cc1300b0a'
        option device '/dev/sda2'
        option fstype 'ext4'
        option options 'data=writeback,noatime,nodiratime'
        option enabled '1'
        option enabled_fsck '1'
        option is_rootfs '1'


config swap
        option device '/dev/sda3'
        option enabled '1'
        option enabled_fsck '1'
        option uuid '193e8913-051c-41a9-9ae4-b07005dffd79'

55

(6 odpowiedzi, napisanych Oprogramowanie / Software)

Hej,
ostatnio zauważyłem że router wstaje ponad 2 minuty. Czy można to przyśpieszyć?

maszyna to:
root@router:~# sysinfo
----------------------------------------------------------------
| Machine: TP-Link TL-WDR4300 v1, Name: router                 |
| System uptime: 00:23:56, Now: 2016-02-12 20:21:43            |
| System load: 0.39, 0.44, 0.41                                |
| Flash: total: 246.9MB, used: 100.3MB, 40.6%, free: 146.6MB   |
| Memory: total: 123.7MB, used: 32.6MB, 26.3%, free: 91.1MB    |
| Swap: total: 1.0GB, used: 0B, 0.0%, free: 1.0GB              |
| WAN:         |
| proto: dhcp, uptime: 00:21:55, rx/tx: 1.5GB/56.6MB           |
| dns:                               |
| LAN: 192.168.1.1/24(br-lan), dhcp: 192.168.1.100-120         |
| WLAN: WOJTULA(ap), ch: 3, conn: 4, rx/tx: 57.2MB/1.5GB       |
| WLAN: WOJTULA(ap), ch: 36, conn: 0, rx/tx: 0B/353.3KB        |
----------------------------------------------------------------


dmesg:

[    0.000000] Linux version 3.3.8 (cezary@eko.one.pl) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #69 Sat Sep 27 10:15:45 CEST 2014
[    0.000000] MyLoader: sysp=84c31530, boardp=0065cbe4, parts=195ef6a4
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0001974c (MIPS 74Kc)
[    0.000000] SoC: Atheros AR9344 rev 2
[    0.000000] Clocks: CPU:560.000MHz, DDR:450.000MHz, AHB:225.000MHz, Ref:40.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00008000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00008000
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat 802fdf20, node_mem_map 81000000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32512 pages, LIFO batch:7
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line:  board=TL-WDR4300 console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 126400k/131072k available (2256k kernel code, 4672k reserved, 425k data, 220k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 512
[    0.080000] NET: Registered protocol family 16
[    0.080000] gpiochip_add: registered GPIOs 0 to 22 on device: ath79
[    0.090000] MIPS: machine is TP-LINK TL-WDR3600/4300/4310
[    0.100000] registering PCI controller with io_map_base unset
[    0.310000] bio: create slab <bio-0> at 0
[    0.320000] PCI host bridge to bus 0000:00
[    0.320000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    0.330000] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.330000] pci 0000:00:00.0: [168c:0033] type 0 class 0x000280
[    0.330000] pci 0000:00:00.0: invalid calibration data
[    0.340000] pci 0000:00:00.0: reg 10: [mem 0x00000000-0x0001ffff 64bit]
[    0.340000] pci 0000:00:00.0: reg 30: [mem 0x00000000-0x0000ffff pref]
[    0.340000] pci 0000:00:00.0: supports D1
[    0.340000] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.340000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[    0.340000] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[    0.350000] pci 0000:00:00.0: using irq 40 for pin 1
[    0.350000] Switching to clocksource MIPS
[    0.360000] NET: Registered protocol family 2
[    0.360000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.360000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.370000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.370000] TCP: Hash tables configured (established 4096 bind 4096)
[    0.380000] TCP reno registered
[    0.380000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.390000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.390000] NET: Registered protocol family 1
[    0.400000] PCI: CLS 0 bytes, default 32
[    0.410000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.420000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.430000] msgmni has been set to 246
[    0.430000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[    0.440000] io scheduler noop registered
[    0.440000] io scheduler deadline registered (default)
[    0.450000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.480000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    0.490000] console [ttyS0] enabled, bootconsole disabled
[    0.500000] m25p80 spi0.0: found en25q64, expected m25p80
[    0.510000] m25p80 spi0.0: en25q64 (8192 Kbytes)
[    0.510000] 5 tp-link partitions found on MTD device spi0.0
[    0.520000] Creating 5 MTD partitions on "spi0.0":
[    0.520000] 0x000000000000-0x000000020000 : "u-boot"
[    0.530000] 0x000000020000-0x00000010ef78 : "kernel"
[    0.530000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.550000] 0x00000010ef78-0x0000007f0000 : "rootfs"
[    0.550000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.570000] mtd: partition "rootfs" set to be root filesystem
[    0.570000] mtd: partition "rootfs_data" created automatically, ofs=680000, len=170000 
[    0.580000] 0x000000680000-0x0000007f0000 : "rootfs_data"
[    0.590000] 0x0000007f0000-0x000000800000 : "art"
[    0.590000] 0x000000020000-0x0000007f0000 : "firmware"
[    0.730000] ag71xx_mdio: probed
[    0.730000] eth0: Atheros AG71xx at 0xb9000000, irq 4
[    1.310000] eth0: Atheros AR8327 switch driver attached.
[    2.470000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd033, driver=Atheros AR8216/AR8236/AR8316]
[    2.490000] TCP cubic registered
[    2.490000] NET: Registered protocol family 17
[    2.490000] Bridge firewalling registered
[    2.500000] Ebtables v2.0 registered
[    2.500000] 8021q: 802.1Q VLAN Support v1.8
[    2.510000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    2.520000] Freeing unused kernel memory: 220k freed
[    4.490000] Registered led device: tp-link:blue:qss
[    4.490000] Registered led device: tp-link:blue:system
[    4.490000] Registered led device: tp-link:green:usb1
[    4.490000] Registered led device: tp-link:green:usb2
[    4.490000] Registered led device: tp-link:blue:wlan2g
[    5.470000] eth0: link up (1000Mbps/Full duplex)
[    7.760000] JFFS2 notice: (493) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 55 of xref (0 dead, 15 orphan) found.
[    8.430000] SCSI subsystem initialized
[    8.620000] usbcore: registered new interface driver usbfs
[    8.630000] usbcore: registered new interface driver hub
[    8.640000] usbcore: registered new device driver usb
[    9.050000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    9.060000] ehci-platform ehci-platform: Generic Platform EHCI Controller
[    9.070000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    9.110000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    9.130000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    9.130000] hub 1-0:1.0: USB hub found
[    9.140000] hub 1-0:1.0: 1 port detected
[    9.190000] Initializing USB Mass Storage driver...
[    9.190000] usbcore: registered new interface driver usb-storage
[    9.200000] USB Mass Storage support registered.
[    9.320000] usbcore: registered new interface driver ums-alauda
[    9.340000] usbcore: registered new interface driver ums-cypress
[    9.350000] usbcore: registered new interface driver ums-datafab
[    9.360000] usbcore: registered new interface driver ums-freecom
[    9.380000] usbcore: registered new interface driver ums-isd200
[    9.390000] usbcore: registered new interface driver ums-jumpshot
[    9.400000] usbcore: registered new interface driver ums-karma
[    9.410000] usbcore: registered new interface driver ums-sddr09
[    9.430000] usbcore: registered new interface driver ums-sddr55
[    9.440000] usbcore: registered new interface driver ums-usbat
[    9.520000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    9.770000] hub 1-1:1.0: USB hub found
[    9.770000] hub 1-1:1.0: 4 ports detected
[   10.070000] usb 1-1.1: new high-speed USB device number 3 using ehci-platform
[   10.180000] hub 1-1.1:1.0: USB hub found
[   10.180000] hub 1-1.1:1.0: 4 ports detected
[   10.270000] usb 1-1.2: new high-speed USB device number 4 using ehci-platform
[   10.380000] scsi0 : usb-storage 1-1.2:1.0
[   10.470000] usb 1-1.1.3: new full-speed USB device number 5 using ehci-platform
[   11.380000] scsi 0:0:0:0: Direct-Access     TOSHIBA  TransMemory-Mx   PMAP PQ: 0 ANSI: 6
[   11.390000] sd 0:0:0:0: [sda] 121858560 512-byte logical blocks: (62.3 GB/58.1 GiB)
[   11.390000] sd 0:0:0:0: [sda] Write Protect is off
[   11.400000] sd 0:0:0:0: [sda] Mode Sense: 45 00 00 00
[   11.400000] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   11.610000]  sda: sda1 sda2 sda3
[   11.620000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   30.840000] EXT4-fs (sda2): warning: mounting unchecked fs, running e2fsck is recommended
[   30.850000] EXT4-fs (sda2): mounted filesystem without journal. Opts: data=writeback
[   31.000000] eth0: link down
[   31.680000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
[   31.690000] Backport generated by backports.git backports-20140320-37-g5c33da0
[   31.830000] cfg80211: Calling CRDA to update world regulatory domain
[   31.840000] cfg80211: World regulatory domain updated:
[   31.840000] cfg80211:  DFS Master region: unset
[   31.850000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   31.860000] cfg80211:   (2400000 KHz - 2483000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[   31.860000] cfg80211:   (5140000 KHz - 5860000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[   32.100000] NET: Registered protocol family 10
[   33.160000] ath: EEPROM regdomain: 0x0
[   33.160000] ath: EEPROM indicates default country code should be used
[   33.160000] ath: doing EEPROM country->regdmn map search
[   33.160000] ath: country maps to regdmn code: 0x3a
[   33.160000] ath: Country alpha2 being used: US
[   33.160000] ath: Regpair used: 0x3a
[   33.170000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   33.170000] Registered led device: ath9k-phy0
[   33.170000] ieee80211 phy0: Atheros AR9340 Rev:0 mem=0xb8100000, irq=47
[   33.180000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[   33.190000] ath: EEPROM regdomain: 0x0
[   33.190000] ath: EEPROM indicates default country code should be used
[   33.190000] ath: doing EEPROM country->regdmn map search
[   33.190000] ath: country maps to regdmn code: 0x3a
[   33.190000] ath: Country alpha2 being used: US
[   33.190000] ath: Regpair used: 0x3a
[   33.200000] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   33.200000] Registered led device: ath9k-phy1
[   33.200000] ieee80211 phy1: Atheros AR9300 Rev:4 mem=0xb0000000, irq=40
[   33.210000] cfg80211: Calling CRDA for country: US
[   33.220000] cfg80211: Regulatory domain changed to country: US
[   33.220000] cfg80211:  DFS Master region: unset
[   33.230000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   33.240000] cfg80211:   (2400000 KHz - 2483000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[   33.250000] cfg80211:   (5140000 KHz - 5860000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[   33.580000] RPC: Registered named UNIX socket transport module.
[   33.590000] RPC: Registered udp transport module.
[   33.590000] RPC: Registered tcp transport module.
[   33.600000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   34.020000] PPP generic driver version 2.4.2
[   34.330000] tun: Universal TUN/TAP device driver, 1.6
[   34.340000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   34.440000] GRE over IPv4 demultiplexor driver
[   34.460000] GRE over IPv4 tunneling driver
[   34.760000] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   34.850000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   35.310000] NET: Registered protocol family 24
[   35.440000] nf_conntrack version 0.5.0 (1978 buckets, 7912 max)
[   35.820000] PPTP driver version 0.8.5
[   36.530000] xt_time: kernel timezone is -0000
[   37.190000]     Hooked IMQ after mangle on PREROUTING
[   37.200000]     Hooked IMQ after nat on POSTROUTING
[   37.200000] IMQ driver loaded successfully. (numdevs = 2, numqueues = 1)
[   37.380000] Netfilter messages via NETLINK v0.30.
[   37.570000] ip_set: protocol 6
[   38.000000] Driver for 1-wire Dallas network protocol.
[   38.160000] usbcore: registered new interface driver cdc_acm
[   38.170000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   38.300000] usbcore: registered new interface driver usbserial
[   38.310000] USB Serial support registered for generic
[   38.310000] usbcore: registered new interface driver usbserial_generic
[   38.320000] usbserial: USB Serial Driver core
[   38.400000] USB Serial support registered for Sierra USB modem
[   38.410000] usbcore: registered new interface driver sierra
[   38.410000] sierra: v.1.7.40:USB Driver for Sierra Wireless USB modems
[   38.440000] usbcore: registered new interface driver sierra_net
[   38.640000] usbcore: registered new interface driver cdc_wdm
[   38.660000] usbcore: registered new interface driver DS9490R
[   38.690000] usbcore: registered new interface driver cdc_ether
[   38.820000] usbcore: registered new interface driver cdc_ncm
[   38.890000] usbcore: registered new interface driver qmi_wwan
[   38.910000] usbcore: registered new interface driver rndis_host
[   38.940000] USB Serial support registered for ch341-uart
[   38.940000] usbcore: registered new interface driver ch341
[   38.980000] USB Serial support registered for FTDI USB Serial Device
[   38.980000] ftdi_sio 1-1.1.3:1.0: FTDI USB Serial Device converter detected
[   38.990000] usb 1-1.1.3: Detected FT232RL
[   38.990000] usb 1-1.1.3: Number of endpoints 2
[   39.000000] usb 1-1.1.3: Endpoint 1 MaxPacketSize 16384
[   39.000000] usb 1-1.1.3: Endpoint 2 MaxPacketSize 16384
[   39.010000] usb 1-1.1.3: Setting MaxPacketSize 64
[   39.020000] usb 1-1.1.3: FTDI USB Serial Device converter now attached to ttyUSB0
[   39.020000] usbcore: registered new interface driver ftdi_sio
[   39.030000] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
[   39.110000] USB Serial support registered for GSM modem (1-port)
[   39.120000] usbcore: registered new interface driver option
[   39.130000] option: v0.7.2:USB Driver for GSM modems
[   39.150000] USB Serial support registered for pl2303
[   39.160000] usbcore: registered new interface driver pl2303
[   39.160000] pl2303: Prolific PL2303 USB to serial adaptor driver
[   39.190000] USB Serial support registered for Qualcomm USB modem
[   39.190000] usbcore: registered new interface driver qcserial
[   39.340000] fuse init (API version 7.18)
[   44.920000] Adding 1050876k swap on /dev/sda3.  Priority:-1 extents:1 across:1050876k 
[  118.070000] EXT4-fs (sda1): mounted filesystem without journal. Opts: data=writeback
[  118.750000] ADDRCONF(NETDEV_UP): eth0: link is not ready
[  119.280000] eth0: link up (1000Mbps/Full duplex)
[  119.300000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  120.150000] eth0: link down
[  120.160000] ADDRCONF(NETDEV_UP): eth0: link is not ready
[  120.180000] ADDRCONF(NETDEV_UP): eth0.1: link is not ready
[  120.180000] device eth0.1 entered promiscuous mode
[  120.190000] device eth0 entered promiscuous mode
[  120.200000] ADDRCONF(NETDEV_UP): br-lan: link is not ready
[  120.230000] ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[  120.430000] eth0: link up (1000Mbps/Full duplex)
[  120.440000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  120.440000] br-lan: port 1(eth0.1) entered forwarding state
[  120.450000] br-lan: port 1(eth0.1) entered forwarding state
[  120.450000] ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[  120.490000] ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[  120.490000] ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[  122.450000] br-lan: port 1(eth0.1) entered forwarding state
[  126.140000] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  126.150000] device wlan0 entered promiscuous mode
[  126.360000] br-lan: port 2(wlan0) entered forwarding state
[  126.370000] br-lan: port 2(wlan0) entered forwarding state
[  126.370000] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  128.370000] br-lan: port 2(wlan0) entered forwarding state
[  129.830000] ADDRCONF(NETDEV_UP): wlan1: link is not ready
[  129.830000] device wlan1 entered promiscuous mode
[  130.040000] br-lan: port 3(wlan1) entered forwarding state
[  130.050000] br-lan: port 3(wlan1) entered forwarding state
[  130.050000] ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[  132.050000] br-lan: port 3(wlan1) entered forwarding state
[  142.510000] svc: failed to register lockdv1 RPC service (errno 124).
[  144.430000] EXT4-fs error (device sda2): ext4_mb_generate_buddy:739: group 23, 6090 clusters in bitmap, 6140 in gd
[  180.770000] ipt_bandwidth: timezone shift of 60 minutes detected, adjusting
[  180.780000]                old minutes west=0, new minutes west=-60
[  202.560000] IMQ driver unloaded successfully.
[  202.600000]     Hooked IMQ after mangle on INPUT
[  202.610000]     Hooked IMQ after mangle on FORWARD
[  202.610000] IMQ driver loaded successfully. (numdevs = 1, numqueues = 1)
[  332.000000] EXT4-fs (sda2): error count: 53
[  332.000000] EXT4-fs (sda2): initial error at 1454959802: mb_free_blocks:1348: inode 44427: block 189481
[  332.010000] EXT4-fs (sda2): last error at 1455303611: ext4_mb_generate_buddy:739

56

(79 odpowiedzi, napisanych Termometr)

Jak dla mnie jest prostsza opcja.
plik /www/control/www/js/highstock.js

global:{useUTC:!0,canvasToolsUR$

zmień na
global:{useUTC:!1,canvasToolsUR$

http://i66.tinypic.com/2u43nf7.png

57

(79 odpowiedzi, napisanych Termometr)

Czy można częściej zapisywać pomiar temperatury np.: 6min?

Poza tym, nie wiem dlaczego ale wyniki albo sie dubluja albo cos jest nie tak: (nieaktualne - poprawiłem swój błąd)
http://s17.postimg.org/5zgsvwlpr/Capture.jpg

58

(79 odpowiedzi, napisanych Termometr)

Czy istnieje możliwość aby tylko i wyłącznie działała funkcja termometrów?
Jeśli tak, to czy ktoś może dysponuje taką wersją?

59

(11 odpowiedzi, napisanych Oprogramowanie / Software)

dziękuję, teraz jest to jasne i śmiga jak nalezy!

60

(11 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

Działa, 04n wyświetla.

Tylko zrób

O=$(wget

a nie

O=`$(wget

czy mógłbyś mi wytłumaczyć dlaczego w ten sposób?

61

(11 odpowiedzi, napisanych Oprogramowanie / Software)

Ponizszy kod nie dziala

#!/bin/sh

. /usr/share/libubox/jshn.sh

O=`$(wget "api.openweathermap.org/data/2.5/weather?id=2172797&appid=44db6a862fba0b067b1930da0d769e98" -O -)`
echo $O

json_load "$O"

json_select weather
json_select 1
json_get_var ICON icon
echo $ICON

62

(11 odpowiedzi, napisanych Oprogramowanie / Software)

Nie rozumiem jeszcze jednej rzeczy, mianowicie:
stworzyłem analogicznie skrypt aby pobrać inny parametr: icon, czyli wartość "50n".

Skrypt wygląda tak:

#!/bin/sh

. /usr/share/libubox/jshn.sh

O=$(wget "api.openweathermap.org/data/2.5/weather?id=2172797&appid=44db6a862fba0b067b1930da0d769e98" -O -)

json_load "$O"
json_select "weather"
json_get_var var1 "icon"
echo "ikona: $var1"

Nie zwraca to żadnej wartości. Gdzie robie błąd?

63

(11 odpowiedzi, napisanych Oprogramowanie / Software)

bardzo dziękuję! wszystko śmiga

64

(11 odpowiedzi, napisanych Oprogramowanie / Software)

Hej,
pytanko ws json. W openwrt domyślnie jest pod ręką jshn. Ściągam sobie z internetu pogodę w formacie json. Następnie chcę wyfiltorwać tylko temperaturę oraz wiatr. Całość zrobiłem w ten sposób:

wget "api.openweathermap.org/data/2.5/weather?id=2172797&appid=44db6a862fba0b067b1930da0d769e98"
$pogoda=`cat weather?`
jshn -r "$pogoda"

Wyświetla się:

json_init;
json_add_object 'coord';
json_add_double 'lon' 18.650000;
json_add_double 'lat' 50.300000;
json_close_object;
json_add_array 'weather';
json_add_object '0';
json_add_int 'id' 701;
json_add_string 'main' 'Mist';
json_add_string 'description' 'mist';
json_add_string 'icon' '50n';
json_close_object;
json_close_array;
json_add_string 'base' 'cmc stations';
json_add_object 'main';
json_add_double 'temp' 262.900000;
json_add_int 'pressure' 1033;
json_add_int 'humidity' 92;
json_add_double 'temp_min' 261.150000;
json_add_double 'temp_max' 263.750000;
json_close_object;
json_add_object 'wind';
json_add_double 'speed' 3.100000;
json_add_int 'deg' 140;
json_close_object;
json_add_object 'snow';
json_close_object;
json_add_object 'clouds';
json_add_int 'all' 0;
json_close_object;
json_add_int 'dt' 1453490267;
json_add_object 'sys';
json_add_int 'type' 3;
json_add_int 'id' 5356;
json_add_double 'message' 0.010000;
json_add_string 'country' 'PL';
json_add_int 'sunrise' 1453444351;
json_add_int 'sunset' 1453476124;
json_close_object;
json_add_int 'id' 7530857;
json_add_string 'name' 'Gliwice';
json_add_int 'cod' 200;

Nie wiem jak zrobic, aby przy uzyciu jshn pokazac wartość danej lini np.: dla speed byłaby to wartość: 3.100000

wrt podpowiada: Usage: jshn [-n] -r <message>|-w
Niestety nie rozumiem jak to mogę łatwo wyfiltorwać. Atrybut: |-w  nie działa.

65

(206 odpowiedzi, napisanych Oprogramowanie / Software)

Ok, wszystko działa smile
Co prawda metoda z tr -d '\r' <sysinfo.sh  >sysinfo1.sh  nie zadziałała, ale... poprzez vim usunąłem zbędne znaki.
Teraz działa sysinfo. Nie rozumiem jeszcze tylko jednej kwestii - podobno można wyświetlić ten skrypt za pomocą html. Czy wynik tego skryptu zapisuje się w pliku html? Jak to ustawic?

Ok, cofam pytanie. W php wystarczy wywołać ten skrypt a wynik sam sie pokaże - super smile

66

(206 odpowiedzi, napisanych Oprogramowanie / Software)

Czy zatem sysupgrade -v /tmp/openwrt-ar71xx*.bin to wgranie bez zachowania konfiguracji?

67

(206 odpowiedzi, napisanych Oprogramowanie / Software)

poprzez zrzut do podstawowego firmawe tp-link a potem znow do gargoyle? i na koniec konfiguracja rootfs i moge podlaczyc usb?

68

(206 odpowiedzi, napisanych Oprogramowanie / Software)

Masz w pełni rację, przepraszam. Chodziło mi o coś innego.

/mnt/ to pendrive USB.
na /roo/ dzieje się tak samo, nie może usunąć znaków końca lini. Dziwne jest to, że widzę je również w nano.
Wcześniej nano nie widział takich znaków w żadnym pliku...


Jedyne, co przychodzi mi do głowy co może być źle to
1.jakiś czas temu testowałem na tym samym sprzęcie nowe openwrt CC.
Sprzęt chodził na gargoyle 1.6.2.1 + rootfs na pendrive.

2.Wyciągnałem USB i wgrałem poprzez sysupgrade -v /tmp/openwrt-ar71xx*.bin na router.

3. "Pobawiłem" się kilka dni routerem i następnie wróciłem ponownie przez sysupgrade gargoyle 1.6.2.2.

Po tym zabiegu zauważyłem delikatne zmiany np w configu opkg, że wciąż miał konfigurację z CC.

4. Zmieniłem ręcznie opkg i wpiąłem USB oraz włączyłem rootfs.



Może powinienem wgrać na czysto gargoyle 1.6.2.1 i wpiąć USB z rootfs? Jak mogę skasować wszystko z flash routera i wgrać czysty gargoyle?

69

(206 odpowiedzi, napisanych Oprogramowanie / Software)

system? To od Ciebie wersja:) nie bylo nic zmieniane przeze mnie.
Jedyne co, to kilka pakietów z repozytorium.

70

(206 odpowiedzi, napisanych Oprogramowanie / Software)

Ja rozumiem. I teraz żeby skrypt działał, to mam usunąć ten koniec lini, czyli    ^M
Dobrze rozumiem?
Dlaczego żaden sposób tego nie usuwa sed, awk, tr, nawet w VI próbowałem przez :set fileformat=unix  lub :%s/^M/\r/g

71

(206 odpowiedzi, napisanych Oprogramowanie / Software)

Masz rację, w vi widać pełno ^M

[ -e /etc/banner ] && Width=$(awk 'BEGIN{max=0}{if(length($0)>max)max=length($0)}END{print max}' /etc/banner 2>/dev/null)^M
        while [ -n "$1" ]; do^M
                case "$1" in^M
                -h|--help)      echo -e "Usage: $0 [-h|--help] [[-m|--mono]|[-bw|-black-white]|[-c2|--color-2]] [-sr|--no-start-ruler] [-er|--no-end-ruler]"\^M
                                                        "[-w N|--width N] [-en Name|--extra-name Name] [-ev Value|--extra-value Value] [-le|--no-last-err]"\^M
                                                        "\n\t-h\t\tThis help,"\^M
                                                        "\n\t-m\t\tDisplay mono version,"\^M
                                                        "\n\t-bw\t\tDisplay black-white version,"\^M
                                                        "\n\t-c2\t\tDisplay alternative color version 2,"\^M
                                                        "\n\t-sr\t\tWithout start horizontal ruler,"\^M
                                                        "\n\t-er\t\tWithout end horizontal ruler,"\^M
                                                        "\n\t-w N\t\tSet width of text area to N characters (minimum 60)"\^M
                                                        "\n\t-en Name\tPrint extra name"\^M
                                                        "\n\t-ev Value\tPrint extra value"\^M
                                                        "\n\t-le\t\tDon't display last errors"^M

co najdziwniejsze inne, automatyczne sposoby również nie działają np.: sed -e '/^M/d' sysinfo.sh > sysinfo1.sh

72

(12 odpowiedzi, napisanych Oprogramowanie / Software)

Wydaje mi się, że prościej bedzie zrobić config.
Tylko jak... sprawdzę jak wygląda szkielet lub inny plik config.

73

(206 odpowiedzi, napisanych Oprogramowanie / Software)

Tak, jak poprzednio:

root@router:/mnt/github/openwrt/misc# tr -d '\r' </mnt/github/openwrt/misc/sysinfo.sh >sysinfo1.sh
root@router:/mnt/github/openwrt/misc# ll
2714494 -rw-r--r--    1 root     root           0 Sep 12 11:56 sysinfo1.sh
2714475 drwxr-xr-x    2 root     root        4.0K Sep 12 10:44 .
2714476 -rw-r--r--    1 root     root       21.3K Sep 12 10:44 install.sh
2714477 -rw-r--r--    1 root     root         782 Sep 12 10:44 install_ext.sh
2714478 -rw-r--r--    1 root     root        8.7K Sep 12 10:44 ovpn_stat.sh
2714479 -rwxr-xr-x    1 root     root       17.6K Sep 12 10:44 sysinfo.sh
2714480 -rw-r--r--    1 root     root        3.8K Sep 12 10:44 vnstati_make.sh
2714434 drwxr-xr-x    6 root     root        4.0K Sep 12 10:44 ..

74

(12 odpowiedzi, napisanych Oprogramowanie / Software)

Rozumiem. Czyli nici z tej kompilacji?
To moja pierwsza i chyba... nieudana smile

75

(206 odpowiedzi, napisanych Oprogramowanie / Software)

powstał nowy, pusty plik 'sysinfo1.sh'