PDA

Bekijk de volledige versie : [HowTo] Install and configure Oleg's firmware



Pages : 1 2 3 [4]

RDF
03-12-2009, 10:52
Hi RDF,

Informations needed!!
Sorry, I should have been more informative! :)


- Hardware?
WL-500W (It's almost identical to the Premiums, that's why I post here:). Ethernet cable on WAN and LAN1
500 GB Lacie USB-HDD with external power.
Partitions:
part1=1GB swap,
part2=1GB ipkg,
part3=the rest


- Firmware?
1.9.2.7-d-r740


- Full install of my HowTo?
Not all. I did everything up to the HDD installation a few weeks ago. Yesterday I got a hard drive and followed from there in this order:

the whole HDD section (I copied your scripts, see below)
IPKG preparations and installation
the basic tools (programs) through ipkg
transmission through ipkg


Everything went smooth!

RDF
03-12-2009, 10:56
- log files (dmesg, syslog, anything else that could help).
This is going to be lengthy... I have to divide into multiple posts. If you think we should discuss this in a different thread, please let me know. I almost feel like a spammer! :)

dmesg


CPU revision is: 00029006
Primary instruction cache 16kB, physically tagged, 2-way, linesize 16 bytes.
Primary data cache 16kB, 2-way, linesize 16 bytes.
Linux version 2.4.37.6 (root@localhost) (gcc version 3.4.6) #9 2009-10-30 20:22:17 MSK
Setting the PFC to its default value
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,ext3 noinitrd init=/linuxrc console=ttyS0,115200
CPU: BCM4704 rev 9 pkg 0 at 264 MHz
Using 132.000 MHz high precision timer.
Calibrating delay loop... 3.27 BogoMIPS
Memory: 30080k/32768k available (1763k kernel code, 2688k reserved, 236k data, 88k init, 0k highmem)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
Checking for 'wait' instruction... unavailable.
POSIX conformance testing by UNIFIX
PCI: Initializing host
PCI: Fixing up bus 0
PCI: Fixing up bridge
PCI: Setting latency timer of device 01:00.0 to 64
PCI: Fixing up bus 1
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
NTFS driver v1.1.22 [Flags: R/O]
squashfs: version 3.0 (2006/03/15) Phillip Lougher
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0xb8000300 (irq = 3) is a 16550A
ttyS01 at 0xb8000400 (irq = 3) is a 16550A
HDLC line discipline: version $Revision: 3.7 $, maxframe=4096
N_HDLC line discipline registered.
loop: loaded (max 8 devices)
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
MPPE/MPPC encryption/compression module registered
PPPoL2TP kernel driver, V0.15.1
PPTP driver version 0.8.4
Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
Amd/Fujitsu Extended Query Table v1.3 at 0x0040
Flash Id: Vendor: 0x0001 Device: 0x007e
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
Flash device: 0x800000 at 0x1c000000
Physically mapped flash: squashfs filesystem found at block 915
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "boot"
0x00040000-0x007f0000 : "linux"
0x000e4c50-0x007f0000 : "rootfs"
0x007f0000-0x00800000 : "nvram"
0x003e0000-0x007f0000 : "flashfs"
sflash: found no supported devices
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
Linux IP multicast router 0.06 plus PIM-SM
ip_conntrack version 2.1 (5953 buckets, 11906 max) - 328 bytes per conntrack
ip_conntrack_pptp version 1.9 loaded
ip_nat_pptp version 1.5 loaded
ip_tables: (C) 2000-2002 Netfilter core team
ipt_time loading
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 88k freed
Algorithmics/MIPS FPU Emulator v1.5
PCI: Setting latency timer of device 00:01.0 to 64
unregister_netdevice: device eth0/8107f400 never was registered
PCI: Setting latency timer of device 00:02.0 to 64
unregister_netdevice: device eth0/8107f400 never was registered
PCI: Setting latency timer of device 01:02.0 to 64
PCI: Enabling device 01:02.0 (0004 -> 0006)
eth0: Broadcom BCM4329 802.11 Wireless Controller 4.150.10.29
device eth0 entered promiscuous mode
br0: port 1(eth0) entering learning state
br0: port 1(eth0) entering forwarding state
br0: topology change detected, propagating
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 20:19:57 Oct 27 2009
usb-uhci.c: High bandwidth mode enabled
PCI: Enabling device 01:03.0 (0000 -> 0001)
UHCI: Enabling VIA 6212 workarounds
usb-uhci.c: USB UHCI at I/O 0x100, IRQ 12
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Enabling device 01:03.1 (0000 -> 0001)
UHCI: Enabling VIA 6212 workarounds
usb-uhci.c: USB UHCI at I/O 0x120, IRQ 12
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
PCI: Enabling device 01:03.2 (0000 -> 0002)
ehci_hcd 01:03.2: PCI device 1106:3104
ehci_hcd 01:03.2: irq 12, pci mem c0194000
usb.c: new USB bus registered, assigned bus number 3
EHCI: Enabling VIA 6212 workarounds
ehci_hcd 01:03.2: USB 2.0 enabled, EHCI 1.00, driver 10 Dec 2004/2.4
hub.c: USB hub found
hub.c: 4 ports detected
usb.c: registered new driver usblp
printer.c: v0.13: USB Printer Device Class driver
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
usb.c: deregistering driver usblp
hub.c: new USB device 01:03.2-1, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Hitachi Model: HDT721050SLA360 Rev:
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 976773168 512-byte hdwr sectors (500108 MB)
Partition check:
/dev/scsi/host0/bus0/target0/lun0: p1 p2 p3
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
Adding Swap: 1060248k swap-space (priority -1)
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,2), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,3), internal journal
EXT3-fs: mounted filesystem with ordered data mode.

RDF
03-12-2009, 10:57
syslog.log

Jan 1 02:00:01 syslogd started: BusyBox v1.15.2
Jan 1 02:00:01 kernel: klogd started: BusyBox v1.15.2 (2009-10-30 20:19:08 MSK)
Jan 1 02:00:01 kernel: CPU revision is: 00029006
Jan 1 02:00:01 kernel: Primary instruction cache 16kB, physically tagged, 2-way, linesize 16 bytes.
Jan 1 02:00:01 kernel: Primary data cache 16kB, 2-way, linesize 16 bytes.
Jan 1 02:00:01 kernel: Linux version 2.4.37.6 (root@localhost) (gcc version 3.4.6) #9 2009-10-30 20:22:17 MSK
Jan 1 02:00:01 kernel: Setting the PFC to its default value
Jan 1 02:00:01 kernel: Determined physical RAM map:
Jan 1 02:00:01 kernel: memory: 02000000 @ 00000000 (usable)
Jan 1 02:00:01 kernel: On node 0 totalpages: 8192
Jan 1 02:00:01 kernel: zone(0): 8192 pages.
Jan 1 02:00:01 kernel: zone(1): 0 pages.
Jan 1 02:00:01 dnsmasq[44]: started, version 2.51 cachesize 512
Jan 1 02:00:01 dnsmasq[44]: compile time options: no-IPv6 GNU-getopt no-RTC no-DBus no-I18N DHCP no-scripts no-TFTP
Jan 1 02:00:01 dnsmasq-dhcp[44]: DHCP, IP range 192.168.100.2 -- 192.168.100.254, lease time 1d
Jan 1 02:00:01 dnsmasq[44]: read /etc/hosts - 2 addresses
Jan 1 02:00:01 dnsmasq[44]: using nameserver 94.237.0.27#53
Jan 1 02:00:01 dnsmasq[44]: using nameserver 94.237.0.26#53
Jan 1 02:00:01 kernel: PCI: Enabling device 01:02.0 (0004 -> 0006)
Jan 1 02:00:01 kernel: eth0: Broadcom BCM4329 802.11 Wireless Controller 4.150.10.29
Jan 1 02:00:01 kernel: device eth0 entered promiscuous mode
Jan 1 02:00:01 kernel: br0: port 1(eth0) entering learning state
Jan 1 02:00:01 kernel: br0: port 1(eth0) entering forwarding state
Jan 1 02:00:01 kernel: br0: topology change detected, propagating
Jan 1 02:00:02 kernel: usb.c: registered new driver usbdevfs
Jan 1 02:00:02 kernel: usb.c: registered new driver hub
Jan 1 02:00:02 kernel: usb-uhci.c: $Revision: 1.275 $ time 20:19:57 Oct 27 2009
Jan 1 02:00:02 kernel: usb-uhci.c: High bandwidth mode enabled
Jan 1 02:00:02 kernel: PCI: Enabling device 01:03.0 (0000 -> 0001)
Jan 1 02:00:02 kernel: UHCI: Enabling VIA 6212 workarounds
Jan 1 02:00:02 kernel: usb-uhci.c: USB UHCI at I/O 0x100, IRQ 12
Jan 1 02:00:02 kernel: usb-uhci.c: Detected 2 ports
Jan 1 02:00:02 kernel: usb.c: new USB bus registered, assigned bus number 1
Jan 1 02:00:02 kernel: hub.c: USB hub found
Jan 1 02:00:02 kernel: hub.c: 2 ports detected
Jan 1 02:00:02 kernel: PCI: Enabling device 01:03.1 (0000 -> 0001)
Jan 1 02:00:02 kernel: UHCI: Enabling VIA 6212 workarounds
Jan 1 02:00:02 kernel: usb-uhci.c: USB UHCI at I/O 0x120, IRQ 12
Jan 1 02:00:02 kernel: usb-uhci.c: Detected 2 ports
Jan 1 02:00:02 kernel: usb.c: new USB bus registered, assigned bus number 2
Jan 1 02:00:02 kernel: hub.c: USB hub found
Jan 1 02:00:02 kernel: hub.c: 2 ports detected
Jan 1 02:00:02 kernel: usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
Jan 1 02:00:02 kernel: PCI: Enabling device 01:03.2 (0000 -> 0002)
Jan 1 02:00:02 kernel: ehci_hcd 01:03.2: PCI device 1106:3104
Jan 1 02:00:02 kernel: ehci_hcd 01:03.2: irq 12, pci mem c0194000
Jan 1 02:00:02 kernel: usb.c: new USB bus registered, assigned bus number 3
Jan 1 02:00:02 kernel: EHCI: Enabling VIA 6212 workarounds
Jan 1 02:00:02 kernel: ehci_hcd 01:03.2: USB 2.0 enabled, EHCI 1.00, driver 10 Dec 2004/2.4
Jan 1 02:00:02 kernel: hub.c: USB hub found
Jan 1 02:00:02 kernel: hub.c: 4 ports detected
Jan 1 02:00:02 kernel: usb.c: registered new driver usblp
Jan 1 02:00:02 kernel: printer.c: v0.13: USB Printer Device Class driver
Jan 1 02:00:03 kernel: SCSI subsystem driver Revision: 1.00
Jan 1 02:00:03 kernel: Initializing USB Mass Storage driver...
Jan 1 02:00:03 kernel: usb.c: registered new driver usb-storage
Jan 1 02:00:03 kernel: USB Mass Storage support registered.
Jan 1 02:00:03 kernel: usb.c: deregistering driver usblp
Jan 1 02:00:03 kernel: hub.c: new USB device 01:03.2-1, assigned address 2
Jan 1 02:00:04 kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Jan 1 02:00:04 kernel: Vendor: Hitachi Model: HDT721050SLA360 Rev:
Jan 1 02:00:04 kernel: Type: Direct-Access ANSI SCSI revision: 02
Jan 1 02:00:04 kernel: Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Jan 1 02:00:04 kernel: SCSI device sda: 976773168 512-byte hdwr sectors (500108 MB)
Jan 1 02:00:04 kernel: Partition check:
Jan 1 02:00:04 kernel: /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3
Jan 1 02:00:13 kernel: Adding Swap: 1060248k swap-space (priority -1)
Jan 1 02:00:13 kernel: kjournald starting. Commit interval 5 seconds
Jan 1 02:00:13 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,2), internal journal
Jan 1 02:00:13 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Jan 1 02:00:13 kernel: kjournald starting. Commit interval 5 seconds
Jan 1 02:00:13 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,3), internal journal
Jan 1 02:00:13 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Jan 1 02:00:13 USB storage: ext3 fs at /dev/discs/disc0/part3 mounted to /tmp/mnt/disc0_3
Jan 1 02:00:13 rc.unslung: start service /opt/etc/init.d/S90transmission-daemon
Jan 1 02:00:38 dnsmasq-dhcp[44]: DHCPREQUEST(br0) 192.168.100.38 00:1b:63:06:ea:1a
Jan 1 02:00:38 dnsmasq-dhcp[44]: DHCPACK(br0) 192.168.100.38 00:1b:63:06:ea:1a

RDF
03-12-2009, 11:17
The final part of my post.

$ ps w

PID USER VSZ STAT COMMAND
1 god 1312 S /sbin/init
2 god 0 SW [keventd]
3 god 0 SWN [ksoftirqd_CPU0]
4 god 0 SW [kswapd]
5 god 0 SW [bdflush]
6 god 0 SW [kupdated]
7 god 0 SW [mtdblockd]
38 god 1108 S httpd eth1
39 god 1072 S nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
41 god 1516 S syslogd -m 0 -O /tmp/syslog.log -S -l 7 -b 2
42 god 1516 S klogd
44 nobody 832 S dnsmasq
45 god 0 SW [khubd]
57 god 1316 S watchdog
63 god 0 SW [usb-storage-0]
64 god 0 SW [scsi_eh_0]
73 god 0 SW [kjournald]
74 god 0 SW [kjournald]
84 god 6304 S N /opt/bin/transmission-daemon -g /tmp/harddisk/transmission/config
85 god 6304 S N /opt/bin/transmission-daemon -g /tmp/harddisk/transmission/config
86 god 6304 S N /opt/bin/transmission-daemon -g /tmp/harddisk/transmission/config
97 god 1516 S sh -c ps w > /tmp/syscmd.log 2>&1
98 god 1516 R ps w

As you can see dropbear should be running, because it's launched in /usr/local/sbin/post-firewall. I have disabled the default dropbear in the web GUI.



$ lsmod

Tainted: P
usb-storage 63080 3
sd_mod 12660 6
scsi_mod 72624 2 [usb-storage sd_mod]
ehci-hcd 28212 0 (unused)
usb-uhci 27412 0 (unused)
usbcore 78840 1 [usb-storage ehci-hcd usb-uhci]
ip_nat_ftp 3136 0 (unused)
ip_conntrack_ftp 4584 1
wl 897336 0 (unused)

No et module?!?



$ ifconfig

br0 Link encap:Ethernet HWaddr 00:1E:8C:72:28:ED
inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2909 errors:0 dropped:0 overruns:0 frame:0
TX packets:4307 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:237804 (232.2 KiB) TX bytes:4382975 (4.1 MiB)

eth0 Link encap:Ethernet HWaddr 00:1E:8C:72:28:ED
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2872 errors:0 dropped:0 overruns:0 frame:339
TX packets:4439 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:274156 (267.7 KiB) TX bytes:4435594 (4.2 MiB)
Interrupt:12 Base address:0x4000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MULTICAST MTU:16436 Metric:1
RX packets:2806 errors:0 dropped:0 overruns:0 frame:0
TX packets:2806 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:568755 (555.4 KiB) TX bytes:568755 (555.4 KiB)
No ethernet drivers? I suppose eth0 is the wireless card.



$ route -an

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.100.1 0.0.0.0 255.255.255.0 U 0 0 0 br0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo



$ netstat -an

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:9091 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:51413 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN
tcp 0 0 192.168.100.1:80 192.168.100.38:55439 TIME_WAIT
tcp 0 0 192.168.100.1:80 192.168.100.38:55435 TIME_WAIT
tcp 0 0 192.168.100.1:80 192.168.100.38:55443 TIME_WAIT
tcp 0 0 192.168.100.1:80 192.168.100.38:55438 TIME_WAIT
tcp 0 0 192.168.100.1:80 192.168.100.38:55434 TIME_WAIT
tcp 0 0 192.168.100.1:80 192.168.100.38:55442 TIME_WAIT
tcp 0 0 192.168.100.1:80 192.168.100.38:55437 TIME_WAIT
tcp 0 0 192.168.100.1:80 192.168.100.38:55445 ESTABLISHED
tcp 0 0 192.168.100.1:80 192.168.100.38:55441 TIME_WAIT
tcp 0 0 192.168.100.1:80 192.168.100.38:55436 TIME_WAIT
tcp 0 0 192.168.100.1:80 192.168.100.38:55444 TIME_WAIT
tcp 0 0 192.168.100.1:80 192.168.100.38:55440 TIME_WAIT
udp 0 0 127.0.0.1:34954 0.0.0.0:*
udp 0 0 0.0.0.0:53 0.0.0.0:*
udp 0 0 0.0.0.0:67 0.0.0.0:*
udp 0 0 0.0.0.0:51413 0.0.0.0:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 4 [ ] DGRAM 259 /dev/log
unix 3 [ ] STREAM CONNECTED 595
unix 3 [ ] STREAM CONNECTED 594
unix 2 [ ] DGRAM 367
unix 2 [ ] DGRAM 366
So httpd and transmission are listening. As you can see I'm controlling the router through httpd, as it is the only way to reach it.



$ mount

rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
tmpfs on /tmp type tmpfs (rw,noatime)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part2 on /opt type ext3 (rw,noatime)
/dev/discs/disc0/part3 on /tmp/mnt/disc0_3 type ext3 (rw,noatime)
All ok here?



$ ls -la /usr/local/sbin/

total 312
drwxr-xr-x 2 god root 220 Jan 1 2000 .
drwxr-xr-x 5 god root 120 Jan 1 2000 ..
-rwxr-xr-x 1 god root 268 Dec 2 17:06 ez-setup
-rwxr-xr-x 1 god root 9836 Nov 18 15:30 knock
-rwxr-xr-x 1 god root 273100 Nov 18 15:30 knockd
-rwxr-xr-x 1 god root 24 Dec 2 18:50 post-boot
-rwxr-xr-x 1 god root 798 Dec 3 09:25 post-firewall
-rwxr-xr-x 1 god root 45 Dec 2 17:12 post-mount
-rwxr-xr-x 1 god root 0 Nov 18 17:43 pre-boot
-rwxr-xr-x 1 god root 330 Dec 2 17:11 pre-mount
-rwxr-xr-x 1 god root 170 Dec 2 17:13 pre-shutdown
These are my startup scripts. N.B. pre-boot is empty.



$ cat /usr/local/sbin/post-boot

#!/bin/sh
rmmod printer



$ cat /usr/local/sbin/post-firewall

#!/bin/sh

LAN_IP="$(nvram get lan_ipaddr)"
#WAN_IP="$(nvram get wan_ipaddr)"

# My own firewall rules:
# remove the default DROP rule
iptables -D INPUT -j DROP

# Open ports for transmission
iptables -A INPUT -p tcp --dport 51413 -j ACCEPT
iptables -A INPUT -p udp --dport 51413 -j ACCEPT

# append the default DROP rule
iptables -A INPUT -j DROP

# -------------------------------------------------

# start dropbear on LAN
/usr/sbin/dropbear -p $LAN_IP:22

# start dropbear on WAN
# -s = no password logins
#/usr/sbin/dropbear -s -p $WAN_IP:2222

# Launch knockd on WAN
#/usr/local/sbin/knockd --daemon --interface eth1 --config /usr/local/etc/knockd/knockd.conf



$ cat /usr/local/sbin/post-mount

#! /bin/sh

/opt/etc/init.d/rc.unslung start
One remark about starting rc.unslung in post-mount: now everytime I plug in a USB flash drive, a new process of transmission is launched because rc.unslung launches it.



$ cat /usr/local/sbin/pre-mount

#! /bin/sh

swapon -a

# I commented out this part of wengi's script cause I want mail notification
# when the file system needs checking. Don't know how to do it yet.
#
#for i in `awk '/ext3/{print($1)}' /etc/fstab` ; do
# if [ -b $i ] ; then
# grep -q $i /proc/mounts || e2fsck -p $i 2>&1 | logger -t e2fsck
# else
# logger -t fstab "$i is not attached"
# fi
#done



$ cat /usr/local/sbin/pre-shutdown

#! /bin/sh

/opt/etc/init.d/rc.unslung stop

sleep 10s

for i in `cat /proc/mounts | awk '/ext3/{print($1)}'` ; do
mount -oremount,ro $i
done

swapoff -a

sleep 1s

Thanks for reading!

wengi
03-12-2009, 14:55
Hi,

this is enough information :D:D:D

But unfortunately dmesg would have been enough. There seems to be something wrong with either your hardware or the firmware.

Regarding to dmesg you only have one network interface!!!!

Just to give you an idea of what should be:
[admin@blechbuechse root]$ dmesg | grep -i eth
NET4: Ethernet Bridge 008 for NET4.0
eth0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.108.9.0
eth1: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.108.9.0
eth2: Broadcom BCM4320 802.11 Wireless Controller 4.108.9.0
device eth2 entered promiscuous mode
device eth1 entered promiscuous mode
br0: port 2(eth1) entering learning state
br0: port 1(eth2) entering learning state
br0: port 2(eth1) entering forwarding state
br0: port 1(eth2) entering forwarding state
br0: port 1(eth2) entering disabled state
br0: port 1(eth2) entering disabled state
device eth2 left promiscuous mode
eth1: no IPv6 routers present
[admin@blechbuechse root]$Well, i do not know the WL500W at all, but there must be more interfaces in dmesg!!!

Assuming that your hardware is ok: Maybe there is a bug in 1.9.2.7-d-r740?
Try version http://wl500g.googlecode.com/files/WL500W-1.9.2.7-d-r893.trx to check this.

wengi

PS: Does this happen allways or just from time to time?

RDF
03-12-2009, 16:03
Thanks for the reply! You are really quick seeing the core of the problem!
And sorry for posting too much stuff... I just don't want another broken asus router. I've already had one broken asus before and I replaced it with this one. I would probably get a heart attack if it is a hardware issue. :)

The situation is this:
Before installing the USB hard drive this NEVER happened. That's about two or three weeks ago, and in the first week I rebooted the router quite often. Then I had probably max 10 day uptime and then few reboots. No problems.

But when I installed the hard drive yesterday this started to happen. However it does not happen every time. Only sometimes when I reboot. I haven't figured out what causes this randomness.

Here is what my dmesg says about ethernet devices in a WORKING system (i.e. right now):

$ dmesg | grep -i eth
NET4: Ethernet Bridge 008 for NET4.0
eth0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.150.10.29
eth1: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.150.10.29
eth2: Broadcom BCM4329 802.11 Wireless Controller 4.150.10.29
device eth0 entered promiscuous mode
device eth2 entered promiscuous mode
eth2: attempt to add interface with same source address.
br0: port 2(eth2) entering learning state
br0: port 1(eth0) entering learning state
br0: port 2(eth2) entering forwarding state
br0: port 1(eth0) entering forwarding state

And the same from the non-working system for comparison:

unregister_netdevice: device eth0/8107f400 never was registered
unregister_netdevice: device eth0/8107f400 never was registered
eth0: Broadcom BCM4329 802.11 Wireless Controller 4.150.10.29
device eth0 entered promiscuous mode
br0: port 1(eth0) entering learning state
br0: port 1(eth0) entering forwarding state
Pequod:~ matti$ cat jorma | grep -i eth
NET4: Ethernet Bridge 008 for NET4.0
unregister_netdevice: device eth0/8107f400 never was registered
unregister_netdevice: device eth0/8107f400 never was registered
eth0: Broadcom BCM4329 802.11 Wireless Controller 4.150.10.29
device eth0 entered promiscuous mode
br0: port 1(eth0) entering learning state
br0: port 1(eth0) entering forwarding state

What do the two lines
unregister_netdevice: device eth0/8107f400 never was registered
unregister_netdevice: device eth0/8107f400 never was registered
really mean?

That the kernel finds them but doesn't register???

If this is a hardware problem why does it still sometimes work? And when it works the connection is fine. No dropped packets and full speed.

The WL-500w has the same hardware as WL-500g Premium V1 except the wireless chip/card and the antennas.

I really appreciate your help!

wengi
04-12-2009, 12:13
Hi,

this is the question! But i can not answer it :eek::(
I will try to point ily to this issue.
If somebody has an idea this is our man :)

wengi

wengi
04-12-2009, 12:40
Ily is quick :)
Here is his answer:


I apologize, that problem is hardware related, especially power supply (both HDD & router). As additional diagnostics, he can try to

cat /proc/bus/pci/devices
if ethernet controller missed in list, problem in HW.

Power Suply is a very (!!!!) good idea!
Do you have any chance to check this?
Maybe you have a stronger power suply for your asus?
Your HDD has an external power suply but maybe there is still some power over usb.
You could also try to use an USB Hub with power suply.
Or try another hdd.

Final: If this is a hardware issue that only comes up with your hdd attached we should try to seperate the hdd.

wengi

RDF
04-12-2009, 15:06
Hi!

How to check the power supply?
I don't have any electric tools, but when I go back to my parents place at christmas holidays I can check with my dads tools :)

Here's the output of
$ cat /proc/bus/pci/devices | grep -i et

0008 14e44713 4 18001000 00000000 00000000 00000000 00000000 00000000 00000000 00001000 00000000 00000000 00000000 00000000 00000000 00000800 et
0010 14e44713 5 18002000 00000000 00000000 00000000 00000000 00000000 00000000 00001000 00000000 00000000 00000000 00000000 00000000 00000800 et
Does this mean everything is ok on HW side? The router is running without any problems now. I will try to see the proc...devices again when the problem occurs next time.

I will definitely test it without the HDD to narrow down the cause of the problem. A broken power supply sounds like a good candidate because the problem is so random.

Thanks again!

QMax
05-12-2009, 18:21
Can I use something like:


/opt/bin/nice -n-15 /opt/sbin/smbd

in netbios-ssn, to have higher priority for Samba when used to play 1080p movies from Xtreamer ?

I'm using ipkg installed Samba2 startd from xinetd.

Thanks

mataanjin
06-12-2009, 03:39
can we add a new tracker using transmission?
how?

wpte
06-12-2009, 14:46
can we add a new tracker using transmission?
how?

no, you have to manually edit them...
try: http://torrenteditor.com/ (online editor)
or
http://krypt.dyndns.org:81/torrent/maketorrent/ (torrent creator/editor)

QMax
07-12-2009, 08:28
Can I use something like:


/opt/bin/nice -n-15 /opt/sbin/smbd

in netbios-ssn, to have higher priority for Samba ?

Thanks

I think I've solved simply adding a new line to /opt/etc/xinetd.d/netbios-ssn:


service netbios-ssn
{
disable = no
socket_type = stream
protocol = tcp
port = 139
user = root
wait = no
only_from = localhost 192.168.1.1/24
server = /opt/sbin/smbd
nice = -18
}


Now everytime smbd starts, from Top i can see NI -18.

Max

lowie82ph
07-12-2009, 15:44
Hi Wengi,

I'm planning to use an NTFS partition as the DATA partition, is this possible?
Can this be done by installing ntfs-3g driver and editing the fstab file?
Do you think my WL-520gU can handle this setup?

Thanks,

wengi
08-12-2009, 12:10
Hi,

ntfs-3g is available via ipkg. This should work in theory if the driver is loaded before the partition is mounted.
I never tried it :)

Give us a feedback if and how it works.

wengi

coolerstuff
09-12-2009, 10:17
Have Olegs FW 1.9.2.7-10 on WL-500g Premium

When logged into the router I can ping the local IP of my printer which is 192.168.1.165
when I am on another PC (192.168.1.100) I cannot reach / ping 192.168.1.165

What is wrong in the config???

Any help much appreciated

wengi
09-12-2009, 11:34
@coolerstuff

DOUBLE POST!
Please do not use this thread.

wengi

mataanjin
09-12-2009, 11:37
Hi Wengi,

I'm planning to use an NTFS partition as the DATA partition, is this possible?
Can this be done by installing ntfs-3g driver and editing the fstab file?
Do you think my WL-520gU can handle this setup?

Thanks,

want to know how to do this too.
'cos when i copy file from hdd, it's slow(using ubuntu 9.04)

Jeony
13-12-2009, 23:39
What must press key to save and close? (vi / etc / fstab) ??

Sorry do not know very well English.

wengi
14-12-2009, 08:53
Chapter 4:


You enter the insert mode with i, you leave it with ESC.
...
After leaving the insert mode you quit and save by typing ':wq'.

-> ESC, ":wq"

wengi

Tedy_2g
14-12-2009, 23:44
Can I configure (and how) /tmp/harddisk/transmission/config/settings.json that transmission will download each torrent to separate folder.

Tedy

wengi
15-12-2009, 09:41
http://trac.transmissionbt.com/wiki/EditConfigFiles

rtfm.
I have no idea if it is possible.

wengi

Tedy_2g
15-12-2009, 15:42
I have browse this page before, but haven't found solution, so I have posted question here.
Before I have run old transmission, now I have installed new Transmission Web Interface. With old one this was done automatic.

Tedy_2g
15-12-2009, 20:15
My mistake. There is no problem with folders, I have download torrents that are pointed to one file like *.avi for example, when I download torrent that has multiple files in folders like DVD movie, they are put in seperate folders.

simistef
16-12-2009, 16:11
Nov 15 00:00:22 dropbear[851]: login attempt for nonexistent user from 61.138.179.55:57796
Nov 15 00:00:23 dropbear[851]: exit before auth: Disconnect received
Nov 15 00:00:27 dropbear[852]: login attempt for nonexistent user from 61.138.179.55:59213
Nov 15 00:00:28 dropbear[852]: exit before auth: error reading: Connection reset by peer
Nov 15 00:00:32 dropbear[853]: login attempt for nonexistent user from 61.138.179.55:60606
Nov 15 00:00:33 dropbear[853]: exit before auth: Disconnect received
Nov 15 00:00:37 dropbear[854]: login attempt for nonexistent user from 61.138.179.55:33366
Nov 15 00:00:38 dropbear[854]: exit before auth: Disconnect received

@wengi, i have hundreds and hundreds of messages like this. how can i stop this attacks ?

Jeony
28-12-2009, 21:39
Hi
Great tutorial! I m in section 17. (Optimize performance), and I want to delete modules has unnecessary.exemple: printer.write this command "rmmod printer" and after reboot is back printer.I can delete this module forever?:D
I m sorry for my english:p

wengi
29-12-2009, 08:19
Hi,

last sentence in this chapter:
After knowing the possible modules you can edit the post-boot and paste the unload commands.
So try something like
echo "rmmod xxxxxx" >> /usr/local/sbin/post-bootto make it permanent.

wengi

cristip
18-01-2010, 23:22
After a few weeks of trying I finally decided to post since I am not able to install transmission on my WL-500g.

I have a HDD attached via USB and partitioned like this:


Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 3008 3008 0 100% /
/dev/discs/disc0/part2 988244 93504 844540 10% /opt
/dev/discs/disc0/part3 479478544 144144 454978256 0% /tmp/mnt/disc0_3


I have installed transmission - 1.75-1. All the files seem to be ok:


[admin@router root]$ ls -al /opt/bin/transmission*
-rwxr-xr-x 1 admin root 619920 Sep 14 19:57 /opt/bin/transmission-daemon
-rwxr-xr-x 1 admin root 651164 Sep 14 19:57 /opt/bin/transmission-remote
-rwxr-xr-x 1 admin root 628180 Sep 14 19:57 /opt/bin/transmissioncli


My S90transmission-daemon looks like this:


[admin@router root]$ cat /opt/etc/init.d/S90transmission-daemon
#!/bin/sh
#
# Startup script for transmission

export PATH=$PATH:/opt/bin:/opt/sbin
HOME=/tmp

case $1 in
start)
# start transmission
echo "starting transmission" >> /tmp/syslog.log
nice /opt/bin/transmission-daemon /tmp/harddisk/transmission/config
;;

stop)
if [ -n "`pidof transmission-daemon`" ]; then
echo "stopping transmission"
kill -9 `pidof transmission-daemon`
fi
;;
restart|force-reload)
$0 stop
sleep 1
$0 start
;;

*)
echo "usage: $0 (start|stop|restart|force-reload)"
exit 1
esac


Rights on these files look like this:


[admin@router root]$ ls -al /opt/etc/init.d/
drwxr-xr-x 2 admin root 4096 Jan 18 10:00 .
drwxr-xr-x 11 admin root 4096 Jan 18 10:06 ..
-rwxr-xr-x 1 admin root 284 Jan 6 07:32 S10cron
-rwxr-xr-x 1 admin root 809 Sep 9 2007 S80lighttpd
-rwxr-xr-x 1 admin root 610 Jan 18 09:52 S90transmission-daemon
-rwxr-xr-x 1 admin root 522 Jun 6 2005 rc.unslung


But, when I run it, I get this:


[admin@router root]$ /opt/etc/init.d/S90transmission-daemon start
nice: transmission-daemon: No such file or directory


Even if I try to start directly the transmission-daemon I get the same error, that it does not exist. The file exists, but somehow I get this error and I can't get past this.:eek:

PLEASE HELP!:(

wengi
20-01-2010, 17:37
Hi,

is transmission working if you start it manually?

/opt/bin/transmission-daemon /tmp/harddisk/transmission/config
without nice!

wengi

cristip
21-01-2010, 21:12
Hi,

Still doesn't work:



[admin@router root]$ /opt/bin/transmission-daemon /tmp/harddisk/transmission/config
-sh: /opt/bin/transmission-daemon: not found

al37919
21-01-2010, 21:24
such message:

-sh: XXX: not found
means some library incompatibility. One or more of the libraries on which transmission depends is wrong. You might get a list of it's dependencies using ldd utility (which is a part of buildroot), or just reinstall uclibc-opt as a most likely source of the problem

cristip
21-01-2010, 21:39
I did not built transmission on the router. I do not have uclibc-opt installed.

cristip
21-01-2010, 21:45
[admin@router root]$ ipkg list_installed
bash - 3.2.17-1 - A bourne style shell
bzip2 - 1.0.4-1 - Very high-quality data compression program
cron - 4.1-6 - Standard vixie cron, with cron.d addition
e2fsprogs - 1.40.2-1 - Ext2 Filesystem Utilities
expat - 2.0.1-1 - XML Parser library
fontconfig - 2.3.2-5 - Font configuration library
freetype - 2.1.10-4 - Free truetype library
gconv-modules - 2.2.5-7 - Provides gconv modules missing from the firmware. These are used by glibc's iconv() implementation.
gdbm - 1.8.3-2 - GNU dbm is a set of database routines that use extensible hashing. It works similar to the standard UNIX dbm routines.
gnuplot - 4.2.0-5 - Command-line driven interactive data and function plotting utility
groff - 1.19.2-2 - front-end for the groff document formatting system
hdparm - 6.9-1 - Linux hard drive parameter utility
ipkg - 0.99.149-2 - lightweight package management system
less - 394-3 - Less file browser
libart - 2.3.17-2 - 2-d graphics library.
libcurl - 7.17.0-2 - Curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FI
libdb - 4.2.52-3 - Berkeley DB Libraries
libevent - 1.3d-1 - libevent to implement an event loop
libgd - 2.0.35-1 - An ANSI C library for the dynamic creation of images
libiconv - 1.11-2 - Converts between character encodings.
libjpeg - 6b-2 - collection of jpeg tools
libmemcache - 1.4.0.rc2-2 - The C API for memcached.
libpng - 1.2.21-1 - Portable Network Graphics Libraries
libuclibc++ - 0.1.12-4 - C++ standard library designed for use in embedded systems
libxml2 - 2.6.30-1 - Libxml2 is the XML C parser and toolkit developed for the Gnome project.
libxslt - 1.1.22-1 - An XML Stylesheet processor based on libxml2
lua - 5.1.2-1 - Lua is a powerful light-weight programming language designed for extending applications.
man - 1.5p-4 - unix manual page reader
man-pages - 2.33-3 - unix manual pages
mc - 4.1.35-3 -
memcached - 1.2.0-4 - memcached is a high-performance, distributed memory object caching system.
nano - 2.0.6-1 - A pico like editor
ncurses - 5.6-1 - NCurses libraries
openssl - 0.9.7m-3 - Openssl provides the ssl implementation in libraries libcrypto and libssl, and is needed by many other applications and librari
pcre - 7.4-1 - Perl-compatible regular expression library
php - 5.2.4-1 - The php scripting language
php-thttpd - 2.25b-5.2.4-4 - php-thttpd is thttpd webserver with php support
procps - 3.2.3-4 - PROCPS System Utilities
readline - 5.2-2 - The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are
rrdtool - 1.2.23-2 - Round-Robin Database tool. Database collator and plotter
screen - 4.0.3-2 - A screen manager that supports multiple logins on single terminal
sqlite - 3.4.1-1 - SQLite is a small C library that implements a self-contained, embeddable, zero-configuration SQL database engine.
tar - 1.16.1-1 - heavyweight version of the Tape ARchiver
termcap - 1.3.1-2 - Terminal emulation library
transmission - 1.75-1 -
unzip - 5.52-1 - A (de)compression library for the ZIP format
zlib - 1.2.3-2 - zlib is a library implementing the 'deflate' compression system.

al37919
21-01-2010, 22:49
well, I've no idea how the rest might work without uclibc-opt. May be you just try to install it?

cristip
24-01-2010, 20:12
how to install it ? ipkg does not find it.

al37919
24-01-2010, 21:02
Well, this line:

ipkg - 0.99.149-2 - lightweight package management system
allows me to suggest that you use wrong 'old' repository for the files. In correct setup it should be read as:

ipkg-opt ...
Please, post your /opt/etc/ipkg.conf file. Read section 6 of this thread. However, after updating of the ipkg.conf you have to reinstall all packages.

cristip
24-01-2010, 22:58
this is it:


[admin@router root]$ cat /opt/etc/ipkg.conf
src wl500g http://wl500g.dyndns.org/ipkg
src unslung http://ipkg.nslu2-linux.org/feeds/unslung/wl500g
dest root /

al37919
25-01-2010, 06:18
Yes, I'm right. The correct content of this file is:

src/gz optware http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable
dest /opt/ /
However, after changing it you have to reinstall all packages. It is default repository since 1.9.2.7-8. May be you have older version of the firmware?

cristip
25-01-2010, 21:56
Thanks al37919!
That was the main problem. I have started all over from the beginning and now it works!!! :D:D

madace
31-01-2010, 12:32
hi ! i\m complete newbee and im trying to follow steps of this tutorial
adn here is what i get at step 4

[WL-001Droot]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 3072 3072 0 100% /
tmpfs 15080 148 14932 1% /tmp
[admin@WL-001D60E4B744 root]$

how can i umount /tmp ?
here is what i get from ps

root]$ ps
PID USER VSZ STAT COMMAND
1 admin 1308 S /sbin/init
2 admin 0 SW [keventd]
3 admin 0 SWN [ksoftirqd_CPU0]
4 admin 0 SW [kswapd]
5 admin 0 SW [bdflush]
6 admin 0 SW [kupdated]
7 admin 0 SW [mtdblockd]
55 admin 1520 S telnetd
60 admin 1100 S httpd vlan1
61 admin 1524 S syslogd -m 0 -O /tmp/syslog.log -S -l 7 -b 2
64 admin 1520 S klogd
66 admin 1072 S nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
71 nobody 836 S dnsmasq
69 admin 0 SW [khubd]
90 admin 1532 S udhcpc -i vlan1 -p /var/run/udhcpc0.pid -s /tmp/udhcp
93 admin 1264 S pppd file /tmp/ppp/options.wan0
95 admin 892 S infosvr br0
96 admin 1308 S watchdog
114 admin 1048 S upnp -D -L br0 -W ppp0
115 admin 1096 S dropbear
119 admin 1528 S -sh
121 admin 1524 R ps

wbr madace

genjuro
01-02-2010, 21:36
Hi :)

First, THANK YOU!! GREAT Tutorial :)

I'm using a wl500gp v1, with oleg's 1.9.2.7-10, i follow the tutorial and everything is running great (i think so), i use Samba2 and transmission with no problems, my question is, when do the ls -al command i only get this:

[aesir@TSRT01 root]$ ls -al
total 0
drwx------ 1 aesir root 0 Jan 1 2000 .
drwxr-xr-x 1 aesir root 0 Jan 25 2008 ..

I read the forum and i find out that, i should get this instead:

[admin@WL-ASUSAP sbin]$ ls -al
drwxr-xr-x 1 admin root 0 Mar 23 19:24 .
drwxr-xr-x 1 admin root 0 Jan 1 2000 ..
-rwxr-xr-x 1 admin root 575 Mar 23 19:34 post-boot
-rwxr-xr-x 1 admin root 0 Mar 23 19:24 post-firewall
-rwxr-xr-x 1 admin root 0 Mar 23 19:24 post-mount
-rwxr-xr-x 1 admin root 0 Mar 23 19:24 pre-shutdown

is that correct? is something missing in my config?

Thank you all, in advance

wengi
02-02-2010, 09:13
Hi,

@madace:

/tmp does NOT need to be unmounted. Everything is fine and you can simply go on with the tut.
You found a difference between the older and newer firmwares. Thats all.
I updated the Howto.

@genjuro

The listing you receive depends on the location you are.
Try the command "pwd" to see your actual loacation in the file system.

As you can see in your posting you did the ls command in the root folder
aesir@TSRT01 rootwhich is the home of root.
The other ls is done in
admin@WL-ASUSAP sbinwhich is, i guess, /usr/local/sbin/

Try a "ls -ls /usr/local/sbin/" on your router :)

Btw: This is linux basics and has nothing to do with the router at all.

wengi

genjuro
02-02-2010, 14:57
Hi :)

Thank you wengi, you are right :o.... i was in the wrong directory, now my output is just like the other, and the files are in another color, that should mean that they are executable :), and everything is ok...

see ya...

cristian.ene
05-02-2010, 20:32
Dear all,

First of all.... i'm such a noob and a newbie, but, i kind of want this to work.
I am good at directions so,.. i will take good directions :D

I'm stuck at this step:

"mkdir /opt/etc
mkdir /opt/etc/init.d
vi /opt/etc/init.d/rc.unslung"

"Remark: If you get a "mkdir: Cannot create directory `/opt/etc': Read-only file system" your HDD (here the IPKG pertition) is NOT mounted."

I have this error, and i don't know what to do next! please help me!

wpte
05-02-2010, 22:35
Dear all,

First of all.... i'm such a noob and a newbie, but, i kind of want this to work.
I am good at directions so,.. i will take good directions :D

I'm stuck at this step:

"mkdir /opt/etc
mkdir /opt/etc/init.d
vi /opt/etc/init.d/rc.unslung"

"Remark: If you get a "mkdir: Cannot create directory `/opt/etc': Read-only file system" your HDD (here the IPKG pertition) is NOT mounted."

I have this error, and i don't know what to do next! please help me!

as it says, you don't have the partition mounted meaning the harddrive is not useable at that time!
check your fstab configuration;)

adek24
08-02-2010, 21:54
I install TRANSMISSION from tutorial but I have this error - page is not response..I use reboot but not..http://img99.imageshack.us/img99/4287/przechwytywanies.jpg

wengi
09-02-2010, 08:48
@adek24

check if transmission is running with ps.
If it is not running start manually. (for testing)

wengi

adek24
11-02-2010, 22:38
@adek24

check if transmission is running with ps.
If it is not running start manually. (for testing)

wengi

ok Its working when add:

/opt/bin/transmission-daemon -f -g /usr/local/etc/pmp/transmi
ssion/


but I have error:

403: Forbidden

Unauthorized IP Address.

Either disable the IP address whitelist or add your address to it.

If you're editing settings.json, see the 'rpc-whitelist' and 'rpc-whitelist-enabled' entries.

If you're still using ACLs, use a whitelist instead. See the transmission-daemon manpage for details.
so when I replace 127.0.0.1 to *.*.*.* or enabled set false it not work.
How know how its run ?
And how run automatic Transmission?

wengi
12-02-2010, 08:11
Hi,

check your /opt/etc/init.d/S90transmission-daemon.
This will normaly start transmission when all other services start.

Edit your conf to change the whitelist. Double check it!
What ip range do you use in the LAN?

wengi

adek24
12-02-2010, 19:49
Hi,

check your /opt/etc/init.d/S90transmission-daemon.
This will normaly start transmission when all other services start.

Edit your conf to change the whitelist. Double check it!
What ip range do you use in the LAN?

wengi

ok its works when I execute 2 line:

nice /opt/bin/transmission-daemon -g /tmp/harddisk/transmission/config
/opt/etc/init.d/S90transmission-daemon start
so how add it to autostart?
when add to vi /opt/etc/init.d/S90transmission-daemon but transmission not start and must manually add 2 line ..

wengi
13-02-2010, 14:27
All files in this directory starting with a "S" are started/stoped from rc.unslung on startup/shutdown.

If all other services are working i assume your S90trans... is not executable.
Double check the HowTo.

simistef
24-02-2010, 11:48
i'm need to upgrade my HDD attached to the router from 200 GB to 1TB. Does this mean that i will need to reinstall everything from scratch ? i am asking because all ipkg packages have been installed to the hdd, right ?

can anyone point to me how should i do this upgrade ?

wpte
24-02-2010, 12:25
i'm need to upgrade my HDD attached to the router from 200 GB to 1TB. Does this mean that i will need to reinstall everything from scratch ? i am asking because all ipkg packages have been installed to the hdd, right ?

can anyone point to me how should i do this upgrade ?

No you don't:)
Just format the new harddrive just as you want it, don't install ipkg on it, but mount it's partition to /opt

Next you can hook up your old drive and copy the old /opt partition to the new one, just like other files you want to keep.
after that you can do a reboot and it should be all fine:)

simistef
27-02-2010, 10:23
ok:) seems easy. i'll try that.

Now from some time Midnight Commander is not working properly anymore. The up, down, right, left arrows are writing ABCD letters and not browsing the folders. I even un-installed it and install it again and it has the same behavior. Does anyone know why is doing that ?

al37919
27-02-2010, 10:47
use another terminal type or teach mc your current key bindings: options->learn keys

chinezbrun
09-03-2010, 21:11
Thanks so much, everthing works super on ASUS WL500W.

chinezbrun
09-03-2010, 22:16
I used original SAMBA comming with firmness.I see shared only partition 3.
Question:.how can i share in SAMBA also partition 2?
Thanks.

vmoakley
14-03-2010, 04:25
Hello,
I am running the latest firm ware from google. I am trying to use the script from newbiefan. The autoinstall file will not start. It has the correct permissions 755. When I excuite the command ./autoinstall. The return is not found. I can edit the script and I can see it with ls. Any ideas? Thanks you for your tutorial. If I can get it working it will be great.
Thanks

vmoakley
14-03-2010, 20:53
I am now trying to follow the wengi long install procedure. WL500W. Latest goole firmware. Got to step 5. The wget command fails for install of ipkg.

http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ipkg-opt_0.99.163

Thanks for your help.

Copter
14-03-2010, 21:17
I am now trying to follow the wengi long install procedure. WL500W. Latest goole firmware. Got to step 5. The wget command fails for install of ipkg.

http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ipkg-opt_0.99.163

Thanks for your help.

its http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ipkg-opt_0.99.163-10_mipsel.ipk

theMIROn
14-03-2010, 21:25
or http://code.google.com/p/wl500g/source/browse/ipkg/optware-d/ipkg_0.99.163-2_mipsel.ipk
for use with 1.9.2.7-d firmware exactly

Copter
14-03-2010, 21:52
or http://code.google.com/p/wl500g/source/browse/ipkg/optware-d/ipkg_0.99.163-2_mipsel.ipk
for use with 1.9.2.7-d firmware exactly

is there a remarkable difference?

i am using ipkg-opt_0.99.163-10_mipsel.ipk on r1222 without probs.

vmoakley
15-03-2010, 05:01
Thanks so much for your update!!!!!!!!!!!!!!

vmoakley
15-03-2010, 05:33
The second link in step 6 does not work either. Can give me the new one for this?
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/uclibc-opt_0.9.28.
Thanks!!!!!!!!!!!!!!!

vmoakley
15-03-2010, 06:43
Hi,
get the file. But
http://code.google.com/p/wl500g/source/browse/ipkg/optware-d/ipset_3.2_mipsel.ipk

But when I try to install I get
[admin@WL500W ipkg]$ ipkg.sh install ipset_3.2_mipsel.ipk
ERROR: File not found: /opt/lib/ipkg/lists/wl500g-d
You probably want to run `ipkg update'
ERROR: File not found: /opt/lib/ipkg/lists/optware
You probably want to run `ipkg update'
tar: invalid gzip magic
tar: short read
ipkg_install_file: ERROR unpacking control.tar.gz from ipset_3.2_mipsel.ipk
[admin@WL500W ipkg]$ ls
ipset ipset_3.2_mipsel.ipk
[admin@WL500W ipkg]$ ipkg.sh install ipset_3.2_mipsel.ipk
ERROR: File not found: /opt/lib/ipkg/lists/wl500g-d
You probably want to run `ipkg update'
ERROR: File not found: /opt/lib/ipkg/lists/optware
You probably want to run `ipkg update'
tar: invalid gzip magic
tar: short read
ipkg_install_file: ERROR unpacking control.tar.gz from ipset_3.2_mipsel.ipk

Any help would be great thanks

simistef
15-03-2010, 12:04
transmission suddenly seems to write a lot of log messages. how can i stop those ?

Copter
15-03-2010, 13:16
@simistef: Add or edit
"message-level": 1,to transmissions config file.

probably /tmp/harddisk/transmission/config/settings.json

Here is a description of all settings: http://trac.transmissionbt.com/wiki/EditConfigFiles

vmoakley
16-03-2010, 05:04
Hi,
Thanks in advanced for your help. I have two questions.

1. How do you get VSFTPD to accept secure ftp connections?
2. How do you redirect the ftp directories to another haddrrive?

al37919
16-03-2010, 07:09
1. How do you get VSFTPD to accept secure ftp connections?

if you mean SFTP, then it is not an ftp, but ssh protocol. If you mean encrypting of ftp traffic, then read vsftpd documentation related to enabling of SSL transfers.

vmoakley
17-03-2010, 03:54
Are there directtions for doing it for OLEG software? I see docs for editing the config file. I thought the config file for vsftpd was recreated everytime the GUI changes? That is why they are in the temp folders. Thanks for answering my questions.

al37919
17-03-2010, 06:28
you may create your own config and restart it

killall vsftpd ; vsftpd /opt/etc/vsftpd.conf
if in your previous post you meant a possibility to perform this task using web-ui then answer would be negative

adrianio
18-03-2010, 15:00
Hi to all!

I have wl500gpv2-1.9.2.7-d-r1222 firmware.
I want to put a LAN port in the same segment with WAN port (I want router and a pc to get their IPs from ISP's dhcp).

Does anybody know how to do this?

wengi
18-03-2010, 16:50
Hi,

very simple: use a switch/hub on the wan side.
Are you sure you will receive multiple IPs from your provider? Not using a ppp connection?

wengi

PS: I think there is some possibility to modify the internal switch, but i am not sure.

adrianio
18-03-2010, 17:01
Hi,

very simple: use a switch/hub on the wan side.
Are you sure you will receive multiple IPs from your provider? Not using a ppp connection?

wengi

PS: I think there is some possibility to modify the internal switch, but i am not sure.

Yes Wengi! I'm very sure that I have two IPs from my provider. One IP for me and one IP for my brother. I was thinking that maybe, I find a solution to not buy a hub/switch :))). I knew that.

I installed DD-WRT for my asuswl500gpv2 and it do that in a beautiful graphical way from the web interface (checking ports in vlan page). But, DD-WRT do not bridges with my secondary asuswl530g. And I like very much what can I do with Oleg firmware.

So, I will buy a switch, if I would not find a software solution.

dare023
18-03-2010, 19:59
Hi ,thank you for this great work!
I installed oleg's on WL 500 gp V2 ,and had no errors,torrents are working ...
Followed howto from first page until samba configuration is finished,but cannot access disk from windows or from linux?
On windows ,whe i open "network places" there are folders from disk but message says that there is no acces rights
On linux have no clue what to do to connect to disk :o (opensuse 11.2).When i click on network>my_router dialog box ishows with "workgroup" llready in, an waits for passw.(whitch i dont know) ,next is message "failed to retrieve shares..." (samba web interface works ok)
Would be simplest way to allow ftp in web interface?
Can you help me to get this samba working?
Thanks in advance!

vmoakley
19-03-2010, 20:21
Hi,
This firmware is great. It does so may things and it does it great.I installed transmission. GUI and web start. But when I put a torrent into the web or gui it just stops. I have re installed twice. And still no joy. If anyone has any ideas I would greatly appreciate it. Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

vmoakley
19-03-2010, 20:23
Just the adding another piece. The web browser starts then says on file or directory when it stops.

wengi
21-03-2010, 12:03
@vmoakley

i am sorry but i have no idea.
Are there any hints in the syslog?

wengi

wengi
21-03-2010, 12:07
I begin to thank u for all good work u done here. I mount on my WL500gP a USB 500GB HDD(WD) with all settings requaired. It's work very good, inclusive transmission, samba, i even have a printer connected who doing a great job..etc. Now i buy a 1 TB HDD(WD Green, 64MB) and i use Paragon to format it with one single ext3 partition(it takes about 11 hour to do this..). First question is: what settings can i do for second HDD(1 TB) to see him on samba? and last question, if i use a USB-HUB i manage to connect all 3 devices (first HDD 500GB, second HDD 1 TB and the printer). Thank's again for great job you do here, without your post i can't make anything to work.

swordfish77
Hi swordfish77,

No support via PM, so this will be discussed here.
Using a second HDD is simple. You will have to add it to your fstab so it will be mounted on reboot.
Second you will have to add it to the samba config. Try the original via Webinterface.
Otherwise you will have to use the ipkg version.
Give it a try.

wengi

swordfish77
21-03-2010, 14:37
I added to fstab but who to add on samba? I use putty, because in web interface i just enable or disable samba..

Other problem is , in df i see half of my second HDD and with fdisk -l i see entire second HDD.( I mention that i format second HDD with Paragon DiskMngr, in Win7). I try to format with my Asus (with tutorials suport)but everything was wrong(in what i doing of course). I disable samba and ftp via web interface, i try to unmount /dev/discs/disc0/part2(first i try with part 1), i manage to fdisk finally,i del. partition,create new,primary,nr.of part,enter,enter, then w to save, than reboot.
I attach. picture to explain better, so what is wrong? (Probable everything, but be mercifull with me..pls)

swordfish77
21-03-2010, 18:43
..after the fdisk i try to format hdd and the rezult is in the picture. I even try to unmount with following cmd: unmount /dev/discs/disc0/part1 (like in tutorial..).Response was -sh unmount : not found...What should be the problem. I'm very angry because last year i install first HDD without problem, with all ipkg , transmission works impecable and that piece of...junk, i cannot simply formated! Jizas:mad:

wengi
22-03-2010, 10:55
Hi swordfish,

first of all: please do not post images but copy the text from putty and post it in an CODE Tag.

Before acting on samba you should make shure that the HDD is mounted properly. This is not the case.
So let us bring some light to this:

1)
Your "old" HDD should have a swap partition. This is not the case. All three partitions are normal ones. Maybe your swap is in a normal file but this does not correspond to your fstab. Change part1 to a swap partition (type 82, see HowTo). You can check swap by typing "free".

2)
One disc is /dev/scsi/host0 and the other is /dev/scsi/host1. This corresponds to /dev/discs/disc0 or /dev/discs/disc1.
Have a look at your fstab: you allways use disc0. You even use part1 twice and map two different partitions to the same directory. This can not work!

Please try the following as last line in your fstab:

/dev/discs/disc1/part1 /tmp/mnt/disc1_1 ext3 rw,noatime 1 1
The directory /tmp/mnt/disc1_1 should allready exist.

This should work after a reboot.
If disc0 and disc1 are interchanged try to swap the USB Ports.

wengi

dare023
24-03-2010, 19:59
Is there a way to set up a web server on oleg's firmware?(and run joomla - it requires http/php/mysql )

wengi
25-03-2010, 09:39
Its all here.
You only have to search!

http://www.wl500g.info/showthread.php?t=20306

wengi

dare023
25-03-2010, 14:55
Its all here.
You only have to search!

http://www.wl500g.info/showthread.php?t=20306

wengi
Thank you!
I searched but did not find it.

samih
27-03-2010, 14:06
Hi,

Thank you wengi for an awesome how-to. I've used this multiple times with success. :)

I just installed the WL500gp-1.9.2.7-d-r1222.trx into WL500Gp successfully using this how-to. I installed this over DD-WRT using these instructions: http://vip.asus.com/forum/view.aspx?board_id=11&model=WL-500gP+V2&id=20090126040446909&page=1&SLanguage=en-us. The renewed Oleg's firmware seems to be much more better than DD-WRT with wl500gp if you want proper usb hdd support.

note to how-to:
- I missed the "create startup scripts" section because it was in the middle of SSH daemon related stuff with "only firmware older than 1.9.2.7-d-rxxxx" note. I think this startup script section should be more independent and not in the middle of sections to be skipped with latest renewed firmware. Now it's rather easy to miss.
- I have enabled the NFS support from web interface. Is there any downsides with this?

I would also like to add to conversation about hardware problems, that also my wl500gp's power supply was faulty. The router seemed to be bricked with no reason. The output voltage of PSU seemed fine when there was no load (PSU idle, no router attached). After attaching the router the output voltage dropped and the wl500Gp wouldn't even start up. I replaced the faulty PSU with a generic PSU which had enough output power (http://www.yeint.fi/index.php?main=64&productCat=1409&productID=15037). Now it has been in use for an year or so with no problems. So: check your PSU if you experience odd problems or your router seems to be bricked without reason! The original power supply may degrade in use.

wengi
29-03-2010, 09:40
Hi samih,

thanks for the hints. I moved up the startup scripts.
Now it is the first thing to do and will hopefully not be missed.

NFS should not have any negative effect. All fine.

The PSU thing is very common. There are many posts reporting such probs.

wengi

unemployed
15-04-2010, 03:45
simple question. i think. do i have to reformat my drive if it is already formatted in ext3? can i not just resize my partition and add the ipkg and swap partitions? ive already got almost 1tb on it so i would rather not have to reformat.

wengi
15-04-2010, 12:24
Hi,

yes, you can!!! :D

OK, serious: It does not matter how you create your partitions.
But most important: It has to be partitioned EXACTLY as in the howto.
Order and type of the partitions are really important!

Size does NOT matter (:D:D:D)

wengi

MacWahle
18-04-2010, 11:04
Is it possible to create VPN connection from wan to router? this would solve many problems :)

Did you get a answer to this question? Was gonna start a new thread but did some searching first ( maybe not good enough tho :P )

For anyone else who reads this I am very interested to set-up VPN to my server so that I can be anonymous on the net without paying for all these VPN services out there...

wpte
18-04-2010, 12:49
Did you get a answer to this question? Was gonna start a new thread but did some searching first ( maybe not good enough tho :P )

For anyone else who reads this I am very interested to set-up VPN to my server so that I can be anonymous on the net without paying for all these VPN services out there...

Currently there is no proper guide for openvpn, but maybe it's time to write one:p

this one comes pretty close though: http://wlhdd.co.uk/wiki/OpenVPN :)

MacWahle
18-04-2010, 13:04
Currently there is no proper guide for openvpn, but maybe it's time to write one:p

this one comes pretty close though: http://wlhdd.co.uk/wiki/OpenVPN :)

Nice! Thanks for the link! Gonna try it out later on, but looks easy enough to set-up following the guide on the wiki :)

Bohlendach
28-04-2010, 13:30
3. SSH-deamon
TIP: You can copy & paste all commands within telnet and putty. For Windows use ctrl-c and ctrl-v, for putty mark the text and right click.

The name of the ssh daemon is dropbear. It can be activated with the Web Interface (System Setup->Services) if you use the "enthusiast firmware" (1.9.2.7-d-rxxxx) (http://code.google.com/p/wl500g/). Using the new firmware you only have to generate the keys.

I guess you still have to create the startup scripts


mkdir -p /usr/local/sbin/
touch /usr/local/sbin/pre-boot
touch /usr/local/sbin/post-boot
touch /usr/local/sbin/post-firewall
touch /usr/local/sbin/post-mount
touch /usr/local/sbin/pre-mount
touch /usr/local/sbin/pre-shutdown
chmod +x /usr/local/sbin/*

Or are they also included in the "enthusiast firmware"?

wengi
29-04-2010, 10:15
You are right.
Using the new firmware you only have to generate the keys and startup scripts.Better now.

wengi

postbusjj
19-05-2010, 15:33
Hi tried to do some ipkg installs but it fails due to server returning file not found (404).
Then tried to download manually some pkg's from http://ipkg.nslu2-linux.org, but it gives errors. Can browse to the stable feed but, trying to download gives an 404?
Anyone experiencing the same?

Update: found nslu2-linux mirror http://nslu2-linux.dyoung-mirror.net somewhere in Russian discussion. ipkg.nslu2-linux.org oleg stable is broken... or temporarily unavailable. Have no clue. So to work around update ipkg.conf with the mirror and ipkg functionality works again.
Not an idea to have a general thread to report such issues? I had no clue where to put this... and with a bit of luck I found something in the Russian section.
Ah well. Cheers.

chuckwhite
23-05-2010, 04:36
deleted because I figured the answer

postbusjj
31-05-2010, 17:14
In howto:


mke2fs -j /dev/discs/disc0/part2
mke2fs -j /dev/discs/disc0/part3

Suggestion:


mke2fs -j -m 0 /dev/discs/disc0/part2
mke2fs -j -m 0 /dev/discs/disc0/part3

Maximizing capacity by overruling the standard 5% reserved blocks.
Can save a lot if you have a big partition.

tune2fs can of course be used afterwards for all except /opt.
Fyi e2fsprogs 1.41.9-1 seems to look for a /etc/mtab and is not looking to /proc/mounts (shouldn't it?)
So had to cat /proc/mounts to /dev/mtab to convince tune2fs it is unmounted.


[admin@WL500W root]$ df /tmp/scratch
Filesystem Size Used Avail Use% Mounted on
/dev/discs/disc1/part3
54G 435M 51G 1% /tmp/mnt/disc1_3
[admin@WL500W root]$ umount /tmp/scratch
[admin@WL500W root]$ tune2fs -m 0 /dev/discs/disc1/part3
tune2fs 1.41.9 (22-Aug-2009)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing
mtab file while determining whether /dev/discs/disc1/part3 is mounted.
[admin@WL500W root]$ cat /proc/mounts > /etc/mtab
[admin@WL500W root]$ tune2fs -m 0 /dev/discs/disc1/part3
tune2fs 1.41.9 (22-Aug-2009)
Setting reserved blocks percentage to 0% (0 blocks)
[admin@WL500W root]$ mount /tmp/scratch
[admin@WL500W root]$ df /tmp/scratch
Filesystem Size Used Avail Use% Mounted on
/dev/discs/disc1/part3
54G 435M 54G 1% /tmp/mnt/disc1_3

wengi
01-06-2010, 10:06
Hi postbusjj,

thanks for your suggestion.
I am not an expert to file systems.
Is there any negative effect on using the reserved blocks?

-m reserved-blocks-percentage
Specify the percentage of the filesystem blocks reserved for the super-user. This avoids fragmentation, and allows root-owned daemons, such as syslogd(8), to continue to function correctly after non-privileged processes are prevented from writing to the filesystem. The default percentage is 5%.
I think we want some reserved blocks for system (/opt) partitions, but not for the data partition.

As a result of this i would use mke2fs -j -m 0 /dev/discs/disc0/part3 for the data partition.

Am i thinking right?
wengi

postbusjj
01-06-2010, 15:34
Am i thinking right?

Yes, you do. I thought about that too.
5% of /opt is only 49.8M. That's no loss.. and indeed it is preventing a crash by mistakenly filling up /opt (can happen, nobody is perfect... been there)
50GB for a 1TB drive is of course a drama and it is not needed for data.

wengi
01-06-2010, 16:16
Good!

I updated the HowTo.

To all who want some more space free:


[admin@blechbuechse root]$ ipkg install e2fslibs e2fsprogs
[admin@blechbuechse root]$ df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 3.0M 3.0M 0 100% /
/dev/root 3.0M 3.0M 0 100% /
/dev/discs/disc0/part2 962M 485M 428M 54% /opt
/dev/discs/disc0/part3 72G 55G 14G 81% /tmp/mnt/disc0_3
[admin@blechbuechse root]$ umount /tmp/mnt/disc0_3/ # or /tmp/harddisk/
[admin@blechbuechse root]$ cat /proc/mounts > /etc/mtab
[admin@blechbuechse root]$ tune2fs -m 0 /dev/discs/disc0/part3
tune2fs 1.41.9 (22-Aug-2009)
Setting reserved blocks percentage to 0% (0 blocks)
[admin@blechbuechse root]$ mount /tmp/mnt/disc0_3/ # or /tmp/harddisk/
[admin@blechbuechse root]$ df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 3.0M 3.0M 0 100% /
/dev/root 3.0M 3.0M 0 100% /
/dev/discs/disc0/part2 962M 485M 428M 54% /opt
/dev/discs/disc0/part3 72G 55G 18G 77% /tmp/mnt/disc0_3

As you see:
BEFORE: 14GB free
AFTER: 18GB free

Thanks to postbusjj for this great tip :D:cool:

wengi

PS: Please pay attention to disc0_3 or disc1_3.

rod178
03-06-2010, 10:35
Please advise the latest version of Oleg's Firmware that supports Samba under Windows 7. Also -

- are there any advantages installing the latest version of ipkg Samba.
- advantages flashing post -10 version of Oleg. Currently I'm running -10 on a WL500W

thanks

mataanjin
27-06-2010, 05:42
can i downgrade transmission?
using 2.00-1 and its slow.

how do i downgrade it to 1.93?

Bohlendach
12-07-2010, 08:58
17. Optimize performance

A) Start samba with xinetd

If xinetd is not installed until now:

ipkg install xinetdYou have to change /opt/etc/init.d/S10xinetd to work with the start|stop feature of rc.unslung.
Do this as it is described in chapter 10b). Only the part with the content of S10xinetd!

I guess this chapter is 12b now. :)

wengi
12-07-2010, 14:12
Hi,

thanks for the hint.
Corrected it ;)

wengi

Bohlendach
13-07-2010, 22:37
Good!

I updated the HowTo.

To all who want some more space free:

[admin@blechbuechse root]$ df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 3.0M 3.0M 0 100% /
/dev/root 3.0M 3.0M 0 100% /
/dev/discs/disc0/part2 962M 485M 428M 54% /opt
/dev/discs/disc0/part3 72G 55G 14G 81% /tmp/mnt/disc0_3
[admin@blechbuechse root]$ umount /tmp/mnt/disc0_3/ # or /tmp/harddisk/
[admin@blechbuechse root]$ cat /proc/mounts > /etc/mtab
[admin@blechbuechse root]$ tune2fs -m 0 /dev/discs/disc0/part3

I get


-sh: tune2fs: not found

How can I install tune2fs?

wengi
18-07-2010, 23:36
Sorry for being late.

ipkg install e2fslibs
ipkg install e2fsprogs
wengi

Bohlendach
01-08-2010, 22:10
If the IPKG samba is installed the smb.conf is located in /opt/etc/samba

wengi
02-08-2010, 12:29
Hi,

Thats the reason why i state:
This chapter is using the original samba of the firmware. If you installed the IPKG samba you will have to change the path /usr/sbin/ to /opt/...

wengi

Bohlendach
03-08-2010, 12:59
Hi,

Thats the reason why i state:
This chapter is using the original samba of the firmware. If you installed the IPKG samba you will have to change the path /usr/sbin/ to /opt/...

wengi

I must have read it too literally or maybe I am an ignorant. I thought it was only the path /usr/sbin that should be changed to /opt/.

I did not get that /etc/ also had to be changed to /opt/etc/samba.

By the way its an exellent guide! :)

jakesully
26-08-2010, 04:58
Hi, I'm following your steps and on step 9, i cant seem to make cron appear on the task list... what should i check on slung and post boot and how do i do it? Thanks a lot!

wood88
26-08-2010, 11:42
Hey guys,

Just been reading through this quickly and it looks like a great router for a seed box. Just a quick question would i be able to use this as a Wireless Access Point for my TV to view youtube etc, as well as it being connected to a HDD downloading torrents?

Cheers

wengi
26-08-2010, 14:07
@jakesully
is /opt/etc/init.d/S10cron executable?
Post the result of "ls -la /opt/etc/init.d/".

@wood88
HDD and downloading torrents is no problem (but these routers are not the fastest ones...)

Wireless AP is a native function for the routers.
If your TV has WLAN and can show youtube videos you are fine with an asus router.
Have a look at the different models for hardware specs.

wengi

wood88
26-08-2010, 14:34
Thanks wengi for the quick response.
Any particular model you would suggest that can do the Wireless Access Point & downloading torrents to a usb hdd?
Also i remember seeing a chart saying which modems were compatible with olegs firmware and all there features but i cant seem to find it again, any chance you know where it is?

Cheers

wengi
26-08-2010, 14:58
Have a look at
http://code.google.com/p/wl500g/downloads/list
http://code.google.com/p/wl500g/wiki/Devices

The RT-N16 is the newest hardware, but firmware ist still ALPHA.

But i am not the hardware expert so i can not tell you which router to buy.
My WL-HDD is damn old and slow and i never looked for a newer model.

wengi

wpte
26-08-2010, 22:59
Have a look at
http://code.google.com/p/wl500g/downloads/list
http://code.google.com/p/wl500g/wiki/Devices

The RT-N16 is the newest hardware, but firmware ist still ALPHA.

But i am not the hardware expert so i can not tell you which router to buy.
My WL-HDD is damn old and slow and i never looked for a newer model.

wengi

RT-N16 runs just as smooth as my WL-500W right now, but yes, it's still alpha;)

If you want to download big torrents (25GB or something) the RT-N16 is recommended, the WL-500W has way too much overhead with the low memory for that;)

jakesully
27-08-2010, 16:28
Hi wengi, thank you for your response. here's the result.


[admin@WL-E0CB4E44260F root]$ ls -la /opt/etc/init.d/
total 16
drwxr-xr-x 2 admin root 4096 Aug 27 23:01 .
drwxr-xr-x 5 admin root 4096 Aug 27 23:01 ..
-rwxr-xr-x 1 admin root 217 Aug 27 23:05 S10cron
-rwxr-xr-x 1 admin root 641 Aug 26 00:24 rc.unslung

wood88
28-08-2010, 08:09
RT-N16 runs just as smooth as my WL-500W right now, but yes, it's still alpha;)

If you want to download big torrents (25GB or something) the RT-N16 is recommended, the WL-500W has way too much overhead with the low memory for that;)

Hey wpte,

This sounds like the one i need.
Just a quick question if u dont mind.

Just so i don't waste my money on this as im looking for this particular feature.

I know wengi said the WL-500 could be a wireless access point and download torrents with a connected USB HDD at the same time and obviously being connected only via wireless to the computer, so i dont need to keep my computer on all day/night downloading stuff. Will the RT-N16 be able to do the same thing? (but obviously at faster due to the bigger processor).

Thanks

wpte
28-08-2010, 12:57
Hey wpte,

This sounds like the one i need.
Just a quick question if u dont mind.

Just so i don't waste my money on this as im looking for this particular feature.

I know wengi said the WL-500 could be a wireless access point and download torrents with a connected USB HDD at the same time and obviously being connected only via wireless to the computer, so i dont need to keep my computer on all day/night downloading stuff. Will the RT-N16 be able to do the same thing? (but obviously at faster due to the bigger processor).

Thanks


Yes, that's possible as well.
If you choose oleg firmware, all the models with usb can do the same thing:)
Only the webcam feature doesnt work yet on the RT-N models

wengi
29-08-2010, 11:03
@jakescully

What happens if you do a "/opt/etc/init.d/S10cron start"?
Error? cron starting?
If cron is started:
Stop it again and try the same with "/opt/etc/init.d/rc.unslung start"

If not:
post result of "cat /opt/etc/init.d/S10cron".
This should show the content of S10cron.

wengi

jakesully
30-08-2010, 15:38
@jakescully

What happens if you do a "/opt/etc/init.d/S10cron start"?
Error? cron starting?
If cron is started:
Stop it again and try the same with "/opt/etc/init.d/rc.unslung start"

If not:
post result of "cat /opt/etc/init.d/S10cron".
This should show the content of S10cron.

wengi

@wengi,

Thank you very much. I tried doing the steps all over again and it worked this time, now transmission is working. I stopped at step logrotate.

Now my problem is that in a day, the router hangs once or twice a day. Do you think this will be resolved by an additional power source for the HDD?

Here's my setup. Asus wl-520gu, and external HDD - 2.5" IDE 60Gb.

wengi
30-08-2010, 15:52
May be... you will have to test it.
The PSUs are not the best.

wengi

wood88
01-09-2010, 13:05
Hey Guys,

Do you know if the Olegs firmware can be put on to run on a RT-N13U?
For the same applications as before?

As i can get one much cheaper than the N16, $50AUD compared to $150AUD

Cheers

Also does transmission or Rtorrent support Torrent Scheduling?

hkm
20-10-2010, 11:54
Thank you wengi for an awesome how-to.

RDF
01-11-2010, 22:10
18. Firmwareupdate
If oleg releases a new firmware you should update:

1) In webinterface 'System Setup' -> 'Setting Management' click "HERE", to save your settings.
2) In webinterface 'System Setup' -> 'Flashfs Management' click "HERE", to seve the flash file system.
3) Download and extract the new firmware. You need the .trx file.
Important: Wait for the reboot after every following step.
4) In webinterface 'System Setup' -> 'Firmware Upgrade' select the .trx file and click 'Upload'.
5) In webinterface 'System Setup' -> 'Setting Management' select your saved settings and click 'Upload'.
6) In webinterface 'System Setup' -> 'Flashfs Management' select your saved flashfs and click 'Upload'.

The update is finished and all services should be accessible.
There will be no data lost.

Hi,

Just updated my firmware from r740 to r2174.

Are the steps 5 and 6 in the quoted part of the guide up to date? After uploading the new firmware, all my old settings are already there and the old flash filesystem is there too.
Was my firmware update successful or not? In the webgui I can see that I'm running r2174, but why are the old settings and the old flash filesystem still there???

radim.benek
11-11-2010, 23:47
Hi, my router works perfectly. I'm now struggeling with the second USB hardisk. I created a parition on it with fdisk. Then I created ext3 file system on it.

mke2fs -j -m 0 /dev/discs/disc1/part1
The hardisk is accessible fine at tmp/mnt/disc1_1/. I would like to have the link to the hardisk as /tmp/harddisk2 so I edited /etc/fstab in following way:

#device Mountpoint FStype Options Dump Pass#
/dev/discs/disc0/part1 none swap sw 0 0
/dev/discs/disc0/part2 /opt ext3 rw,noatime 1 1
/dev/discs/disc0/part3 /tmp/harddisk ext3 rw,noatime 1 1
/dev/discs/disc1/part1 /tmp/harddisk2 ext3 rw,noatime 1 1


But the harddisk2 symlink is not created after reboot. If I try "mount -a" the system says that the directory "/tmp/harddisk2" does not exists. How the symlink harddisk2 would be created? What is also strange to me, that when IU delete the "/tmp/harddisk" line from fstab, the symlink for /tmp/harddisk is created anyway.

wpte
12-11-2010, 19:21
But the harddisk2 symlink is not created after reboot. If I try "mount -a" the system says that the directory "/tmp/harddisk2" does not exists. How the symlink harddisk2 would be created? What is also strange to me, that when IU delete the "/tmp/harddisk" line from fstab, the symlink for /tmp/harddisk is created anyway.

try to create the directory before you mount with mkdir.

Also, sometimes you get warnings while the system actually mounts the harddrive correctly.

Always check with df if something is mounted:)

wengi
13-11-2010, 11:51
Hi,

Just updated my firmware from r740 to r2174.

Are the steps 5 and 6 in the quoted part of the guide up to date? After uploading the new firmware, all my old settings are already there and the old flash filesystem is there too.
Was my firmware update successful or not? In the webgui I can see that I'm running r2174, but why are the old settings and the old flash filesystem still there???
Hi,

sorry for being late.
It is ok not to execute steps 5 and 6.
You are fine if the settings are kept.

wengi

tmsulica
29-11-2010, 09:46
Hello, i am just a happy user who want's to thank you. What for ? For this:

1. From the time i purchased my WL500GpV2 it worked poorely, was crashing often, i had a non working torrent client etc. About a year ago i stumbled onOleg's software an your tutorial. Installed just fine with minor errors because my Ctrl+v problems in putty, but after i discovered that i am the source of that mistakes, worked fine!
2. It was the easiest way to install and configure oleg's firmware, an for almost a year NEVER HAD ANY PROBLEM. Always working 100%.
3. Even when i unplug my HDD the router works on internal files and acts as a router , of course without transmission an ftp support. That's fine cuz now i use the HDD only when i want to bring torrent files or share my web page because i didn't succeed to make it spin down.

Is one thing i think you can put on your tutorial (maybe it is in the replies but i do not see it): The manual start of the wireless (via EZ button ) script , i think it is verry useful because it increases the security (i use the wireless only when i want) and makes you feel that you have the full controll.
AND How to insert a module for who needs it, from modules-1.9.2.7-10.gz file .

Overall your tutorial is great and I am an happy user wich uses oleg's tutorial over an year now ant that is because of your tutorial !


BTW: For ones that do not know: Command for SHUT DOWN (useful think) is: HALT


THANKS A LOT !

mihaidenis
18-12-2010, 19:56
I just update my firmware to 1.9.2.7-d-r2381 on a wl500gpv2.
Then reinstall all from scratch (base on your tutorial=except samba)on a usb stick 16 Gb.
Everything run ok.
Just one thing.
Transmission is not starting automatically upon a reboot.
If i paste on putty:

chmod 755 /opt/etc/init.d/S90transmission-daemon
/opt/etc/init.d/S90transmission-daemon start

then is starting fine.
I double check transmission(in fact all start-up scripts) according to your tutorial and all are fine.
Any idea?
Thanks for your great tutorial Wengi.

enemydr
29-12-2010, 00:37
hello!
I cannot manage to find out where i'm wrong in mounting the partitions.
I have a 4 Gb HD with 3 partitions (part 1 - swap, part 2 - ipkg, part 3 -data).
The problem is that part 2 is not automatically mounting in /opt.

here is the result after a reboot:


[root@Asus-LAN root]$ mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
tmpfs on /tmp type tmpfs (rw,noatime)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part2 on /tmp/mnt/disc0_2 type ext3 (rw,noatime)
/dev/discs/disc0/part3 on /tmp/mnt/disc0_3 type ext3 (rw,noatime)


/etc/fstab is empty after reboot


when I try to save pre-mount and post-mount I get "no such file or directory" but I think this is another problem.

I've done everything like in tutorial.

Thankyou for your answer in advance.

jmchain
29-12-2010, 08:44
Hello wengi,

Thanks so much for this tutorial, it's helped me a lot and you're a saint for keeping the thread going and the answers coming.

I recently ran into an issue with an updated cron that I wanted to share my solution to, and I found out about an ipkg that's very helpful for torrents that people may be interested in.

First for cron; I did an ipkg update and upgrade, and cron got updated and then stopped working.

I think that the reason is that it started looking for a cron.allow or cron.deny file, and wasn't letting my admin user run the cron. To overcome this I created an empty file named cron.deny in the /opt/var/cron directory. Since the file is empty, everyone can use cron.
Then I used the crontab function to edit the cron with

crontab -e
Now cron is working again.

The second thing that might help people out or they may just be interested in is castget. it's an ipkg that reads a few rss feeds and drops torrent files on your filesystem. You can use transmissions' watch directory setting to then automatically add these files to transmission for worry free automatic torrentting.

Here's a link about it being installed on a different router

http://forum.qnap.com/viewtopic.php?f=16&t=27554

The place for the config files is hardcoded into the program, but rather than copy the files around, I used a sym link to put the files where I wanted.

So after install I editted /usr/local/sbin/post-mount:


ln -s /opt/defaults/transmission/config/castget/.castgetrc /usr/local/root/.castgetrc
ln -s /opt/defaults/transmission/config/castget/.castget /usr/local/root/.castget

and then did a

flashfs save && flashfs commit && flashfs enable && reboot
to save it.

Now I can just edit the file at /opt/defaults/transmission/config/castget/.castget in order to change my castget feed settings instead of adding the copying mechanism suggested in the link's instructions.

You also have to add the watch directory to the transmission config by adding this to the end of the config file:

"watch-dir": "/opt/defaults/transmission/config/watch",
"watch-dir-enabled": true


then when setting up your .castget file for rss feeds, set the spool variable to /opt/defaults/transmission/config/watch

That's about it from me, read that other link for more details, and further instructions on castget

Thanks again for all your help to everyone.
jmchain

enemydr
29-12-2010, 13:06
Hello!

All my services in /opt/etc/init.d are not auto starting.
I configured /usr/local/sbin/post-mount as in tutorial, but I didn't had the directory /sbin in /usr/local/ so I manually created it. Is it possible to be the problem here?
/opt/etc/init.d/rc.unslung is not starting automatically

thanks


LATER: both problems resolved. files in /opt/etc/init.d have to be executable, though

enemydr
30-12-2010, 13:43
when I try to format the second hdd as extended I get the following:


[root@Asus-LAN root]$ mke2fs -j -m 0 /dev/discs/disc1/part1
mke2fs 1.38 (30-Jun-2005)

Could not set up superblock




disk 2(750 GB):
part1 is extended partition
part5 is logical drive




[root@Asus-LAN root]$ fdisk -l

Disk /dev/scsi/host0/bus0/target0/lun0/disc: 4009 MB, 4009754624 bytes
255 heads, 63 sectors/track, 487 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target0/lun0/part1 1 63 506016 82 Linux swap
/dev/scsi/host0/bus0/target0/lun0/part2 64 188 1004062+ 83 Linux
/dev/scsi/host0/bus0/target0/lun0/part3 189 487 2401717+ 83 Linux

Disk /dev/scsi/host1/bus0/target0/lun0/disc: 750.1 GB, 750127153152 bytes
255 heads, 63 sectors/track, 91197 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/scsi/host1/bus0/target0/lun0/part1 1 37349 300005811 5 Extended
/dev/scsi/host1/bus0/target0/lun0/part5 1 37349 300005779+ 83 Linux




what problem can it be?


Later: I formated it as primary, and everything is well

enemydr
01-01-2011, 16:42
In transmission's web interface I don't have the option "move data file".
So if I move what I downloaded from /transmission/download the torrent isn't seeding anymore and starts downloadin again in /transmission/download.
Is there any possibility to show the new pathway to the existing torrent?

jmfv
03-01-2011, 12:19
Great tutorial, wengi. Without this tutorial I couldn't dare to install Oleg's firmware. The router is now working better, and it is great to know how much customization it takes. Many thanks

wengi
09-01-2011, 15:40
Hi all,

been away some time.
Are your questions still unanswered?
Give me an update on your issues and we can discuss it.

wengi

kerberos
18-01-2011, 16:25
Is this tutorial worked for rt-n16 ?

Thanks in advance.

wengi
19-01-2011, 20:53
In general: YES

wengi

mihaidenis
25-01-2011, 17:32
I just update my firmware to 1.9.2.7-d-r2381 on a wl500gpv2.
Then reinstall all from scratch (base on your tutorial=except samba)on a usb stick 16 Gb.
Everything run ok.
Just one thing.
Transmission is not starting automatically upon a reboot.
If i paste on putty:

chmod 755 /opt/etc/init.d/S90transmission-daemon
/opt/etc/init.d/S90transmission-daemon start

then is starting fine.
I double check transmission(in fact all start-up scripts) according to your tutorial and all are fine.
Any idea?
Thanks for your great tutorial Wengi.
Unsolved pls give me a starting point..........

wengi
27-01-2011, 09:41
Hi,

could you please provide the following after a restart (without starting transmission manually):


ps axf
ls -la /opt/etc/init.d
cat /opt/etc/init.d/rc.unslung
cat /opt/etc/init.d/S90transmission-daemonwengi

mihaidenis
01-02-2011, 20:04
Hi,

could you please provide the following after a restart (without starting transmission manually):


ps axf
ls -la /opt/etc/init.d
cat /opt/etc/init.d/rc.unslung
cat /opt/etc/init.d/S90transmission-daemonwengi


Yes,sorry for delay.
Here it is:

wengi
02-02-2011, 15:08
The files are fine so far.
This seems to be a timing problem.
Could you - for testing - remark the level1.gz download part in S90transmission?
Maybe this has something to do with a small / late responding internet connection.

wengi

mihaidenis
02-02-2011, 21:01
The files are fine so far.
This seems to be a timing problem.
Could you - for testing - remark the level1.gz download part in S90transmission?
Maybe this has something to do with a small / late responding internet connection.

wengi

I try what U suggested and still nothing.
Also i notice that cron is not started (ps axf processes).
It seems that everything related to location /opt/etc/init.d/
are not starting automatically.
Any way thanks Wengi for your quick answer and for your time
spending here helping others.
Unfortunately i had no time to spend now for debugging.
So i will start manually as i did it already.
Once again thanks Wengi.

wengi
04-02-2011, 15:11
Hi,

if rc.unslung is not started at all (and you are right) please check your /usr/local/sbin/post-mount.

content should be
#! /bin/sh

/opt/etc/init.d/rc.unslung startwengi

redpacman
14-02-2011, 08:40
Thanks for the wonderful How-to wengi.
......I had my wl-hdd setup fine following your instruction, now using Transmission as my low-power downloader.
......I recently rescued an old 2.5' 60g ide hard drive. The drive has been partially damaged due to loss of power during writing.
......As the hard drive is having bad blocks spreading across 42%~53% of the surface, i did a remap and partitioned the space between 40%~55% as a single hidden partition.
......By doing so, i should be able to avoid accessing the bad blocks preventing further degrading of the hard drive.
......Now i want to use the rescued hard drive on the wl-hdd. According to the How-to, i should setup the hard drive with 3 partitions, but since the usable space on my 60g hard drive was separated into two parts that are not neighboring, i don't know how to do the partition in order to make use of all the space.
......Please help me with the partition setup: does it mean i can only use one of the two parts or is there a way to fully utilize all the space?
......if there is a way to both parts what should i do to make transmission function?

wengi
14-02-2011, 10:01
Hi redpacman,

first of all: I recommend NOT using the drive because normaly these damage sectors become more with time. Never store important data on such a device!

ok, this said:

You can simply use a setup with two data partitions.
You can use a partition "part4" named "data2".

Your fstab should look like this

#device Mountpoint FStype Options Dump Pass#
/dev/discs/disc0/part1 none swap sw 0 0
/dev/discs/disc0/part2 /opt ext3 rw,noatime 1 1
/dev/discs/disc0/part3 /tmp/harddisk ext3 rw,noatime 1 1
/dev/discs/disc0/part4 /tmp/harddisk2 ext3 rw,noatime 1 1Note that /tmp/harddisk2 must exist.
As far as i know there is no LVM for the router so i do not know a way to merge this two partition to one "Volume".

wengi

Arbadelli
08-03-2011, 19:21
Hi,

i've installed this long time ago, but now, i take a look, if i can put on a mediaserver on de WL500gp with Oleg's firmware.

But first i have some questions:

1 - can i update the firmware, without copien all my media files to another pc.
2 - can i install mediatomb with all files on the hdd?

thanks in advance

I want to use Mediatomb, but maybe you have better mediaservers?
I want to use it with my AC Ryan Mediaplayer :)

wengi
09-03-2011, 09:44
Hi,

- yes, you can update firmware without copying all the files. Have a look at chapter 18!
- yes, you can install mediatomb with all teh files on the hdd.

But just to be sure: you have which old firmware and want to update to which new firmware?

I have no idea which mediaserver is the best because i retired my WL-HDD many month ago. Never used a mediaserver.

wengi

Arbadelli
09-03-2011, 19:03
But just to be sure: you have which old firmware and want to update to which new firmware?

wengi



I logged in on my Asus and i have

Product ID WL500gp
Firmware version 1.9.2.7
Firmeare release 1.9.2.7-d-r1000

greets

wengi
10-03-2011, 12:35
Hi,

this is already the enthusiast firmware. An early one.
There have been some changes but you should be fine.

Do the upgrade.

wengi

tmsulica
11-03-2011, 20:16
Hello wengi , great tutorial i say again. I have followed your tutorial about 2 or 3 years ago when added on my wl500-gp oleg's latest firmware and now, about a week or two latest enthusiast firmware. So i thank you for your great tutorial.

Now my questions:

I have an HSPDA modem, ZTE MF100 from my provider DIGI. I found in the web interface a part where i can set-up a 3g modem. I managed to find correct settings for my provider, and finally after some hours of testing finally works. But when i look at my sistem log i found many errors ... this is my log :



Jan 1 02:00:27 kernel: sda: Write Protect is off
Jan 1 02:00:27 kernel: /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
Jan 1 02:00:27 kernel: I/O error: dev 08:00, sector 0
Jan 1 02:00:27 kernel: sda: Waiting for disc 0 to settle.
Jan 1 02:00:30 kernel: sda: Unit Not Ready, sense:
Jan 1 02:00:30 kernel: Info fld=0x0, Current 00:00: sns = f0 2
Jan 1 02:00:30 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:30 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:30 kernel: sda : READ CAPACITY failed.
Jan 1 02:00:30 kernel: sda : status = 1, message = 00, host = 0, driver = 08
Jan 1 02:00:30 kernel: Info fld=0x0, Current sd00:00: sns = f0 2
Jan 1 02:00:30 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:30 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:30 kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Jan 1 02:00:30 kernel: sda: Write Protect is off
Jan 1 02:00:30 kernel: /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
Jan 1 02:00:30 kernel: I/O error: dev 08:00, sector 0
Jan 1 02:00:30 kernel: sda: Waiting for disc 0 to settle.
Jan 1 02:00:33 kernel: sda: Unit Not Ready, sense:
Jan 1 02:00:33 kernel: Info fld=0x0, Current 00:00: sns = f0 2
Jan 1 02:00:33 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:33 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:33 kernel: sda : READ CAPACITY failed.
Jan 1 02:00:33 kernel: sda : status = 1, message = 00, host = 0, driver = 08
Jan 1 02:00:33 kernel: Info fld=0x0, Current sd00:00: sns = f0 2
Jan 1 02:00:33 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:33 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:33 kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Jan 1 02:00:34 kernel: sda: Write Protect is off
Jan 1 02:00:34 kernel: /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
Jan 1 02:00:34 kernel: I/O error: dev 08:00, sector 0
Jan 1 02:00:34 kernel: sda: Waiting for disc 0 to settle.
Jan 1 02:00:36 kernel: sda: Unit Not Ready, sense:
Jan 1 02:00:36 kernel: Info fld=0x0, Current 00:00: sns = f0 2
Jan 1 02:00:36 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:36 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:37 kernel: sda : READ CAPACITY failed.
Jan 1 02:00:37 kernel: sda : status = 1, message = 00, host = 0, driver = 08
Jan 1 02:00:37 kernel: Info fld=0x0, Current sd00:00: sns = f0 2
Jan 1 02:00:37 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:37 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:37 kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Jan 1 02:00:37 kernel: sda: Write Protect is off
Jan 1 02:00:37 kernel: /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
Jan 1 02:00:37 kernel: I/O error: dev 08:00, sector 0
Jan 1 02:00:37 kernel: sda: Waiting for disc 0 to settle.
Jan 1 02:00:39 kernel: sda: Unit Not Ready, sense:
Jan 1 02:00:39 kernel: Info fld=0x0, Current 00:00: sns = f0 2
Jan 1 02:00:39 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:39 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:40 kernel: sda : READ CAPACITY failed.
Jan 1 02:00:40 kernel: sda : status = 1, message = 00, host = 0, driver = 08
Jan 1 02:00:40 kernel: Info fld=0x0, Current sd00:00: sns = f0 2
Jan 1 02:00:40 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:40 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:40 kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Jan 1 02:00:40 kernel: sda: Write Protect is off
Jan 1 02:00:40 kernel: /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
Jan 1 02:00:40 kernel: I/O error: dev 08:00, sector 0
Jan 1 02:00:40 kernel: sda: Waiting for disc 0 to settle.
Jan 1 02:00:42 kernel: sda: Unit Not Ready, sense:
Jan 1 02:00:42 kernel: Info fld=0x0, Current 00:00: sns = f0 2
Jan 1 02:00:42 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:42 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:43 kernel: sda : READ CAPACITY failed.
Jan 1 02:00:43 kernel: sda : status = 1, message = 00, host = 0, driver = 08
Jan 1 02:00:43 kernel: Info fld=0x0, Current sd00:00: sns = f0 2
Jan 1 02:00:43 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:43 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:43 kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Jan 1 02:00:43 kernel: sda: Write Protect is off
Jan 1 02:00:43 kernel: /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
Jan 1 02:00:43 kernel: I/O error: dev 08:00, sector 0
Jan 1 02:00:43 kernel: unable to read partition table
Jan 1 02:00:43 kernel: I/O error: dev 08:00, sector 0
Mar 11 21:39:02 pppd[159]: System time change detected.
Mar 11 21:39:21 ntp client: Synchronizing time with pool.ntp.org...
.

My HSPDA MODEM is an ZTE MF 100 @ 3,2 Mbs. The modem has an micro sd reader and an virtual drive with drivers for windows. Should i worry about those errors?. It would trouble my hdd when i will plug it in ?? ( I followed your tutorial, installed HDD, installed all till Transmission, but i conect the hdd only when i want to download torrents, and works fine , no errors - without my hdd ).

And second one: I normally use an PPOE Lan conection but i want to use my ZTE Modem only as a backup when the network fails. I understanded that the koppel version of oleg's firmware does that, my 1.9.2.7-d-r2624 release can do that ?

Or at least to make a script or something when my PPOE conexion is dead, and i insert my usb 3G modem to switch the connection automatically from PPOE to USB Modem. I saw that on the web interface at 3G/CDMA Modem tab, at additional parameters i have an device initial script tab. And if an script exists can it be flashed on my router so i do not have to plug my hdd for that ?

It would be an ideea to have my 3g modem ready, and when my ppoe conexion is dead i just plug in my modem and the router does the rest.....


10x and waiting your answer ....


BTW: My settings for my 3G modem to work are:
- zero cd configuration: Auto ("Not set" is not showing errors, starts the drivers but at USB location ID i don't see any modem installed)
- username: user
- password : user
- APN : internet
- Dial number: *99#
- Call on demand: Yes
- USB Device location ID 1.3 (as seen in View window, tts/2 )
- Autodetect device: Yes
- Usb device & product id as detected
- Usb device packet size : 0
- Usb device serial speed: 11200
(this values i founded on an local forum with settings for koppel 1.71 , here http://craciun.in/?p=111 )

tmsulica
11-03-2011, 20:18
And my first part of my full log is:

Jan 1 02:00:02 syslogd started: BusyBox v1.18.3
Jan 1 02:00:02 kernel: klogd started: BusyBox v1.18.3 (2011-02-19 10:18:57 MSK)
Jan 1 02:00:02 kernel: CPU revision is: 00029006
Jan 1 02:00:02 kernel: Primary instruction cache 16kB, physically tagged, 2-way, linesize 16 bytes.
Jan 1 02:00:02 kernel: Primary data cache 16kB, 2-way, linesize 16 bytes.
Jan 1 02:00:02 kernel: Linux version 2.4.37.11 (root@localhost) (gcc version 3.4.6) #18 2011-02-19 19:42:06 MSK
Jan 1 02:00:02 kernel: Setting the PFC to its default value
Jan 1 02:00:02 kernel: Determined physical RAM map:
Jan 1 02:00:02 kernel: memory: 02000000 @ 00000000 (usable)
Jan 1 02:00:02 kernel: On node 0 totalpages: 8192
Jan 1 02:00:02 kernel: zone(0): 8192 pages.
Jan 1 02:00:02 kernel: NTFS driver v1.1.22 [Flags: R/O]
Jan 1 02:00:02 kernel: squashfs: version 3.0 (2006/03/15) Phillip Lougher
Jan 1 02:00:02 kernel: pty: 256 Unix98 ptys configured
Jan 1 02:00:02 kernel: Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
Jan 1 02:00:02 kernel: ttyS00 at 0xb8000300 (irq = 3) is a 16550A
Jan 1 02:00:02 kernel: ttyS01 at 0xb8000400 (irq = 3) is a 16550A
Jan 1 02:00:02 kernel: HDLC line discipline: version $Revision: 3.7 $, maxframe=4096
Jan 1 02:00:02 kernel: N_HDLC line discipline registered.
Jan 1 02:00:02 kernel: loop: loaded (max 8 devices)
Jan 1 02:00:02 kernel: PPP generic driver version 2.4.2
Jan 1 02:00:03 dropbear[68]: Running in background
Jan 1 02:00:03 kernel: usb.c: registered new driver usbdevfs
Jan 1 02:00:03 kernel: usb.c: registered new driver hub
Jan 1 02:00:03 dnsmasq[74]: started, version 2.57 cachesize 512
Jan 1 02:00:03 dnsmasq[74]: compile time options: IPv6 GNU-getopt no-RTC no-DBus no-I18N DHCP no-scripts no-TFTP no-IDN
Jan 1 02:00:03 dnsmasq-dhcp[74]: DHCP, IP range 192.168.1.10 -- 192.168.1.254, lease time 1d
Jan 1 02:00:03 dnsmasq[74]: read /etc/hosts - 2 addresses
Jan 1 02:00:03 kernel: usb-uhci.c: $Revision: 1.275 $ time 10:23:36 Feb 19 2011
Jan 1 02:00:03 kernel: usb-uhci.c: High bandwidth mode enabled
Jan 1 02:00:03 kernel: PCI: Enabling device 01:03.0 (0000 -> 0001)
Jan 1 02:00:03 kernel: UHCI: Enabling VIA 6212 workarounds
Jan 1 02:00:03 kernel: usb-uhci.c: USB UHCI at I/O 0x100, IRQ 12
Jan 1 02:00:03 kernel: usb-uhci.c: Detected 2 ports
Jan 1 02:00:03 kernel: usb.c: new USB bus registered, assigned bus number 1
Jan 1 02:00:03 kernel: hub.c: USB hub found
Jan 1 02:00:03 kernel: hub.c: 2 ports detected
Jan 1 02:00:03 kernel: PCI: Enabling device 01:03.1 (0000 -> 0001)
Jan 1 02:00:03 kernel: UHCI: Enabling VIA 6212 workarounds
Jan 1 02:00:03 kernel: usb-uhci.c: USB UHCI at I/O 0x120, IRQ 12
Jan 1 02:00:03 kernel: usb-uhci.c: Detected 2 ports
Jan 1 02:00:04 kernel: usb.c: new USB bus registered, assigned bus number 2
Jan 1 02:00:04 kernel: hub.c: USB hub found
Jan 1 02:00:04 kernel: hub.c: 2 ports detected
Jan 1 02:00:04 kernel: usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
Jan 1 02:00:04 kernel: PCI: Enabling device 01:03.2 (0000 -> 0002)
Jan 1 02:00:04 kernel: ehci_hcd 01:03.2: PCI device 1106:3104
Jan 1 02:00:04 kernel: ehci_hcd 01:03.2: irq 12, pci mem c01f2000
Jan 1 02:00:04 kernel: usb.c: new USB bus registered, assigned bus number 3
Jan 1 02:00:04 kernel: EHCI: Enabling VIA 6212 workarounds
Jan 1 02:00:04 kernel: ehci_hcd 01:03.2: USB 2.0 enabled, EHCI 1.00, driver 10 Dec 2004/2.4
Jan 1 02:00:04 kernel: hub.c: USB hub found
Jan 1 02:00:04 kernel: hub.c: 4 ports detected
Jan 1 02:00:04 kernel: usb.c: registered new driver usblp
Jan 1 02:00:04 kernel: printer.c: v0.13: USB Printer Device Class driver
Jan 1 02:00:04 kernel: Linux video capture interface: v1.00
Jan 1 02:00:04 kernel: SCSI subsystem driver Revision: 1.00
Jan 1 02:00:04 kernel: Initializing USB Mass Storage driver...
Jan 1 02:00:04 kernel: usb.c: registered new driver usb-storage
Jan 1 02:00:04 kernel: USB Mass Storage support registered.
Jan 1 02:00:05 kernel: hub.c: new USB device 01:03.2-1, assigned address 2
Jan 1 02:00:06 kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Jan 1 02:00:06 kernel: Vendor: ZTE Model: MMC Storage Rev: 2.31
Jan 1 02:00:06 kernel: Type: Direct-Access ANSI SCSI revision: 02
Jan 1 02:00:06 kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Jan 1 02:00:06 kernel: sda: Waiting for disc 0 to settle.
Jan 1 02:00:08 kernel: sda: Unit Not Ready, sense:
Jan 1 02:00:08 kernel: Info fld=0x0, Current 00:00: sns = f0 2
Jan 1 02:00:08 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:08 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:09 kernel: sda : READ CAPACITY failed.
Jan 1 02:00:09 kernel: sda : status = 1, message = 00, host = 0, driver = 08
Jan 1 02:00:09 kernel: Info fld=0x0, Current sd00:00: sns = f0 2
Jan 1 02:00:09 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:09 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:09 kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Jan 1 02:00:09 kernel: Partition check:
Jan 1 02:00:09 kernel: /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
Jan 1 02:00:09 kernel: I/O error: dev 08:00, sector 0
Jan 1 02:00:09 kernel: unable to read partition table
Jan 1 02:00:15 kernel: sda: Waiting for disc 0 to settle.
Jan 1 02:00:15 kernel: usb.c: registered new driver acm
Jan 1 02:00:15 kernel: acm.c: v0.23:USB Abstract Control Model driver for USB modems and ISDN adapters (patched)
Jan 1 02:00:16 kernel: usb.c: registered new driver serial
Jan 1 02:00:16 kernel: usbserial.c: USB Serial support registered for Generic
Jan 1 02:00:16 kernel: usbserial.c: Generic converter detected
Jan 1 02:00:16 kernel: usbserial.c: Generic converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
Jan 1 02:00:16 kernel: usbserial.c: Generic converter detected
Jan 1 02:00:16 kernel: usbserial.c: Generic converter now attached to ttyUSB1 (or usb/tts/1 for devfs)
Jan 1 02:00:16 kernel: usbserial.c: Generic converter detected
Jan 1 02:00:16 kernel: usbserial.c: Generic converter now attached to ttyUSB2 (or usb/tts/2 for devfs)
Jan 1 02:00:16 kernel: usbserial.c: USB Serial Driver core v1.4
Jan 1 02:00:16 kernel: usbserial.c: USB Serial support registered for PL-2303
Jan 1 02:00:16 kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver
Jan 1 02:00:16 kernel: usbserial.c: USB Serial support registered for FTDI SIO
Jan 1 02:00:16 kernel: usbserial.c: USB Serial support registered for FTDI 8U232AM Compatible
Jan 1 02:00:16 kernel: usbserial.c: USB Serial support registered for FTDI FT232BM Compatible
Jan 1 02:00:16 kernel: usbserial.c: USB Serial support registered for FTDI FT2232C Compatible
Jan 1 02:00:16 kernel: usbserial.c: USB Serial support registered for FTDI FT232R Compatible
Jan 1 02:00:16 kernel: usbserial.c: USB Serial support registered for USB-UIRT Infrared Tranceiver
Jan 1 02:00:16 kernel: usbserial.c: USB Serial support registered for Home-Electronics TIRA-1 IR Transceiver

tmsulica
11-03-2011, 20:20
And my 2nd part of my full log is:

Jan 1 02:00:16 kernel: ftdi_sio.c: v1.3.5r1:USB FTDI Serial Converters Driver
Jan 1 02:00:18 kernel: sda: Unit Not Ready, sense:
Jan 1 02:00:18 kernel: Info fld=0x0, Current 00:00: sns = f0 2
Jan 1 02:00:18 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:18 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:18 kernel: sda : READ CAPACITY failed.
Jan 1 02:00:18 kernel: sda : status = 1, message = 00, host = 0, driver = 08
Jan 1 02:00:18 kernel: Info fld=0x0, Current sd00:00: sns = f0 2
Jan 1 02:00:18 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:18 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:18 kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Jan 1 02:00:18 kernel: sda: Write Protect is off
Jan 1 02:00:18 kernel: /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
Jan 1 02:00:18 kernel: I/O error: dev 08:00, sector 0
Jan 1 02:00:18 kernel: sda: Waiting for disc 0 to settle.
Jan 1 02:00:18 pppd[159]: pppd 2.4.5 started by admin, uid 0
Jan 1 02:00:18 pppd[159]: Using interface ppp0
Jan 1 02:00:18 pppd[159]: local IP address 10.64.64.64
Jan 1 02:00:18 pppd[159]: remote IP address 10.112.112.112
Jan 1 02:00:19 pppd[159]: Starting link
Jan 1 02:00:21 pppd[159]: Serial connection established.
Jan 1 02:00:21 pppd[159]: Connect: ppp0 <--> /dev/usb/tts/2
Jan 1 02:00:21 kernel: sda: Unit Not Ready, sense:
Jan 1 02:00:21 kernel: Info fld=0x0, Current 00:00: sns = f0 2
Jan 1 02:00:21 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:21 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:21 kernel: sda : READ CAPACITY failed.
Jan 1 02:00:21 kernel: sda : status = 1, message = 00, host = 0, driver = 08
Jan 1 02:00:21 kernel: Info fld=0x0, Current sd00:00: sns = f0 2
Jan 1 02:00:21 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:21 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:21 kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Jan 1 02:00:21 kernel: sda: Write Protect is off
Jan 1 02:00:21 kernel: /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
Jan 1 02:00:21 kernel: I/O error: dev 08:00, sector 0
Jan 1 02:00:21 fstab: /dev/discs/disc0/part2 is not attached
Jan 1 02:00:21 kernel: sda: Waiting for disc 0 to settle.
Jan 1 02:00:22 pppd[159]: CHAP authentication succeeded
Jan 1 02:00:22 pppd[159]: CHAP authentication succeeded
Jan 1 02:00:24 pppd[159]: Local IP address changed to 172.16.241.192
Jan 1 02:00:24 kernel: sda: Unit Not Ready, sense:
Jan 1 02:00:24 kernel: Info fld=0x0, Current 00:00: sns = f0 2
Jan 1 02:00:24 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:24 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:24 kernel: sda : READ CAPACITY failed.
Jan 1 02:00:24 kernel: sda : status = 1, message = 00, host = 0, driver = 08
Jan 1 02:00:24 kernel: Info fld=0x0, Current sd00:00: sns = f0 2
Jan 1 02:00:24 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:24 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:24 kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Jan 1 02:00:24 kernel: sda: Write Protect is off
Jan 1 02:00:24 kernel: /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
Jan 1 02:00:24 kernel: I/O error: dev 08:00, sector 0
Jan 1 02:00:24 fstab: /dev/discs/disc0/part3 is not attached
Jan 1 02:00:24 kernel: sda: Waiting for disc 0 to settle.
Jan 1 02:00:25 pppd[159]: Open ICMP 172.16.241.192 -> 8.8.8.8
Jan 1 02:00:25 dnsmasq[74]: read /etc/hosts - 2 addresses
Jan 1 02:00:25 dnsmasq[74]: using nameserver 193.231.236.25#53
Jan 1 02:00:25 dnsmasq[74]: using nameserver 193.231.236.30#53
Jan 1 02:00:25 3G USB Modem: connected to ISP
Jan 1 02:00:27 kernel: sda: Unit Not Ready, sense:
Jan 1 02:00:27 kernel: Info fld=0x0, Current 00:00: sns = f0 2
Jan 1 02:00:27 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:27 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:27 kernel: sda : READ CAPACITY failed.
Jan 1 02:00:27 kernel: sda : status = 1, message = 00, host = 0, driver = 08
Jan 1 02:00:27 kernel: Info fld=0x0, Current sd00:00: sns = f0 2
Jan 1 02:00:27 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:27 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:27 kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Jan 1 02:00:27 kernel: sda: Write Protect is off
Jan 1 02:00:27 kernel: /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
Jan 1 02:00:27 kernel: I/O error: dev 08:00, sector 0
Jan 1 02:00:27 kernel: sda: Waiting for disc 0 to settle.
Jan 1 02:00:30 kernel: sda: Unit Not Ready, sense:
Jan 1 02:00:30 kernel: Info fld=0x0, Current 00:00: sns = f0 2
Jan 1 02:00:30 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:30 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:30 kernel: sda : READ CAPACITY failed.
Jan 1 02:00:30 kernel: sda : status = 1, message = 00, host = 0, driver = 08
Jan 1 02:00:30 kernel: Info fld=0x0, Current sd00:00: sns = f0 2
Jan 1 02:00:30 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:30 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:30 kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Jan 1 02:00:30 kernel: sda: Write Protect is off
Jan 1 02:00:30 kernel: /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
Jan 1 02:00:30 kernel: I/O error: dev 08:00, sector 0
Jan 1 02:00:30 kernel: sda: Waiting for disc 0 to settle.
Jan 1 02:00:33 kernel: sda: Unit Not Ready, sense:
Jan 1 02:00:33 kernel: Info fld=0x0, Current 00:00: sns = f0 2
Jan 1 02:00:33 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:33 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:33 kernel: sda : READ CAPACITY failed.
Jan 1 02:00:33 kernel: sda : status = 1, message = 00, host = 0, driver = 08
Jan 1 02:00:33 kernel: Info fld=0x0, Current sd00:00: sns = f0 2
Jan 1 02:00:33 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:33 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:33 kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Jan 1 02:00:34 kernel: sda: Write Protect is off
Jan 1 02:00:34 kernel: /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
Jan 1 02:00:34 kernel: I/O error: dev 08:00, sector 0
Jan 1 02:00:34 kernel: sda: Waiting for disc 0 to settle.
Jan 1 02:00:36 kernel: sda: Unit Not Ready, sense:
Jan 1 02:00:36 kernel: Info fld=0x0, Current 00:00: sns = f0 2
Jan 1 02:00:36 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:36 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:37 kernel: sda : READ CAPACITY failed.
Jan 1 02:00:37 kernel: sda : status = 1, message = 00, host = 0, driver = 08
Jan 1 02:00:37 kernel: Info fld=0x0, Current sd00:00: sns = f0 2
Jan 1 02:00:37 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:37 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:37 kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Jan 1 02:00:37 kernel: sda: Write Protect is off
Jan 1 02:00:37 kernel: /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
Jan 1 02:00:37 kernel: I/O error: dev 08:00, sector 0
Jan 1 02:00:37 kernel: sda: Waiting for disc 0 to settle.
Jan 1 02:00:39 kernel: sda: Unit Not Ready, sense:
Jan 1 02:00:39 kernel: Info fld=0x0, Current 00:00: sns = f0 2
Jan 1 02:00:39 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:39 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:40 kernel: sda : READ CAPACITY failed.
Jan 1 02:00:40 kernel: sda : status = 1, message = 00, host = 0, driver = 08
Jan 1 02:00:40 kernel: Info fld=0x0, Current sd00:00: sns = f0 2
Jan 1 02:00:40 kernel: ASC=3a ASCQ= 0
Jan 1 02:00:40 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 1 02:00:40 kernel: sda : block size assumed to be 512 bytes, disk size 1GB.


The last 20 lines are in my first post

Right
09-04-2011, 07:54
Message of insufficient space on hdd.

Router Asuswl500gp2, Oleg's firmware 1.9.2.7 - 10, hdd Seagate 2Tb with external power. The router settings are according to this tutorial: http://wl500g.info/showthread.php?t=10307

I created a folder mkdir /tmp/harddisk/share, copied there about 100Gb and got a message for insufficient space on harddrive

[admin@Wl500gp2 root]$ du s /tmp/harddisk/share
104844952 /tmp/harddisk/share

also mounted folder big, the problem is still there

[admin@Wl500gp2 root]$ mkdir /tmp/mnt/disc0_3/big
[admin@Wl500gp2 root]$ chmod ugoa+w /tmp/mnt/disc0_3/big

there is plenty of free space on the drive:

[admin@Wl500gp2 root]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 3072 3072 0 100% /
/dev/discs/disc0/part2 985720 65988 869660 7% /opt
/dev/discs/disc0/part3 1921383312 104976180 1816407132 5% /tmp/mnt/disc0_3

Filesystem is ext3

[admin@Wl500gp2 root]$ mount
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part2 on /opt type ext3 (rw,noatime)
/dev/discs/disc0/part3 on /tmp/mnt/disc0_3 type ext3 (rw,noatime)

How can I check if there are restrictions for folder size and what can be reasons for that?
Why do i get a free space message and how can I fix it?

al37919
09-04-2011, 11:24
your message is inconsistent. Your hdd partitions are mounted to /opt and /tmp/mnt/disc0_3, however, you test writing to /tmp/harddisk. Where /tmp/harddisk is located?

Right
09-04-2011, 12:29
Most likely it is. This is my first experience with Linux, so i don't completely understand what I am doing :)
How can i check where is located this folder? /tmp/harddisk

I also copied information to this folder: /tmp/mnt/disc0_3/big and got the same problem. Thanks for your help.

al37919
09-04-2011, 12:55
/tmp/harddisk is likely a symlink. So, look at:

ls -al /tmp/harddisk
it would be also interesting to have a look on the output of

fdisk -l

Right
09-04-2011, 14:22
[admin@Wl500gp2 root]$ ls -al /tmp/harddisk
lrwxrwxrwx 1 admin root 16 Apr 9 15:18 /tmp/harddisk -> /tmp/mnt/disc0_3


[admin@Wl500gp2 root]$ fdisk -l

Disk /dev/scsi/host0/bus0/target0/lun0/disc: 2000.3 GB, 2000398933504 bytes
64 heads, 32 sectors/track, 1907729 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target0/lun0/part1 1 489 500720 82 Linux swap
/dev/scsi/host0/bus0/target0/lun0/part2 490 1467 1001472 83 Linux
/dev/scsi/host0/bus0/target0/lun0/part3 1468 18446744073709362194 18446744073514080256 83 Linux

al37919
09-04-2011, 16:24
/tmp/harddisk is really pointing to the biggest partition, however, something is wrong with this record:

/dev/scsi/host0/bus0/target0/lun0/part3 1468 18446744073709362194 18446744073514080256 83 Linux
You don't have that much space even if you measure it in bits. I would suggest to recreate this partition

Right
09-04-2011, 16:39
/tmp/harddisk is really pointing to the biggest partition, however, something is wrong with this record:

/dev/scsi/host0/bus0/target0/lun0/part3 1468 18446744073709362194 18446744073514080256 83 Linux
You don't have that much space even if you measure it in bits. I would suggest to recreate this partition

So I should create and format this partition to ext3 again? Can I do it only with this partition, or i should remake all partitions?

al37919
09-04-2011, 16:51
try first to recreate only this partition

Right
09-04-2011, 17:11
ok. thank you for your help

Pursuit250
28-04-2011, 11:41
Been happily using Olegs firmware for months now (recently upgraded from 1.9.2.7-rtn-r2274 to 1.9.2.7-rtn-r2775), following this tutorial to the letter on my RT-N16. However, it nows seems I've developed an issue I can't solve.

The transmission-daemon (2.22) process randomly stops. Restarting the transmission-daemon or rebooting within Putty starts the process again, but it will stop some time later (within the hour). Restarting the router also starts the process again but not for long.

I've completed a full re-install of the oleg firmware which didn't help.
Re-formatted the /opt partition and completed the configuration steps in this tutorial again which also didn't help. I'm at a loss.

When the transmission-daemon is working I have the following processes running

[admin@Router root]$ ps axf
PID TTY STAT TIME COMMAND
2 ? S< 0:00 [kthreadd]
4 ? S< 0:00 \_ [events/0]
5 ? S< 0:00 \_ [khelper]
3 ? S< 0:00 \_ [ksoftirqd/0]
24 ? S< 0:00 \_ [kblockd/0]
51 ? S 0:00 \_ [pdflush]
52 ? S< 0:00 \_ [kswapd0]
53 ? S< 0:00 \_ [aio/0]
50 ? S 0:00 \_ [pdflush]
102 ? S< 0:01 \_ [mtdblockd]
231 ? S< 0:00 \_ [khubd]
296 ? S< 0:00 \_ [scsi_eh_0]
297 ? S< 0:00 \_ [usb-storage]
302 ? S< 0:00 \_ [usb-storage]
301 ? S< 0:00 \_ [scsi_eh_1]
439 ? S< 0:00 \_ [kjournald]
440 ? S< 0:00 \_ [kjournald]
441 ? S< 0:00 \_ [kjournald]
1 ttyS0 Ss+ 0:00 /sbin/init
197 ? Ss 0:00 klogd
199 ? S 0:00 eapd
202 ? S 0:00 nas
207 ? Ss 0:00 telnetd
210 ? S 0:00 dropbear -p 8119 -4
486 ? Ss 0:02 \_ dropbear -p 8119 -4
487 pts/0 Ss 0:00 \_ -sh
489 pts/0 R+ 0:00 \_ ps axf
213 ? S 0:00 httpd vlan2
218 ? S 0:00 dnsmasq
244 ? S 0:00 lld2d br0 eth1
393 ? Ss 0:00 /sbin/udhcpc -i vlan2 -p /var/run/udhcpc0.pid -b -O routes -O staticroutes -O msstaticroutes
395 ? S 0:00 pppd file /tmp/ppp/options.wan0
396 ? Ss 0:00 watchdog
423 ? S 0:00 upnp -D -L br0 -W ppp0
444 ? Ss 0:00 /usr/sbin/vsftpd
446 ? Ss 0:00 /usr/sbin/nmbd -D
448 ? Ss 0:00 /usr/sbin/smbd -D
464 ? Ss 0:00 /sbin/syslogd -m 0 -O /opt/var/log/syslog.log -S -l 7 -s 0
469 ? Ss 0:00 /opt/sbin/cron
475 ? SN 0:00 /opt/bin/transmission-daemon -g /tmp/harddisk/transmission/config
476 ? SN 0:00 \_ /opt/bin/transmission-daemon -g /tmp/harddisk/transmission/config
477 ? RN 0:44 \_ /opt/bin/transmission-daemon -g /tmp/harddisk/transmission/config
478 ? RN 0:01 \_ /opt/bin/transmission-daemon -g /tmp/harddisk/transmission/config
479 ? SN 0:00 \_ /opt/bin/transmission-daemon -g /tmp/harddisk/transmission/config
480 ? RN 0:42 \_ /opt/bin/transmission-daemon -g /tmp/harddisk/transmission/config
When the transmission-daemon is not working the following processes are running.

[admin@Router root]$ ps axf
PID TTY STAT TIME COMMAND
2 ? S< 0:00 [kthreadd]
4 ? S< 0:00 \_ [events/0]
5 ? S< 0:00 \_ [khelper]
3 ? S< 0:00 \_ [ksoftirqd/0]
24 ? S< 0:00 \_ [kblockd/0]
53 ? S< 0:00 \_ [aio/0]
51 ? S 0:00 \_ [pdflush]
52 ? S< 0:05 \_ [kswapd0]
50 ? S 0:00 \_ [pdflush]
102 ? S< 0:02 \_ [mtdblockd]
231 ? S< 0:00 \_ [khubd]
296 ? S< 0:00 \_ [scsi_eh_0]
297 ? S< 0:00 \_ [usb-storage]
302 ? S< 0:00 \_ [usb-storage]
301 ? S< 0:00 \_ [scsi_eh_1]
439 ? S< 0:00 \_ [kjournald]
440 ? S< 0:00 \_ [kjournald]
441 ? S< 0:00 \_ [kjournald]
1 ttyS0 Ss+ 0:00 /sbin/init
197 ? Ss 0:00 klogd
199 ? S 0:00 eapd
202 ? S 0:00 nas
207 ? Ss 0:00 telnetd
210 ? S 0:00 dropbear -p 8119 -4
522 ? Ss 0:02 \_ dropbear -p 8119 -4
523 pts/0 Ss 0:00 \_ -sh
524 pts/0 R+ 0:00 \_ ps axf
213 ? S 0:00 httpd vlan2
218 ? S 0:00 dnsmasq
244 ? S 0:00 lld2d br0 eth1
393 ? Ss 0:00 /sbin/udhcpc -i vlan2 -p /var/run/udhcpc0.pid -b -O routes -O staticroutes -O msstaticroutes
395 ? S 0:00 pppd file /tmp/ppp/options.wan0
396 ? Ss 0:00 watchdog
423 ? S 0:00 upnp -D -L br0 -W ppp0
444 ? Ss 0:00 /usr/sbin/vsftpd
446 ? Ss 0:00 /usr/sbin/nmbd -D
448 ? Ss 0:00 /usr/sbin/smbd -D
464 ? Ss 0:00 /sbin/syslogd -m 0 -O /opt/var/log/syslog.log -S -l 7 -s 0
469 ? Ss 0:00 /opt/sbin/cron
When restarting transmission-daemon within Putty I get the following from the System Log on the router

Apr 28 20:05:55 rc.unslung: stop service /opt/etc/init.d/S90transmission-daemon
Apr 28 20:05:55 rc.unslung: stop service /opt/etc/init.d/S10cron
Apr 28 20:05:55 rc.unslung: stop service /opt/etc/init.d/S05syslogd
Apr 28 20:05:55 syslogd exiting
Jan 1 11:00:04 syslogd started: BusyBox v1.18.3

It almost gives you the impression that transmission is still running when doing the restart

When restarting the transmission-daemon within Putty I get the following from the System Log on the router

Apr 28 20:31:30 transmission-daemon[541]: Blocklist "level1.bin" updated with 220131 entries (blocklist.c:421)
Apr 28 20:31:30 transmission-daemon[541]: Blocklist "level1.bin" contains 220131 entries (blocklist.c:114)
Apr 28 20:31:30 transmission-daemon[541]: Transmission 2.22 (12099) started (session.c:708)
Apr 28 20:31:30 transmission-daemon[541]: RPC Server Adding address to whitelist: 127.0.0.1 (rpc-server.c:807)
Apr 28 20:31:30 transmission-daemon[541]: RPC Server Adding address to whitelist: 192.168.1.* (rpc-server.c:807)
Apr 28 20:31:30 transmission-daemon[541]: RPC Server Serving RPC and Web requests on port 127.0.0.1:9091/transmission/ (rpc-server.c:985)
Apr 28 20:31:30 transmission-daemon[541]: RPC Server Whitelist enabled (rpc-server.c:989)
Apr 28 20:31:30 transmission-daemon[541]: Port Forwarding Stopped (port-forwarding.c:183)
Apr 28 20:31:30 transmission-daemon[541]: DHT Generating new id (tr-dht.c:306)
Apr 28 20:31:30 transmission-daemon[541]: Using settings from "/tmp/harddisk/transmission/config" (daemon.c:498)
Apr 28 20:31:30 transmission-daemon[541]: Saved "/tmp/mnt/disca_3/transmission/config/settings.json" (bencode.c:1716)
Apr 28 20:31:30 transmission-daemon[541]: Blocklist "level1.bin" contains 220131 entries (blocklist.c:114)

I fear my limited knowledge is preventing me from getting to the bottom of this one and therefore request help. If there are other outputs you wish to see let me know and I'll provide. Thanks in advance for any assistance you can provide.

Pursuit250
05-05-2011, 11:57
In addition to my last, I suspect my problem relates to the conflict between transmission and libevent (after some research). Now I need to amend /opt/etc/init.d/S90transmission-daemon to include export EVENT_NOEPOLL=1. Any tips on where I should Include the line of code?

gagauta
23-06-2011, 21:28
hi all

I need some help
it seems that cron is not starting

[admin@topex root]$ ps axf
PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? RN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
58 ? Ss 0:00 syslogd -m 0 -O /tmp/syslog.log -S -D -l 7 -b 1
62 ? Ss 0:00 klogd
63 ? Ss 0:00 telnetd
69 ? Ss 0:00 nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
72 ? S 0:00 httpd vlan1
73 ? S 0:00 dropbear -4
136 ? Ss 0:00 \_ dropbear -4
137 pts/0 Ss 0:00 \_ -sh
138 pts/0 R+ 0:00 \_ ps axf
75 ? S 0:00 lld2d br0 eth1
78 ? S 0:00 dnsmasq
76 ? S 0:00 [khubd]
94 ? Ss 0:00 pppd file /tmp/ppp/options.wan0
96 ? Ss 0:00 watchdog
103 ? S 0:00 [usb-storage-0]
104 ? S 0:00 [scsi_eh_0]
118 ? S 0:00 [kjournald]
119 ? S 0:00 [kjournald]
121 ? Ss 0:00 /usr/sbin/nmbd -D
123 ? Ss 0:00 /usr/sbin/smbd -D
131 ? S 0:00 \_ /usr/sbin/smbd -D
132 ? S 0:00 \_ /usr/sbin/smbd -D

if I do /opt/etc/init.d/rc.unslung start

I get following error

/opt/etc/init.d/S10cron: line 16: /opt/sbin/cron: Permission denied

can please someone show what i do wrong

thank you

reiten
24-06-2011, 16:06
Probably something is wrong with file permissions.

Try to run the following command:

chmod 755 /opt/etc/init.d/S10cron

gagauta
24-06-2011, 16:26
Probably something is wrong with file permissions.

Try to run the following command:

chmod 755 /opt/etc/init.d/S10cron

hi reiten

same error :(

wengi
24-06-2011, 16:47
Hi,

what version of the firmware are you using?
Please post the result of "/opt/sbin/cron" and "ls -la /opt/sbin/c*".
Also post "cat /opt/etc/init.d/S10cron".

wengi

gagauta
25-06-2011, 09:53
hi wengi

I use 1.9.2.7-d-r2624

result are:

-sh: /opt/sbin/cron: Permission denied

total 8
drwxrwxrwx 2 admin root 4096 Jun 23 22:57 .
drwxr-xr-x 3 admin root 4096 Oct 21 2010 ..

#!/bin/sh
#
# Startup script for cron

PIDFILE=/opt/var/run/cron.pid

case $1 in
start)
/opt/sbin/cron
;;
stop)
[ -f ${PIDFILE} ] && kill `cat ${PIDFILE}` ;;
*)
echo "usage: $0 (start|stop)"
exit 1
esac

wengi
25-06-2011, 12:56
Hi,

there is no cron in /opt/sbin !!!
Did you install cron? (ipkg install cron)

wengi

gagauta
25-06-2011, 13:24
ipkg install cron
Package cron (4.1-8) installed in /opt/ is up to date.
Configuring cron
Remember that the system crontab file is "/opt/etc/crontab".
usage: /opt/etc/init.d/S10cron (start|stop)
postinst script returned status 1
ERROR: cron.postinst returned 1
Nothing to be done
Successfully terminated.


Later edit: removed cron, install again, now working

thank you for support

tritical
13-07-2011, 21:59
Hello all,
I am not able to run any programs installed by ipkg. I can see the program files in /opt/bin and /opt/sbin, and can 'cat' their contents, or copy them to other places, but whenever I try to execute one of them, sh returns a 'not found' message.


[admin@WL500 sbin]$ pwd
/opt/sbin
[admin@WL500 sbin]$ ls -al
drwxr-xr-x 2 admin root 4096 Jul 13 10:39 .
drwxr-xr-x 11 admin root 4096 Nov 13 2010 ..
-rwxr-xr-x 1 admin root 72168 Oct 20 2010 cron
-rwxr-xr-x 1 admin root 373004 Dec 1 2010 privoxy
[admin@WL500 sbin]$ cron
-sh: cron: not found
[admin@WL500 sbin]$ ./cron
-sh: ./cron: not found


This is on a WL-500gPv2, running firmware version 1.9.2.7-rtn-r3073 which I built from source. I made one small modification to the source to change a few parameters that get passed to pppd, but that is the only change I made. opt is mounted from a USB disc, and appears to be working fine in all other respects.

Any thoughts ?

wpte
15-07-2011, 20:31
sounds like an uclibc problem.
Have you installed uclibc from optware?:)

tex
09-10-2011, 18:09
Hi at all.
I've the WL500GP and followed the tutorial to install and configure Oleg firmware. Installed Transmission and uShare. It has worked perfectly for a couple of years, until my last firmware update with 1.9.2.7-rtn-r3300. After that (i suppose) a cannot access any more to transmission web gui at http://192.168.1.1:9091/transmission/web/ and the same for uShare. The HD is still accessible from the PC and the folder of transmission are still there.
Any suggestion? I installed a wrong version of firmware?
Thank you

wengi
12-10-2011, 15:04
Hi,

just a guess.
Try "netstat -tulpen" in the shell and have a look if there is anything listening on these ports.

wengi

tex
13-10-2011, 11:37
Hi,

just a guess.
Try "netstat -tulpen" in the shell and have a look if there is anything listening on these ports.

wengi

Hi, and thank you for your answer
If -tulpen is -t the answer is:
tcp 378 0 WL-001E8C2D280C:netbios-ssn 192.168.1.195:49314 ESTABLISHED
tcp 0 211 ::ffff:192.168.1.1:telnet ::ffff:192.168.1.195:49359 ESTABLISHED
were 192.168.1.195 is my pc

wengi
14-10-2011, 09:46
Hi,

i really meant "-tulpen".

Unfortunately i do not have an asus router any more, so i have no idea which switches are supported.

The most important one is -ln (for listening, numeric) which lists all active ports.
Try -l and look if e.g. 9091 for transmission is listed.

wengi

tex
14-10-2011, 21:19
Hy wengy, this is the report of netstat -l

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 WL-001E8C2D280C:netbios-ssn 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:www 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:ftp 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:domain 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:5431 0.0.0.0:* LISTEN
tcp 0 0 :::laserjet :::* LISTEN
tcp 0 0 :::domain :::* LISTEN
tcp 0 0 :::telnet :::* LISTEN
udp 0 0 WL-001E8C2D280C:netbios-ns 0.0.0.0:*
udp 0 0 0.0.0.0:netbios-ns 0.0.0.0:*
udp 0 0 WL-001E8C2D280C:netbios-dgm 0.0.0.0:*
udp 0 0 0.0.0.0:netbios-dgm 0.0.0.0:*
udp 0 0 localhost.localdomain:34954 0.0.0.0:*
udp 0 0 0.0.0.0:domain 0.0.0.0:*
udp 0 0 0.0.0.0:bootps 0.0.0.0:*
udp 0 0 0.0.0.0:upnp 0.0.0.0:*
udp 0 0 :::domain :::*
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path

nothing with 9091....
and this is the help for netstat
Usage: netstat [-ral] [-tuwx] [-en]

Display networking information

Options:
-r Routing table
-a All sockets
-l Listening sockets
Else: connected sockets
-t TCP sockets
-u UDP sockets
-w Raw sockets
-x Unix sockets
Else: all socket types
-e Other/more information
-n Don't resolve names

wengi
17-10-2011, 09:53
Hi,

transmission is not running.

try "/opt/etc/init.d/rc.unslung start" and have a look with "netstat -ln".
If there is still no port 9091 try "/opt/etc/init.d/S90transmission-daemon start" and again have a look with netstat.

If transmission is still not running:
Verify the content of /opt/etc/init.d/S90transmission-daemon with my howto and make shure it is executable (chmod 750).
Have a look at /opt/var/log/syslog.log. Are there any errors on transmission?

wengi

tex
20-10-2011, 23:23
Thank's for your help but probably some scripts are corrupted and transmission in not running, i can't find also IPKG so i think that the best to do is to format the first 2 partitions and follow your tutorial again. I wouldn't want to loose all the files stored in the 3 partition so i will try to do everityng again without touching this partition...
Thank you

lau_swat
23-10-2011, 22:16
Hey guys,

Can someone please help with gcc for oleg WL500gpv2-1.9.2.7-10. I've been trying to find something but without success.

Thanks

LE: "ipkg install buildroot" solved the issue

tex
01-11-2011, 10:11
Hi Wengi. I've realized that the new firmware has changed the name of the disks and maybe this is the problem of the old configuration that is not working. When i upgraded the firmware i noticed that the shared disks where not any more disc_2 or disc_3 but thay changed in disca_2 and disca_3. Now, after formatting and partitioning (with ecaddict tutorial) the result of df is

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 4608 4608 0 100% /
devfs 14524 4 14520 0% /dev
tmpfs 14524 220 14304 2% /tmp
/dev/discs/disca/part3
479478560 32812 455471820 0% /tmp/mnt/disca_3
/dev/discs/disca/part2
987032 16412 921272 2% /tmp/mnt/disca_2

Looking at your tutorial in the scripts you refer to disc not to disca in edit of fstab and in other places

#device Mountpoint FStype Options Dump Pass#
/dev/discs/disc0/part1 none swap sw 0 0
/dev/discs/disc0/part2 /opt ext3 rw,noatime 1 1
/dev/discs/disc0/part3 /tmp/harddisk ext3 rw,noatime 1 1

..can be this the problem? Was the firmware to make this change or was my fault?

wpte
01-11-2011, 13:58
..can be this the problem? Was the firmware to make this change or was my fault?

rtn firmware with kernel 2.6 instead of kernel 2.4 uses disca, discb etc.
so no it's not your fault, but it's easy to change in fstab.

wengi
01-11-2011, 14:10
added this to the news.
Will update the tut later.

thanks for the hint

wengi

tex
02-11-2011, 11:43
Hi Wengi, i reconfigured everyting with this new information and transmission worked perfectly. After i tried to install Samba3 following this instructions
killall smbd nmbd
cd /opt/etc/samba && [ ! -f smb.conf.raas ] && cp smb.conf smb.conf.raas
ipkg remove samba2
ipkg install samba samba3-swat
sed -i 's/samba_active=0/samba_active=1/' /opt/etc/init.d/S08samba
cd /mnt && wget -O smb.tar.gz "http://wl500g.info/attachment.php?attachmentid=6455&d=1274467707" && cd / && tar -xvzf /mnt/smb.tar.gz
/opt/etc/init.d/S08samba start
/bin/ps | grep smbd
but now i cannot see the HD from the win PC connected to the router. But the important is that the previous error was solved! I'll do again the procedure avoidind the last step of samba 3 and living the origional samba from the router.

nfh
03-11-2011, 15:46
This thread makes everything seem very easy... thank you so much for sharing this tutorial!

I'm in the process of installing the Oleg firmware on my WL-500gP router. Nonetheless, I would like to make sure that I will be able to revert to the original Asus firmware anytime.

Can you please tell me if it is possible to move from Oleg to Original Asus firmware? And if so, which are the steps for that process?

tex
05-11-2011, 22:11
Wengi, sorry but you wrote :"you have to replace all occurances of "disc" with "disca" in this tutorial!!!!
The correct should be "disc0" with "disca"
Is what i've done and is working

Torrent is starting and working but i can't access to my HD from my PC. I try before with integrated samba (not working). After i followed your tutorial for IPKG samba but at the end i couldn't access to configuration port 901 from web interface. So i tryed to follow the Start samba with xinetd (changing disc0 with diska when nedeed) but at the end of "echo "/etc/smb.conf" >> /usr/local/.files && flashfs save && flashfs commit && flashfs enable" i get the following error tar: /etc/smb.conf: No such file or directory
tar: /etc/smb.conf: No such file or directory
tar: /etc/smb.conf: No such file or directory
tar: error exit delayed from previous errors
Can you please help me to fix this problems?
Thank you

wengi
10-11-2011, 08:06
Wengi, sorry but you wrote :"you have to replace all occurances of "disc" with "disca" in this tutorial!!!!
The correct should be "disc0" with "disca"
Ups :-(
Now it is disc0....

Regarding samba i have no idea at the moment. Sorry.
I can not test it because i do not have any asus routers any more...

wengi

tex
21-11-2011, 03:10
This thread makes everything seem very easy... thank you so much for sharing this tutorial!

I'm in the process of installing the Oleg firmware on my WL-500gP router. Nonetheless, I would like to make sure that I will be able to revert to the original Asus firmware anytime.

Can you please tell me if it is possible to move from Oleg to Original Asus firmware? And if so, which are the steps for that process?

You can easly go from Oleg firmware to the original one (download the file from the ASUS support page http://www.asus.com/Networks/Wireless_Routers/WL500g_Premium/#download) in the Firmware Update page of the Oleg web-page in system setup.

hgfdsa
24-11-2011, 13:35
Does anybody have the ZTE MF820 working?

I have the newest firmware from googlecode and it can find the modem perfectly.

I just can't get it to connect to the internet.

It's saying that the script has failed in the usb ppp log.

Can anybody give me an idea on where to fix it?

Thanks anyways for the nice piece of software and the nice forum. :)

dare023
24-11-2011, 17:00
My transmission-daemon stopped working after I updated firmware and ipkg.
It runs only with
/opt/etc/init.d/S90transmission-daemon start
after reboot,it does not start automatically.
I tried
flashfs save && flashfs commit && flashfs enable && reboot but got nothing.So far got no problems with this.
asus 500gp v2

wpte
24-11-2011, 21:46
flashfs save && flashfs commit && flashfs enable && reboot
has gone too far imho...
do you know what you do with this? you save the current state of the flashfs. My point is, you didn't change anything on your flashfs... you only updated your optware, on your harddrive.
So remember:

reboot
will do the trick just fine to restart your router:D


anyway, what version are you running?

ipkg list_installed | grep transmission
transmission 2.42-1 I think?
I'm not sure since when you've been using the setup of wengi... transmission has been updated to a whole new version since... like 2 years back or so.
which means: different configuration file.

what happens when you execute:

/opt/bin/transmission-daemon -fg /tmp/harddisk/transmission/config
where /tmp/harddisk/transmission/config is the configuration folder
it should give us some information on what transmission doesn't like:)

wengi
25-11-2011, 08:22
... stopped working after I updated firmware...Maybe this ist the disc0/disca problem.
Have al look at the news at first post.

wengi

dare023
25-11-2011, 09:48
ipkg list_installed | grep transmission
gives this

transmission - 2.42-1 - Lightweight BitTorrent client and daemon, with web interface bundled.

/opt/bin/transmission-daemon -fg /tmp/harddisk/transmission/config
gives this

[admin@WL-0022156817F1 root]$ /opt/bin/transmission-daemon -fg /tmp/harddisk/transmission/config
Transmission 2.42 (13013) http://www.transmissionbt.com/
A fast and easy BitTorrent client

transmission-daemon is a headless Transmission session
that can be controlled via transmission-remote
or the web interface.

Usage: transmission-daemon [options]

Options:
-h --help Display this help page and exit
-a --allowed <list> Allowed IP addresses. (Default:
127.0.0.1)
-b --blocklist Enable peer blocklists
-B --no-blocklist Disable peer blocklists
-c --watch-dir <directory> Where to watch for new .torrent files
-C --no-watch-dir Disable the watch-dir
--incomplete-dir <directory> Where to store new torrents until
they're complete
--no-incomplete-dir Don't store incomplete torrents in a
different location
-d --dump-settings Dump the settings and exit
-e --logfile <filename> Dump the log messages to this filename
-f --foreground Run in the foreground instead of
daemonizing
-g --config-dir <path> Where to look for configuration files
-p --port <port> RPC port (Default: 9091)
-t --auth Require authentication
-T --no-auth Don't require authentication
-u --username <username> Set username for authentication
-v --password <password> Set password for authentication
-V --version Show version number and exit
--log-error Show error messages
--log-info Show error and info messages
--log-debug Show error, info, and debug messages
-w --download-dir <path> Where to save downloaded data
--paused Pause all torrents on startup
-o --dht Enable distributed hash tables (DHT)
-O --no-dht Disable distributed hash tables (DHT)
-y --lpd Enable local peer discovery (LPD)
-Y --no-lpd Disable local peer discovery (LPD)
--utp Enable uTP for peer connections
--no-utp Disable uTP for peer connections
-P --peerport <port> Port for incoming peers (Default:
51413)
-m --portmap Enable portmapping via NAT-PMP or UPnP
-M --no-portmap Disable portmapping
-L --peerlimit-global <limit> Maximum overall number of peers
(Default: 240)
-l --peerlimit-torrent <limit> Maximum number of peers per torrent
(Default: 60)
-er --encryption-required Encrypt all peer connections
-ep --encryption-preferred Prefer encrypted peer connections
-et --encryption-tolerated Prefer unencrypted peer connections
-i --bind-address-ipv4 <ipv4 addr> Where to listen for peer connections
-I --bind-address-ipv6 <ipv6 addr> Where to listen for peer connections
-r --rpc-bind-address <ipv4 addr> Where to listen for RPC connections
-gsr --global-seedratio ratio All torrents, unless overridden by a
per-torrent setting, should seed until
a specific ratio
-GSR --no-global-seedratio All torrents, unless overridden by a
per-torrent setting, should seed
regardless of ratio
-x --pid-file <pid-file> Enable PID file



Maybe this ist the disc0/disca problem.
No,I changed that - here is my fstab

ce Mountpoint FStype Options Dump Pass#
/dev/discs/disca/part1 none swap sw 0 0
/dev/discs/disca/part2 /opt ext3 rw,noatime 1 1
/dev/discs/disca/part3 /tmp/harddisk ext3 rw,noatime 1 1

Allready tried reinstalling transmision,and still not working.

And I was udpating since install,but only ipkg,not a firmware.
As for rebooting,since reboot give me nothing ,tried this..
And something more,I there is no errors when starting daemon.

tex
25-11-2011, 13:55
Mod: please don't quote a giant piece of text from the previous post, thanks

Did you change also in the swap "mkswap /dev/discs/disc0/part1
swapon /dev/discs/disc0/part1" ???
If this is not the problem try to put everything like it was before upgrading the firmware (change again fstab to disc0) and then install this version of firmware 1.9.2.7-d-r2624 that uses kernel 2.4.
If this doesn't work i'll tell you how i fixed this problem!!

dare023
25-11-2011, 20:41
This shows that swap is activated?

[admin@WL-0022156817F1 root]$ free
total used free shared buffers cached
Mem: 29056 25232 3824 0 3048 9384
-/+ buffers/cache: 12800 16256
Swap: 4120632 0 4120632

Thank you for your help,can we try to solve this without flashing again?
Thanks in advance.

[admin@WL-0022156817F1 root]$ fdisk -l

Disk /dev/sda: 250.0 GB, 250059292672 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 513 4120641 82 Linux swap
/dev/sda2 514 638 1004062+ 83 Linux
/dev/sda3 639 30401 239071297+ 83 Linux



[admin@WL-0022156817F1 root]$ df -l
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 4608 4608 0 100% /
/dev/root 4608 4608 0 100% /
devfs 100 4 96 4% /dev
tmpfs 14528 212 14316 2% /tmp
/dev/discs/disca/part2
988244 362332 575712 39% /opt
/dev/discs/disca/part3
235320192 165736 223200892 1% /tmp/mnt/disca_3

tex
25-11-2011, 21:39
I've had your problem one month ago...after a firmware upgrade transmission was not working any more, i coudn't access to web page . Not only transmission was not running but also ipkg was not working and i supposed that something was corrupted in the opt disc. So i formatted everything and started again the wengi tutorial from the beginning (not working as well...). After i've noticed that was changed the name of the shared disc from disc0 to discA and WPTE said that the new firmware is based on Kernel 2.6 that changes the name of the disc. But at that point i had already formatted everything so i made again the tutorial changing all the parts with disc_0 to disc_a and all worked properly except the fact that i couldn't get samba working...i had transmission working, access to web page, loading torrent, but i coudn't access to the shared folder from my PC (i tried samba from firmware, samba 2 and samba 3...nothing worked). So my solution has been that of installing the firmware with kernel 2.4, factory reset, formatting the HD again with the difference of mounting the 3th partition on /mnt instead of /tmp/harddisk and installed the Headstart II following the tutorial posted in this forum...after that i prevent the start of unnecessary (for me) services from /opt/etc/init.d/ renaming them (that's why my wl500 gp has not enough memory to run all of them) and finally i have got my transmission working and samba working too. BUT i think that this solution is much complicated and came from my unexperience on linux systems. that's why i suggested you to flash again your firmware to the version with kernel 2.4 and change only fstab again from disc_a to disk_0, leaving all the other settings and scripts as they where before...hope this can help you and sorry for too long post!
P.S. The only thing i don't understand in your df -l is the last line. In my system the last line is this:

[admin@hd asus root]$ df -l
Filesystem Size Used Avail Use% Mounted on
rootfs 3.0M 3.0M 0 100% /
/dev/root 3.0M 3.0M 0 100% /
tmpfs 15M 164K 15M 2% /tmp
/dev/discs/disc0/part2
16G 381M 15G 3% /opt
/dev/discs/disc0/part3
443G 16G 428G 4% /mntOnly /mnt. I'm not sure if disca_3 is correct there, but people more expert then me can give you more information on that

dare023
27-11-2011, 20:51
Well,I found another solution.
I just placed

#!/bin/sh
chmod 755 /opt/etc/init.d/S90transmission-daemon
/opt/etc/init.d/S90transmission-daemon start
in

/usr/local/sbin/post-mount and executed

chmod +x /usr/local/sbin/*,just be shore.
Transmission works now!
I guess that first line with chmod 775 was not necessary,but I dont want to experiment more.
I placed in post-mount to be shore that transmission will pick up settings and whatever needs to work.
Now I got newest firmware and transmission working just as before.
Hope this will be useful for somebody else.
Thanks for helping people! :)

lau_swat
06-12-2011, 05:43
Hy guys,

Can you please help me with mount an iso file. My current filesystem is:

[admin@home_router root]$ df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 3.0M 3.0M 0 100% /
/dev/root 3.0M 3.0M 0 100% /
/dev/discs/disc0/part2
16G 500M 15G 4% /opt
/dev/discs/disc0/part3
263G 46G 218G 18% /tmp/mnt/disc0_3
/dev/discs/disc0/part2
16G 500M 15G 4% /mnt

I want to do mount in /mnt/disk, something like this:

mount -o loop=/dev/loop/0 -t iso9660 myiso.iso /mnt/disk

and I get

mount: Mounting /dev/loop/0 on /mnt/disk failed: No such device

What do you think?

trymyluck
07-10-2012, 21:43
Hi wengi,

I have upgraded my wl-500gp to 1.9.2.7-rtn-r4645 firmware and I found out some strange things/behavior on my router. Please, could you explain. (I'm not a supper user, so sorry ahead if my questions are stupid)

When I check my mountpoints I get the following:


$ df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 4608 4608 0 100% /
/dev/root 4608 4608 0 100% /
devfs 100 4 96 4% /dev
tmpfs 14544 476 14068 3% /tmp
/dev/discs/disca/part3
740096 330020 372480 47% /tmp/mnt/disca_3
/dev/discs/disca/part2
986136 146768 789272 16% /tmp/mnt/disca_2


But when I want to view my fstab I get:


$ cat /etc/fstab
cat: can't open '/etc/fstab': No such file or directory


What is wrong? does the new FW store the mount commands somewhere else?
What are devfs and tmpfs?

I have also noticed that I lost all me scripts from folder

/usr/local/sbin
But my dropbear runs after every reboot.
How come?

Should I start over with setting up my router? How it is done?

Thanks for your help and support

!gm
08-10-2012, 01:34
if you switched from d-branch or older oleg-FW you should create a new fstab (remember new mountpoints!).
Your /usr/local/sbin scripts are lost too ^ :(

dropbear and many other nice stuff is already included in FW - it can be disabled via WebIF, don't mind :)

in general, as you are now using a modern FW with recent kernel you should also switch from optware to entware

http://code.google.com/p/wl500g-repo/wiki/Goal

if you miss some packages (http://code.google.com/p/wl500g-repo/source/browse/ipkg/openwrt/Packages) just inform us here (http://wl500g.info/showthread.php?28778-Announce-New-EntWare-package-repository-for-1-9-2-7-rtn-firmware)


just rm -rf your /opt - but make backups of your conf-files as you may need them afterwards...

hf

btw. wengi is not using his wl500w anymore

trymyluck
08-10-2012, 15:08
if you switched from d-branch or older oleg-FW you should create a new fstab (remember new mountpoints!).
Your /usr/local/sbin scripts are lost too ^ :(

dropbear and many other nice stuff is already included in FW - it can be disabled via WebIF, don't mind :)

in general, as you are now using a modern FW with recent kernel you should also switch from optware to entware

http://code.google.com/p/wl500g-repo/wiki/Goal

if you miss some packages (http://code.google.com/p/wl500g-repo/source/browse/ipkg/openwrt/Packages) just inform us here (http://wl500g.info/showthread.php?28778-Announce-New-EntWare-package-repository-for-1-9-2-7-rtn-firmware)


just rm -rf your /opt - but make backups of your conf-files as you may need them afterwards...

hf

btw. wengi is not using his wl500w anymore

Hi !gm,

Thanks for your fast respond.
I'm still not so sure about one thing - How come my flashdisk gets mounted after reboot when my fstab is empty? How does the new FW do this trick? :-)

Thanks,
Tarik

lly
08-10-2012, 17:17
I'm still not so sure about one thing - How come my flashdisk gets mounted after reboot when my fstab is empty? How does the new FW do this trick? :-)

I'm sure you have to read this forum carefully.
First of all - it is possible to backup flashfs (of course, before firmware upgrade). Second, automount under /tmp/ works for years.

Moreover, fstab for 2.4 & 2.6 slightly differs.

DRaGoM
16-10-2012, 21:01
Hi,
I had 1.9.2.7-10 installed and today I've decided to update to 1.9.2.7-rtn-r4667. When my router restarted it didn't mount my pen drive as usually in /opt.
I didn't remember how I configured my router to auto mount it so I followed this tutorial but it is not working. I don't think my startup scripts are being called because it doesn't mount swap and /opt but I can do it manually.
Sorry my bad english

Cumps!

!gm
16-10-2012, 22:46
please read, what we posted above

DRaGoM
16-10-2012, 23:04
sorry, it was a stupid error.. I forgot replacing a "disc0" with "disca" in fstab...

But now I'm having a new problem... here is the log:


Jan 1 00:00:20 e2fsck: /dev/discs/disca/part3:
Jan 1 00:00:20 e2fsck: The superblock could not be read or does not describe a correct ext2
Jan 1 00:00:20 e2fsck: filesystem. If the device is valid and it really contains an ext2
Jan 1 00:00:20 e2fsck: filesystem (and not swap or ufs or something else), then the superblock
Jan 1 00:00:20 e2fsck: is corrupt, and you might try running e2fsck with an alternate superblock:
Jan 1 00:00:20 e2fsck: e2fsck -b 8193 <device>

fstab:


#device Mountpoint FStype Options Dump Pass#
/dev/discs/disca/part1 none swap sw 0 0
/dev/discs/disca/part2 /opt ext3 rw,noatime 1 1
/dev/discs/disca/part3 /mnt ext3 rw,noatime 1 1


df:

Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 4480 4480 0 100% /
/dev/root 4480 4480 0 100% /
devfs 100 4 96 4% /dev
tmpfs 14540 156 14384 1% /tmp
/dev/discs/disca/part2
985700 17648 917980 2% /opt


fdisk -l:

Disk /dev/sda: 2097 MB, 2097152000 bytes
65 heads, 62 sectors/track, 1016 cylinders
Units = cylinders of 4030 * 512 = 2063360 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 249 501704 82 Linux swap
/dev/sda2 250 746 1001455 83 Linux
/dev/sda3 747 1016 544050 83 Linux


I've tried this http://linuxexpresso.wordpress.com/2010/03/31/repair-a-broken-ext4-superblock-in-ubuntu/ but it didn't work

Thanks, cumps

!gm
17-10-2012, 15:29
run

mke2fs -n /dev/discs/disca/part3

and use one of the superblocks in


e2fsck -b [superblock-here] /dev/discs/disca/part3

The e2fsck will run a long time on the router. I suggest you repair the filesystem on an other machine, by attaching the pen-drive there. The procedure is the same, but the device number may differ as you may have connected several pen-drives.

good luck
gm

gagauta
22-02-2013, 22:24
hi,

i have installed the latest firmware for wl500gp

i know about changes with disca

but i have a issue with opening a port

with vi I edit /usr/local/sbin/post-firewall and insert

iptables -I INPUT -m tcp -p tcp --dport 9091 -j ACCEPT

save in vi

flashfs save && flashfs commit && flashfs enable && reboot

after reboot I check open port with canyouseeme.org and receive error

what I do wrong?
please advise

10x