root@OpenWrt:~# e2fsck -p
Usage: e2fsck [-panyrcdfvstDFSV] [-b superblock] [-B blocksize]
                [-I inode_buffer_blocks] [-P process_inode_size]
                [-l|-L bad_blocks_file] [-C fd] [-j external_journal]
                [-E extended-options] device

Emergency help:
-p                   Automatic repair (no questions)
-n                   Make no changes to the filesystem
-y                   Assume "yes" to all questions
-c                   Check for bad blocks and add them to the badblock list
-f                   Force checking even if filesystem is marked clean
-v                   Be verbose
-b superblock        Use alternative superblock
-B blocksize         Force blocksize when looking for superblock
-j external_journal  Set location of the external journal
-l bad_blocks_file   Add to badblocks list
-L bad_blocks_file   Set badblocks list

chyba nie kumam,

czy to normalne ze nie mam /etc/fstab ?

na dysku wazne dane ....

root@OpenWrt:~# logread
ron.notice crond[443]: USER root pid 1931 cmd /usr/sbin/getdownload.sh
Jan  1 15:55:01 (none) cron.notice crond[443]: USER root pid 1939 cmd /usr/sbin/getdownload.sh
Jan  1 16:00:01 (none) cron.notice crond[443]: USER root pid 1947 cmd /usr/sbin/getdownload.sh
Jan  1 16:05:01 (none) cron.notice crond[443]: USER root pid 1955 cmd /usr/sbin/getdownload.sh
.
.
.
.
Jan  1 23:00:01 (none) cron.notice crond[443]: USER root pid 2619 cmd /usr/sbin/getdownload.sh
Jan  1 23:05:01 (none) cron.notice crond[443]: USER root pid 2627 cmd /usr/sbin/getdownload.sh
Jan  1 23:10:01 (none) cron.notice crond[443]: USER root pid 2635 cmd /usr/sbin/getdownload.sh
Jan  1 23:15:01 (none) cron.notice crond[443]: USER root pid 2643 cmd /usr/sbin/getdownload.sh
Jan  1 23:15:24 (none) daemon.info dnsmasq[488]: DHCPDISCOVER(br-lan) 192.168.1.201 00:16:6f:bc:f1:91
Jan  1 23:15:24 (none) daemon.info dnsmasq[488]: DHCPOFFER(br-lan) 192.168.1.201 00:16:6f:bc:f1:91
Jan  1 23:15:24 (none) daemon.info dnsmasq[488]: DHCPREQUEST(br-lan) 192.168.1.201 00:16:6f:bc:f1:91
Jan  1 23:15:24 (none) daemon.info dnsmasq[488]: DHCPACK(br-lan) 192.168.1.201 00:16:6f:bc:f1:91 laptopiza
Jan  1 23:20:01 (none) cron.notice crond[443]: USER root pid 2651 cmd /usr/sbin/getdownload.sh
Jan  1 23:23:55 (none) authpriv.info dropbear[2659]: Child connection from 192.168.1.201:1111
Jan  1 23:24:01 (none) authpriv.notice dropbear[2659]: password auth succeeded for 'root' from 192.168.1.201:1111


czy są jakies narzedzia diagnostyczne do dysku pod openwrt?

ok swap sie mountuje ale partycja z danymi nie sad ,

root@OpenWrt:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
none                     15256        32     15224   0% /tmp
/dev/mtdblock/4           6016      2260      3756  38% /jffs
mini_fo:/jffs             1344      1344         0 100% /

root@OpenWrt:~# free
              total         used         free       shared      buffers
  Mem:        30512        11760        18752            0         1032
Swap:       497972            0       497972
Total:       528484        11760       516724

root@OpenWrt:~# mount -t ext2 /dev/discs/disc0/part2 /hdd
mount: mounting /dev/discs/disc0/part2 on /hdd failed

z fdisk wyglada to tak:

Disk /dev/scsi/host0/bus0/target0/lun0/disc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

                                 Device Boot      Start         End      Blocks   Id  System
/dev/scsi/host0/bus0/target0/lun0/part1               1          62      497983+  82  Linux swap / Solaris
/dev/scsi/host0/bus0/target0/lun0/part2              63        9729    77650177+  83  Linux


jak sprawdzic czy mam ext2 czy ext3, nie pamiętam co zakładałem ale sprawdzałem dla obu i nie mountuje.

witam,

jak w temacie, jakos nie zaglądałem do niego przez dłuższy czas aż jednego dnia zapragnołem plików z tamtąd szukam po sambie a tu echo. Kable ok, dysk sprawdzałem jest ok.

tak wygląda wynik 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.34 (travis@localhost.localdomain) (gcc version 3.4.6 (OpenWrt-2.0)) #50 Tue Mar 4 00:19:14 CST 2008
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,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
CPU: BCM4704 rev 9 at 264 MHz
Using 132.000 MHz high precision timer.
Calibrating delay loop... 262.96 BogoMIPS
Memory: 30432k/32768k available (1462k kernel code, 2336k reserved, 100k data, 80k 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
Registering mini_fo version $Id$
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
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
b44.c:v0.93 (Mar, 2004)
PCI: Setting latency timer of device 00:01.0 to 64
eth0: Broadcom 47xx 10/100BaseT Ethernet 00:1d:60:e7:42:82
PCI: Setting latency timer of device 00:02.0 to 64
eth1: Broadcom 47xx 10/100BaseT Ethernet 40:10:18:00:00:2d
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
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
Flash device: 0x800000 at 0x1c000000
bootloader size: 262144
Physically mapped flash: Filesystem type: squashfs, size=0x1470d1
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "cfe"
0x00040000-0x007f0000 : "linux"
0x000be400-0x00210000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
0x007f0000-0x00800000 : "nvram"
0x00210000-0x007f0000 : "rootfs_data"
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 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
ip_conntrack version 2.1 (5953 buckets, 5953 max) - 360 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
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: 80k freed
Algorithmics/MIPS FPU Emulator v1.5
diag: Detected 'ASUS WL-500g Premium'
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
Probing device eth0: found!
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
jffs2.bbc: SIZE compression mode activated.
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
device eth0.0 entered promiscuous mode
eth0.0: dev_set_promiscuity(master, 1)
device eth0 entered promiscuous mode
br-lan: port 1(eth0.0) entering learning state
br-lan: port 1(eth0.0) entering forwarding state
br-lan: topology change detected, propagating
BFL_ENETADM not set in boardflags. Use force=1 to ignore.
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
eth0.1: add 01:00:5e:00:00:01 mcast address to master interface
PCI: Setting latency timer of device 01:02.0 to 64
PCI: Enabling device 01:02.0 (0004 -> 0006)
wl0: Broadcom BCM4318 802.11 Wireless Controller 4.80.53.0
Journalled Block Device driver loaded
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
uhci.c: USB Universal Host Controller Interface driver v1.1
PCI: Enabling device 01:03.0 (0000 -> 0001)
uhci.c: USB UHCI at I/O 0x100, IRQ 2
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.c: USB UHCI at I/O 0x120, IRQ 2
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: $Revision: 1.275 $ time 08:59:24 Jan  9 2008
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
usb.c: registered new driver usblp
printer.c: v0.13: USB Printer Device Class driver
SCSI subsystem driver Revision: 1.00
hub.c: new USB device 01:03.0-2, assigned address 2
usb.c: USB device 2 (vend/prod 0x152d/0x2338) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: WDC WD80  Model:      WD-WCAM9F07  Rev: 05.0
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
Partition check:
/dev/scsi/host0/bus0/target0/lun0: p1 p2
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
device wl0 entered promiscuous mode
wl0: attempt to add interface with same source address.
br-lan: port 2(wl0) entering learning state
br-lan: port 2(wl0) entering forwarding state
br-lan: topology change detected, propagating
Adding Swap: 497972k swap-space (priority -1)

jak ma kto chwile bede wdzięczny za help

30

(6 odpowiedzi, napisanych Oprogramowanie / Software)

a jestes wpięty w port LAN czy WAN? pusc pinga na 192.168.1.1 i zobaczy czy odbija?

31

(13 odpowiedzi, napisanych Oprogramowanie / Software)

kolejne glupie pytanie, jak odpalic crona na kamikaze ? pisze gdzies ze jest to niby do zrobienia przez x-wrt.

nie wiem tez czy to jest problem z samym cronem, wyglada to tak
root@OpenWrt:~# killall crond; /etc/init.d/S60cron start
killall: crond: no process killed
-ash: /etc/init.d/S60cron: not found

potrzebuje to do dzialania ctorrent
robie to w/g tego http://eko.one.pl/index.php?page=openwrt-torrent

32

(13 odpowiedzi, napisanych Oprogramowanie / Software)

dzięki Cezary za pomoc faktycznie na tym od whiterusiana zadzialalo.
Jednak postanowiłem isc za ciosem i zainstalowalem kamikaze - swoja droga to ile jest tych drinkow jeszcze?

33

(13 odpowiedzi, napisanych Oprogramowanie / Software)

dzięki to wiele tłumaczy smile

natomiast ten link co podałes tyczy sie chyba kamikaze -
"17.10.2007 - Wersja ctorrent przeznaczona dla Whiterussian została usunięta. ZAINSTALUJ KAMIKAZE!"

prawie jestem gotowy do zainstalowanie kamikaze bo tam ponoc da sie skaner sieciowo odpalic i z tego co czytam to raczej to środowisko bedzie sie rozwijac

wielkie dzieki za pomoc

34

(13 odpowiedzi, napisanych Oprogramowanie / Software)

+ PARAM=-D 150 -U 5 -C 16 -e 0 -p 2106 -T
+ ROOT=/mnt/disc0_2/hdd/samba/downloads
+ uci get network.wan.ifname
/usr/sbin/getdownload.sh: 8: uci: not found
+ WAN=
+ /sbin/ifconfig
+ awk -F[: ]+ /inet/ { print $4 }
+ WAN_IP=192.168.1.1
127.0.0.1
79.188.210.70
+ [ -n 192.168.1.1
127.0.0.1
79.188.210.70 ]
+ PARAM=-D 150 -U 5 -C 16 -e 0 -p 2106 -T -i 192.168.1.1
127.0.0.1
79.188.210.70
+ DONE=/mnt/disc0_2/hdd/samba/downloads/done
+ ZN=/tmp/.torrent
+ cd /mnt/disc0_2/hdd/samba/downloads
cd: 17: can't cd to /mnt/disc0_2/hdd/samba/downloads
+ ls ./*.torrent
+ [  !=  ]
+ exit 0

35

(13 odpowiedzi, napisanych Oprogramowanie / Software)

wszystkie logi sa puste, juz tam zaglądałem sad , nie wiem czy to nie dopisywanie do crona nie zworzy tych plikow.

czy jak wpisze polecenie ps to ten proces (getdownload.sh) ma byc tam jakos widoczny?

36

(13 odpowiedzi, napisanych Oprogramowanie / Software)

witam,

Mój login świadczy o mnie.
Mój problem to asus WL 500Gp + whiterussian 0.9 + ctorrent
- oki, zainstalowalem sobie openwrt na moim ruterku - dziala za pierwszym razem - bylem dumny - potem doszedlem do wniosku ze to bylo najlatwiejsze. potem podlaczalem hdd na zewnetrznej kieszeni - doba - ale zrobilem, potem drukaka poszlo swietnie, potem druga drukarka - druga doba - ale dziala, potem ctorrent - lipa nie dziala tongue - zrobilem tak jak pisza na http://openwrt.livenet.pl/doku.php/soft … bittorrent - nie dziala, lub moja wiedza jak moj login jest zielona.
tak wyglada getdownload.sh

#!/bin/sh

PARAM="-D 150 -U 5 -C 16 -e 0 -p 2106 -T"
ROOT=/mnt/disc0_2/samba/downloads



WAN=$(uci get network.wan.ifname)
WAN_IP=`/sbin/ifconfig $WAN | awk -F"[: ]+" '/inet/ { print $4 }'`
if [ -n "$WAN_IP" ]; then
  PARAM="$PARAM -i $WAN_IP"
fi

DONE=$ROOT/done
ZN=/tmp/.torrent

cd $ROOT
if [ "`ls ./*.torrent 2>/dev/null`" != '' ]; then
  [ -d $ZN ] || mkdir -p $ZN
  [ -d $DONE ] || mkdir -p $DONE

  for i in ./*.torrent; do
    F="`basename "$i"`"
    if [ ! -f $ZN/"$F" ]; then
      touch $ZN/"$F"
      (ctorrent $PARAM -X "mv \"&d\" $DONE" "$F" > "$F".log 2>/dev/null && mv "$F" $DONE && mv "$F".log $DONE; rm $ZN/"$F") &
    fi
  done
fi
exit 0


kopiuje pliki torrent do naszego katalogu download po jakiejs chwili pojawia sie tam plik *.log do kazdego torrenta a sciaganie nie rusza
- pytanie - czy mam uruchamiac po skopiowaniu torrentów ctorrenta czy on juz sam poprzez skrypt zostanie uruchomiony?

prosze o podpowiedz
pewnie wielu z was sie bedzie śmiało ale dumnie zniose wszystko