Temat: pomocy, dysk działał a teraz nie działa

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

2

Odp: pomocy, dysk działał a teraz nie działa

Jest. Żyje i ma się dobrze, bo swap się nawet podłączył.

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

3 (edytowany przez zielony 2008-11-24 01:24:24)

Odp: pomocy, dysk działał a teraz nie działa

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.

4

Odp: pomocy, dysk działał a teraz nie działa

Jeszcze logread zobacz, pownie powie o co mu chodzi.

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

5 (edytowany przez zielony 2008-11-24 23:46:12)

Odp: pomocy, dysk działał a teraz nie działa

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?

6

Odp: pomocy, dysk działał a teraz nie działa

Zobacz fsck.ext2, może system plików po prostu poleciał. A jak nic tam nie masz - format zrób.

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

7 (edytowany przez zielony 2008-11-25 00:09:57)

Odp: pomocy, dysk działał a teraz nie działa

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 ....

8

Odp: pomocy, dysk działał a teraz nie działa

e2fsck /dev/discs/disc0/part2

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

9

Odp: pomocy, dysk działał a teraz nie działa

root@OpenWrt:/# e2fsck /dev/discs/disc0/part2
e2fsck 1.39 (29-May-2006)
Couldn't find ext2 superblock, trying backup blocks...
/dev/discs/disc0/part2 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes


and wait smile

cos sie pewnei z dyskiem dzieje, a ggdzie jest fstab ?

10

Odp: pomocy, dysk działał a teraz nie działa

Nie znalazł pierwszego superbloku == wywalił się system plików. Jeżeli e2fs przeszedł (a moze to dlugo robić) to system powinien być sprawny i dać się zamontować.

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

11

Odp: pomocy, dysk działał a teraz nie działa

wsjo juz dziala faktycznie e2fs poradzil Dzięki za pomoc !!!

12

Odp: pomocy, dysk działał a teraz nie działa

super

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