1 (edytowany przez nazir81 2009-06-23 10:29:42)

Temat: Automatyczne montowanie SWAP'a po restarcie

Witam, podpiąłem pendrive pod złącze usb. Na pen'ie są dwie partycje: swap i ex3.
Partycja EX3 montuje się automatycznie po restarcie routera.
Problem jest z swap ponieważ za każdym razem gdy resetuje routera muszę ręcznie wykonać polecenie:

swapon /dev/scsi/host0/bus0/target0/lun0/part1

Czy można tak skonfigurować Kamikaze aby SWAP montował się automatycznie?

Pozdrawiam

2

Odp: Automatyczne montowanie SWAP'a po restarcie

#!/bin/sh /etc/rc.common

START=99
start()
{
swapon /dev/scsi/host0/bus0/target0/lun0/part1
}

takie cos wrzuc do pliku dajmy na to sw w katalogu /etc/init.d
potem chmod +x /etc/init.d/sw
a potem /etc/init.d/sw enable

po restarcie komenda powinna sie wykonać

3

Odp: Automatyczne montowanie SWAP'a po restarcie

/etc/config/fstab to tez zrobi. A jeżeli nie chce to zwykle dlatego że swap-utils nie jest zainstalowany.

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

4

Odp: Automatyczne montowanie SWAP'a po restarcie

swap-util jest zainstalowany.
Najpierw zainstalowałem swap-util na pendrive. Ponieważ swap mi nie montował się podczas restu routera odinstalowałem swap-util i zainstalowałem go jeszcze raz w domyślnej lokalizacji:

root@OpenWrt:/sbin# ls
halt               led.sh             reboot             uci
hotplug-call       logread            rmmod              udhcpc
hotplug.failsafe   lsmod              route              usb-storage
hwclock            luci-flash         start-stop-daemon  vconfig
ifconfig           luci-reload        swapoff            watchdog
ifdown             mkswap             [b]swapon[/b]             wifi
ifup               mount_root         switch_root        wlc
init               mtd                sysctl
insmod             pivot_root         syslogd
klogd              poweroff           sysupgrade

/etc/init.d/fstab wygląda tak:

root@OpenWrt:/# cat /etc/init.d/fstab
#!/bin/sh /etc/rc.common
# Copyright (C) 2007 OpenWrt.org

START=20

do_mount() {
        local cfg="$1"
        config_get fstype "$cfg" fstype
        fstype="${fstype:-auto}"
        config_get options "$cfg" options
        options="${options:-rw}"
        config_get device "$cfg" device
        [ -n "$device" ] || return 0
        config_get target "$cfg" target
        [ -n "$target" ] || return 0
        mkdir -p $target
        config_get_bool enabled "$cfg" "enabled" '1'
        [ "$enabled" -eq 0 ] && options="noauto,$options"
        echo "$device   $target $fstype $options        0       0" >> /tmp/fstab
}

do_swapon() {
        local cfg="$1"
        config_get device "$cfg" device
        [ -n "$device" ] || return 0
        config_get_bool enabled "$cfg" "enabled" '1'
        [ "$enabled" -gt 0 ] && {
                echo "$device   none    swap    ${noauto}sw     0       0" >> /tmp/fstab
        }
}

do_unmount() {
        local cfg="$1"
        config_get target "$cfg" target
        [ -n "$target" ] || return 0
        config_get_bool enabled "$cfg" "enabled" '1'
        [ "$enabled" -gt 0 ] && {
                umount $target
        }
}

do_swapoff() {
        local cfg="$1"
        config_get device "$cfg" device
        [ -n "$device" ] || return 0
        config_get_bool enabled "$cfg" "enabled" '1'
        [ "$enabled" -gt 0 ] && type swapoff >/dev/null && {
                swapoff $device
        }
}

start() {
        sleep 10
        config_load fstab
        echo '# WARNING: this is an auto generated file, please use uci to set static filesystems' > /tmp/fstab
        config_foreach do_mount mount
        config_foreach do_swapon swap
        mount -a
        [ -x /sbin/swapon] && swapon -a
}

stop() {
        config_load fstab
        config_foreach do_unmount mount
        config_foreach do_swapoff swap
        [ -x /sbin/swapoff ] && swapoff -a
}



Dodałem plik /etc/init.d/swap_nazir

root@OpenWrt:/# cat /etc/init.d/swap_nazir
#!/bin/sh /etc/rc.common

START=98

start() {
        sleep 20
        swapon /dev/scsi/host0/bus0/target0/lun0/part1
}
root@OpenWrt:/etc/init.d# ls -help
...
-rwxr-xr-x    1 root     root          124 Sun May 31 12:41:08 2009 swap_nazir
...

efekt jest taki, że swap nie montuje się po resecie routera... :-(

Co źle konfiguruję ?

5

Odp: Automatyczne montowanie SWAP'a po restarcie

pokaż /etc/config/fstab

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

6

Odp: Automatyczne montowanie SWAP'a po restarcie

/etc/config/fstab

root@OpenWrt:/hdd/penHDD# cat /etc/config/fstab

config 'swap'
        option 'device' '/dev/scsi/host0/bus0/target0/lun0/part1'
        option 'enabled' '1'

config 'mount'
        option 'device' '/dev/scsi/host0/bus0/target0/lun0/part2'
        option 'target' '/hdd/penHDD'
        option 'fstype' 'ext3'
        option 'option' 'rw,noatime'
        option 'enabled' '1'

7

Odp: Automatyczne montowanie SWAP'a po restarcie

I przy okazji /tmp/fstab

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

8

Odp: Automatyczne montowanie SWAP'a po restarcie

I jak ręcznie zrobisz /etc/init.d/fstab to też nie montuje zasobów?

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

9

Odp: Automatyczne montowanie SWAP'a po restarcie

/tmp/fstab/

root@OpenWrt:/hdd/penHDD# cat /tmp/fstab
# WARNING: this is an auto generated file, please use uci to set static filesystems
/dev/scsi/host0/bus0/target0/lun0/part2 /hdd/penHDD     ext3    rw      0      0
/dev/scsi/host0/bus0/target0/lun0/part1 none    swap    sw      0       0

10

Odp: Automatyczne montowanie SWAP'a po restarcie

Po restarcie routera:

root@OpenWrt:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                    1600      1600         0 100% /
/dev/root                 1600      1600         0 100% /rom
tmpfs                     7172        60      7112   1% /tmp
/dev/mtdblock/4           5824       736      5088  13% /jffs
mini_fo:/jffs             1600      1600         0 100% /
/dev/scsi/host0/bus0/target0/lun0/part2
                       2838216     71560   2622476   3% /hdd/penHDD

root@OpenWrt:~# free
              total         used         free       shared      buffers
  Mem:        14344        13268         1076            0         1308
 Swap:            0            0            0
Total:        14344        13268         1076
root@OpenWrt:~#

Ręcznie jak wykonuję polecenie:

root@OpenWrt:~# /etc/init.d/fstab start

root@OpenWrt:~# free
              total         used         free       shared      buffers
  Mem:        14344        13844          500            0         1316
 Swap:      1020088            0      1020088
Total:      1034432        13844      1020588

]
to montuje zasoby...

11

Odp: Automatyczne montowanie SWAP'a po restarcie

Więc, jak widzisz, config jest dobry. Ale czemu Ci to nie robi  - nie przychodzi mi na razie nic konstruktywnego do głowy?

Możesz zwiększyć ten czas w sleep - ale skoro normalnie partycję montuje  i masz /sbin/swapon - to powinien i swap zrobić.

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

12

Odp: Automatyczne montowanie SWAP'a po restarcie

Zainstalowałem teraz transmission...

Też jest problem z restartem routera..

/etc/init.d/transmission

root@OpenWrt:~# cat /etc/init.d/transmission
#!/bin/sh /etc/rc.common

START=99

start() {
        export TRANSMISSION_HOME="/hdd/penHDD/torr"
        export TRANSMISSION_WEB_HOME="/hdd/penHDD/usr/share/transmission/web"
        transmission-daemon -g /hdd/penHDD/torr
}

stop() {
        pkill transmission
}

Po restarcie transmission nie uruchamia sie automatycznie..

jak wykonam

root@OpenWrt:~# /etc/init.d/transmission start

to w procesach widzę już transmission...


Wygląda mi na to że jest jakiś problem z automatycznym uruchamianiem /etc/init.d/...
Jednak jestem raczkujący w linuxie aby samemu przeprowadzić diagnostykę systemu :-(

13

Odp: Automatyczne montowanie SWAP'a po restarcie

Zrobiłeś /etc/init.d/transmission enable?

enable robi linki do /etc/rc.d, w tego katalogu tak naprawdę odpalana jest całość.

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

14

Odp: Automatyczne montowanie SWAP'a po restarcie

zrobiłem... jak sprawdzić czy zrobił się link ?

15

Odp: Automatyczne montowanie SWAP'a po restarcie

ls /etc/rc.d

Powinien być plik S99transmission

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

16 (edytowany przez nazir81 2009-06-23 13:10:39)

Odp: Automatyczne montowanie SWAP'a po restarcie

nie ma ani transmission ani swap_nazir...

root@OpenWrt:/etc/init.d# ls /etc/rc.d
K40network       S20fstab         S50httpd         S95done
K99umount        S39usb           S50telnet        S97watchdog
S02nvram         S40network       S59luci_ethers   S99sysctl
S05luci_fixtime  S45firewall      S59luci_hosts
S05netconfig     S50cron          S60dnsmasq
S10boot          S50dropbear      S60led

wywołanie polecenia /etc/init.d/transmission nie powoduje dopisanie linku...

17

Odp: Automatyczne montowanie SWAP'a po restarcie

A jak zrobisz ręcznie?

ln -s /etc/init.d/transmission /etc/rc.d/S99transmission ?

Co najmniej dziwne, że nie chce linków robić.

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

18

Odp: Automatyczne montowanie SWAP'a po restarcie

Nie masz problemów z zapisem czegokolwiek w pamięci flash?

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

19

Odp: Automatyczne montowanie SWAP'a po restarcie

Ręcznie linki się utworzyły.
Jeśli teraz wykonałem /etc/init.d/transmission disable i /etc/init.d/transmission enable
to link się usunął i utworzył.
Po resecie routera niestety transmission nie uruchomił się, swap się nie zamontował (linki do jednego i do drugiego istaniły)

20

Odp: Automatyczne montowanie SWAP'a po restarcie

smile, cuda się dzieją...

logread nie pokazuje czegoś związanego z jffs czy dyskiem?

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

21

Odp: Automatyczne montowanie SWAP'a po restarcie

to jest log. Nie wiem czego w nim ewentualnie szukać...

May 31 12:34:00 OpenWrt user.warn kernel: Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
May 31 12:34:00 OpenWrt user.warn kernel: CPU: BCM4704 rev 9 at 264 MHz
May 31 12:34:00 OpenWrt user.warn kernel: Using 132.000 MHz high precision timer.
May 31 12:34:00 OpenWrt user.warn kernel: Calibrating delay loop... 263.78 BogoMIPS
May 31 12:34:00 OpenWrt user.info kernel: Memory: 14260k/16384k available (1425k kernel code, 2124k reserved, 100k data, 84k init, 0k highmem)
May 31 12:34:00 OpenWrt user.info kernel: Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
May 31 12:34:00 OpenWrt user.info kernel: Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
May 31 12:34:00 OpenWrt user.info kernel: Mount cache hash table entries: 512 (order: 0, 4096 bytes)
May 31 12:34:00 OpenWrt user.info kernel: Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
May 31 12:34:00 OpenWrt user.warn kernel: Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
May 31 12:34:00 OpenWrt user.warn kernel: Checking for 'wait' instruction...  unavailable.
May 31 12:34:00 OpenWrt user.warn kernel: POSIX conformance testing by UNIFIX
May 31 12:34:00 OpenWrt user.warn kernel: PCI: Initializing host
May 31 12:34:00 OpenWrt user.warn kernel: PCI: Fixing up bus 0
May 31 12:34:00 OpenWrt user.warn kernel: PCI: Fixing up bridge
May 31 12:34:00 OpenWrt user.debug kernel: PCI: Setting latency timer of device 01:00.0 to 64
May 31 12:34:00 OpenWrt user.warn kernel: PCI: Fixing up bus 1
May 31 12:34:00 OpenWrt user.info kernel: Linux NET4.0 for Linux 2.4
May 31 12:34:00 OpenWrt user.info kernel: Based upon Swansea University Computer Society NET3.039
May 31 12:34:00 OpenWrt user.warn kernel: Initializing RT netlink socket
May 31 12:34:00 OpenWrt user.warn kernel: Starting kswapd
May 31 12:34:00 OpenWrt user.warn kernel: Registering mini_fo version $Id$
May 31 12:34:00 OpenWrt user.info kernel: devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
May 31 12:34:00 OpenWrt user.info kernel: devfs: boot_options: 0x1
May 31 12:34:00 OpenWrt user.notice kernel: JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
May 31 12:34:00 OpenWrt user.info kernel: squashfs: version 3.0 (2006/03/15) Phillip Lougher
May 31 12:34:00 OpenWrt user.warn kernel: pty: 256 Unix98 ptys configured
May 31 12:34:00 OpenWrt user.info kernel: Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
May 31 12:34:00 OpenWrt user.info kernel: ttyS00 at 0xb8000300 (irq = 3) is a 16550A
May 31 12:34:00 OpenWrt user.info kernel: ttyS01 at 0xb8000400 (irq = 3) is a 16550A
May 31 12:34:00 OpenWrt user.info kernel: b44.c:v0.93 (Mar, 2004)
May 31 12:34:00 OpenWrt user.debug kernel: PCI: Setting latency timer of device 00:01.0 to 64
May 31 12:34:00 OpenWrt user.info kernel: eth0: Broadcom 47xx 10/100BaseT Ethernet 
May 31 12:34:00 OpenWrt user.debug kernel: PCI: Setting latency timer of device 00:02.0 to 64
May 31 12:34:00 OpenWrt user.info kernel: eth1: Broadcom 47xx 10/100BaseT Ethernet 
May 31 12:34:00 OpenWrt user.debug kernel: Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
May 31 12:34:00 OpenWrt user.debug kernel: Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
May 31 12:34:00 OpenWrt user.debug kernel: Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
May 31 12:34:00 OpenWrt user.notice kernel:  Amd/Fujitsu Extended Query Table v1.3 at 0x0040
May 31 12:34:00 OpenWrt user.notice kernel: number of CFI chips: 1
May 31 12:34:00 OpenWrt user.notice kernel: cfi_cmdset_0002: Disabling fast programming due to code brokenness.
May 31 12:34:00 OpenWrt user.notice kernel: Flash device: 0x800000 at 0x1c000000
May 31 12:34:00 OpenWrt user.notice kernel: bootloader size: 262144
May 31 12:34:00 OpenWrt user.info kernel: Physically mapped flash: Filesystem type: squashfs, size=0x181cc9
May 31 12:34:00 OpenWrt user.notice kernel: Creating 5 MTD partitions on "Physically mapped flash":
May 31 12:34:00 OpenWrt user.notice kernel: 0x00000000-0x00040000 : "cfe"
May 31 12:34:00 OpenWrt user.notice kernel: 0x00040000-0x007f0000 : "linux"
May 31 12:34:00 OpenWrt user.notice kernel: 0x000bb000-0x00240000 : "rootfs"
May 31 12:34:00 OpenWrt user.warn kernel: mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
May 31 12:34:00 OpenWrt user.notice kernel: 0x007f0000-0x00800000 : "nvram"
May 31 12:34:00 OpenWrt user.notice kernel: 0x00240000-0x007f0000 : "rootfs_data"
May 31 12:34:00 OpenWrt user.info kernel: Initializing Cryptographic API
May 31 12:34:00 OpenWrt user.info kernel: NET4: Linux TCP/IP 1.0 for NET4.0
May 31 12:34:00 OpenWrt user.info kernel: IP Protocols: ICMP, UDP, TCP, IGMP
May 31 12:34:00 OpenWrt user.info kernel: IP: routing cache hash table of 512 buckets, 4Kbytes
May 31 12:34:00 OpenWrt user.info kernel: TCP: Hash tables configured (established 1024 bind 2048)
May 31 12:34:00 OpenWrt user.info kernel: NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
May 31 12:34:00 OpenWrt user.info kernel: NET4: Ethernet Bridge 008 for NET4.0
May 31 12:34:00 OpenWrt user.info kernel: 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
May 31 12:34:00 OpenWrt user.info kernel: All bugs added by David S. Miller <davem@redhat.com>
May 31 12:34:00 OpenWrt user.warn kernel: VFS: Mounted root (squashfs filesystem) readonly.
May 31 12:34:00 OpenWrt user.info kernel: Mounted devfs on /dev
May 31 12:34:00 OpenWrt user.info kernel: Freeing unused kernel memory: 84k freed
May 31 12:34:00 OpenWrt user.warn kernel: Algorithmics/MIPS FPU Emulator v1.5
May 31 12:34:00 OpenWrt user.warn kernel: diag: Detected 'ASUS WL-500g Premium'
May 31 12:34:00 OpenWrt user.info kernel: b44: eth0: Link is up at 100 Mbps, full duplex.
May 31 12:34:00 OpenWrt user.info kernel: b44: eth0: Flow control is off for TX and off for RX.
May 31 12:34:00 OpenWrt user.info kernel: roboswitch: Probing device eth0: found!
May 31 12:34:00 OpenWrt user.info kernel: mini_fo: using base directory: /
May 31 12:34:00 OpenWrt user.info kernel: mini_fo: using storage directory: /jffs
May 31 12:34:00 OpenWrt user.warn kernel: jffs2.bbc: SIZE compression mode activated.
May 31 12:34:02 OpenWrt user.info kernel: b44: eth0: Link is up at 100 Mbps, full duplex.
May 31 12:34:02 OpenWrt user.info kernel: b44: eth0: Flow control is off for TX and off for RX.
May 31 12:34:03 OpenWrt user.debug kernel: eth0.0: add 01:00:5e:00:00:01 mcast address to master interface
May 31 12:34:03 OpenWrt user.debug kernel: eth0.1: add 01:00:5e:00:00:01 mcast address to master interface
May 31 12:34:04 OpenWrt user.info kernel: SCSI subsystem driver Revision: 1.00
May 31 12:34:04 OpenWrt user.info kernel: eth0.0: dev_set_promiscuity(master, 1)
May 31 12:34:04 OpenWrt user.info kernel: device eth0 entered promiscuous mode
May 31 12:34:04 OpenWrt user.info kernel: device eth0.0 entered promiscuous mode
May 31 12:34:04 OpenWrt user.info kernel: br-lan: port 1(eth0.0) entering learning state
May 31 12:34:04 OpenWrt user.info kernel: br-lan: port 1(eth0.0) entering forwarding state
May 31 12:34:04 OpenWrt user.info kernel: br-lan: topology change detected, propagating
May 31 12:34:05 OpenWrt user.info kernel: usb.c: registered new driver usbdevfs
May 31 12:34:05 OpenWrt user.info kernel: usb.c: registered new driver hub
May 31 12:34:07 OpenWrt user.debug kernel: PCI: Setting latency timer of device 01:02.0 to 64
May 31 12:34:07 OpenWrt user.warn kernel: PCI: Enabling device 01:02.0 (0004 -> 0006)
May 31 12:34:07 OpenWrt user.emerg kernel: PCI/DMA
May 31 12:34:07 OpenWrt user.emerg kernel: wl0: wlc_attach: chiprev 2 coreunit 0 corerev 9 cccap 0x640009 maccap 0x0 band 2.4G, phy_type 2 phy_rev 7 ana_rev 3
May 31 12:34:07 OpenWrt user.warn kernel: wl0: Broadcom BCM4318 802.11 Wireless Controller 4.150.10.5
May 31 12:34:08 OpenWrt user.info sysinit: Warning: loading wl will taint the kernel: non-GPL license - Proprietary
May 31 12:34:08 OpenWrt user.info sysinit:   See http://www.tux.org/lkml/#export-tainted for information about tainted modules
May 31 12:34:08 OpenWrt user.info kernel: Journalled Block Device driver loaded
May 31 12:34:08 OpenWrt user.info kernel: CSLIP: code copyright 1989 Regents of the University of California
May 31 12:34:08 OpenWrt user.info kernel: PPP generic driver version 2.4.2
May 31 12:34:09 OpenWrt user.warn kernel: ip_tables: (C) 2000-2002 Netfilter core team
May 31 12:34:09 OpenWrt user.warn kernel: ip_conntrack version 2.1 (5953 buckets, 5953 max) - 360 bytes per conntrack
May 31 12:34:10 OpenWrt user.info kernel: usb-uhci.c: $Revision: 1.275 $ time 09:27:10 May 31 2009
May 31 12:34:10 OpenWrt user.info kernel: usb-uhci.c: High bandwidth mode enabled
May 31 12:34:10 OpenWrt user.warn kernel: PCI: Enabling device 01:03.0 (0000 -> 0001)
May 31 12:34:10 OpenWrt user.info kernel: UHCI: Enabling VIA 6212 workarounds
May 31 12:34:10 OpenWrt user.info kernel: usb-uhci.c: USB UHCI at I/O 0x100, IRQ 2
May 31 12:34:10 OpenWrt user.warn kernel: usb-uhci.c: Detected 2 ports
May 31 12:34:10 OpenWrt user.info kernel: usb.c: new USB bus registered, assigned bus number 1
May 31 12:34:10 OpenWrt user.info kernel: hub.c: USB hub found
May 31 12:34:10 OpenWrt user.info kernel: hub.c: 2 ports detected
May 31 12:34:10 OpenWrt user.warn kernel: PCI: Enabling device 01:03.1 (0000 -> 0001)
May 31 12:34:10 OpenWrt user.info kernel: UHCI: Enabling VIA 6212 workarounds
May 31 12:34:10 OpenWrt user.info kernel: usb-uhci.c: USB UHCI at I/O 0x120, IRQ 2
May 31 12:34:10 OpenWrt user.warn kernel: usb-uhci.c: Detected 2 ports
May 31 12:34:10 OpenWrt user.info kernel: usb.c: new USB bus registered, assigned bus number 2
May 31 12:34:10 OpenWrt user.info kernel: hub.c: USB hub found
May 31 12:34:10 OpenWrt user.info kernel: hub.c: 2 ports detected
May 31 12:34:10 OpenWrt user.info kernel: usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
May 31 12:34:10 OpenWrt user.warn kernel: PCI: Enabling device 01:03.2 (0000 -> 0002)
May 31 12:34:10 OpenWrt user.info kernel: ehci_hcd 01:03.2: PCI device 1106:3104
May 31 12:34:10 OpenWrt user.info kernel: ehci_hcd 01:03.2: irq 2, pci mem c0238000
May 31 12:34:10 OpenWrt user.info kernel: usb.c: new USB bus registered, assigned bus number 3
May 31 12:34:10 OpenWrt user.info kernel: EHCI: Enabling VIA 6212 workarounds
May 31 12:34:10 OpenWrt user.info kernel: ehci_hcd 01:03.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
May 31 12:34:10 OpenWrt user.info kernel: hub.c: USB hub found
May 31 12:34:10 OpenWrt user.info kernel: hub.c: 4 ports detected
May 31 12:34:10 OpenWrt user.info kernel: Initializing USB Mass Storage driver...
May 31 12:34:10 OpenWrt user.info kernel: usb.c: registered new driver usb-storage
May 31 12:34:10 OpenWrt user.info kernel: USB Mass Storage support registered.
May 31 12:34:11 OpenWrt user.err kernel: hub.c: connect-debounce failed, port 1 disabled
May 31 12:34:11 OpenWrt user.info kernel: hub.c: new USB device 01:03.2-1, assigned address 2
May 31 12:34:11 OpenWrt user.info kernel: scsi0 : SCSI emulation for USB Mass Storage devices
May 31 12:34:11 OpenWrt user.warn kernel:   Vendor:           Model: USB Flash Memory  Rev: 1.00
May 31 12:34:11 OpenWrt user.warn kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
May 31 12:34:11 OpenWrt user.warn kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
May 31 12:34:11 OpenWrt user.warn kernel: SCSI device sda: 7823296 512-byte hdwr sectors (4006 MB)
May 31 12:34:11 OpenWrt user.warn kernel: sda: Write Protect is off
May 31 12:34:11 OpenWrt user.info kernel: Partition check:
May 31 12:34:11 OpenWrt user.info kernel:  /dev/scsi/host0/bus0/target0/lun0:
May 31 12:34:11 OpenWrt user.info kernel:  p1 p2
May 31 12:34:11 OpenWrt user.debug kernel: WARNING: USB Mass Storage data integrity not assured
May 31 12:34:11 OpenWrt user.debug kernel: USB Mass Storage device found at 2
May 31 12:34:11 OpenWrt user.notice root: usb device is mass storage
May 31 12:34:11 OpenWrt user.notice root: waiting on usb drive 0 ...
May 31 12:34:12 OpenWrt user.notice root: waiting on usb drive 1 ...
May 31 12:34:13 OpenWrt user.notice root: waiting on usb drive 2 ...
May 31 12:34:14 OpenWrt user.notice root: waiting on usb drive 3 ...
May 31 12:34:16 OpenWrt user.notice root: waiting on usb drive 4 ...
May 31 12:34:17 OpenWrt user.notice root: waiting on usb drive 5 ...
May 31 12:34:18 OpenWrt user.notice root: waiting on usb drive 6 ...
May 31 12:34:19 OpenWrt user.notice root: waiting on usb drive 7 ...
May 31 12:34:20 OpenWrt user.notice root: waiting on usb drive 8 ...
May 31 12:34:21 OpenWrt user.info kernel: kjournald starting.  Commit interval 5 seconds
May 31 12:34:21 OpenWrt user.info kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,2), internal journal
May 31 12:34:21 OpenWrt user.info kernel: EXT3-fs: mounted filesystem with ordered data mode.
May 31 12:34:21 OpenWrt user.info sysinit: swapon: can't load library 'libblkid.so.1'
May 31 12:34:21 OpenWrt user.notice root: waiting on usb drive 9 ...
May 31 12:34:22 OpenWrt user.notice root: waiting on usb drive 10 ...
May 31 12:34:23 OpenWrt user.info sysinit: channel: Invalid argument
May 31 12:34:24 OpenWrt user.info kernel: device wl0 entered promiscuous mode
May 31 12:34:24 OpenWrt user.info kernel: wl0: attempt to add interface with same source address.
May 31 12:34:24 OpenWrt user.info kernel: br-lan: port 2(wl0) entering learning state
May 31 12:34:24 OpenWrt user.info kernel: br-lan: port 2(wl0) entering forwarding state
May 31 12:34:24 OpenWrt user.info kernel: br-lan: topology change detected, propagating
May 31 12:34:24 OpenWrt user.info sysinit: swapon: can't load library 'libblkid.so.1'
May 31 12:34:25 OpenWrt user.info sysinit: Loading defaults
May 31 12:34:26 OpenWrt user.info sysinit: Loading synflood protection
May 31 12:34:26 OpenWrt user.info sysinit: Adding custom chains
May 31 12:34:27 OpenWrt user.info sysinit: Loading zones
May 31 12:34:27 OpenWrt user.info sysinit: Loading forwarding
May 31 12:34:27 OpenWrt user.info sysinit: Loading redirects
May 31 12:34:27 OpenWrt user.info sysinit: Loading rules
May 31 12:34:27 OpenWrt user.info sysinit: Loading includes
May 31 12:34:29 OpenWrt user.notice root: adding lan (br-lan) to firewall zone lan
May 31 12:34:29 OpenWrt user.notice root: adding wan (eth0.1) to firewall zone wan
May 31 12:34:30 OpenWrt authpriv.info dropbear[729]: Running in background
May 31 12:34:34 OpenWrt daemon.info dnsmasq[759]: started, version 2.47 cachesize 150
May 31 12:34:34 OpenWrt daemon.info dnsmasq[759]: compile time options: IPv6 GNU-getopt no-DBus no-I18N TFTP
May 31 12:34:34 OpenWrt daemon.info dnsmasq[759]: DHCP, IP range 10.0.0.100 -- 10.0.0.105, lease time 12h
May 31 12:34:34 OpenWrt daemon.info dnsmasq[759]: using local addresses only for domain lan
May 31 12:34:34 OpenWrt daemon.info dnsmasq[759]: reading /tmp/resolv.conf.auto
May 31 12:34:34 OpenWrt daemon.info dnsmasq[759]: using nameserver 192.168.0.250#53
May 31 12:34:34 OpenWrt daemon.info dnsmasq[759]: using local addresses only for domain lan
May 31 12:34:34 OpenWrt daemon.info dnsmasq[759]: read /etc/hosts - 1 addresses
May 31 12:34:34 OpenWrt daemon.info dnsmasq[759]: read /etc/ethers - 0 addresses
May 31 12:34:34 OpenWrt user.info sysinit: /etc/rc.common: eval: line 13: transmission-daemon: not found
May 31 12:34:35 OpenWrt user.info sysinit: sysctl: error: 'net.netfilter.nf_conntrack_checksum' is an unknown key
May 31 12:34:35 OpenWrt user.info sysinit: sysctl: error: 'net.ipv4.netfilter.ip_conntrack_checksum' is an unknown key
May 31 12:35:22 OpenWrt daemon.info dnsmasq[759]: DHCPDISCOVER(br-lan) 
May 31 12:35:22 OpenWrt daemon.info dnsmasq[759]: DHCPOFFER(br-lan) 
May 31 12:35:22 OpenWrt daemon.info dnsmasq[759]: DHCPREQUEST(br-lan) 
May 31 12:35:22 OpenWrt daemon.info dnsmasq[759]: DHCPACK(br-lan) 

22

Odp: Automatyczne montowanie SWAP'a po restarcie

problemem jest chyba:

swapon: can't load library 'libblkid.so.1'

ale co z tym zrobić ?

23

Odp: Automatyczne montowanie SWAP'a po restarcie

Tak, to jest problem, tylko jakim cudem działa jak z palca to robisz...

libblkid zainstaluj

transmission-daemon nie może znaleźć. Gdzie to zainstalowałeś? Na dysku zewnętrznym? Jak tak to podaj całą ścieżkę do uruchomienia po zmiennej path nie ustawiłeś.

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

24

Odp: Automatyczne montowanie SWAP'a po restarcie

1) swap
Za pierwszym razem SWAP-UTILS został zainstalowany na pendrive. Instalacja SWAP-UTIL wymusiła instalację dwóch dodatkowych pakietów. Po odinstalowaniu SWAP-UTIL i zainstalowaniu SWAP-UTIL w root dwa pozostałe pakiety ciągle były zainstalowane na pendrive.
Odinstalowanie tych pakietów oraz swap-utils i zainstalowanie wszystkiego w root spowodowało że SWAP zamontował się automatycznie

:-)

2) transmission
po podaniu pełnej ścieżki w pliku /etc/init.d/transmission zaczęło działać

:-)

dwie podstawowe wydawałoby się funkcjonalności zaczęły działać po całodziennej walce... ale opłacało się ;-) przynajmniej czegoś się nauczyłem

dzięki za pomoc smile

25

Odp: Automatyczne montowanie SWAP'a po restarcie

Jak instalujesz na pendrive pamiętaj że masz mieć dostęp do wszystkich binarek, bibliotek i plików danych. Po prostu nie zrobiłeś linków z bibliotek.

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