Restore a corrupted HD

WARNING

Please note that this will delete everything on your disk.

Restore procedure

1. Restore default configuration. Push/hold (5 Seconds) reset switch and power on the MSS unit.

2. Connect MSS to a Window$ PC by a RJ45 cable.

3. Go to a command prompt

4. Assign a static IP on your PC in the subnet 192.168.1.XX with a netmask 255.255.255.0 and a GW 192.168.1.1 (ex:192.168.1.2)

5. Ping MSS unit

C:\mssload\>ping 192.168.1.1

Envoi d’une requête ‘ping’ sur 192.168.1.1 avec 32 octets de données :

 Réponse de 192.168.1.1 : octets=32 temps=2 ms TTL=64
 Réponse de 192.168.1.1 : octets=32 temps<1ms TTL=64
 Réponse de 192.168.1.1 : octets=32 temps<1ms TTL=64
 Réponse de 192.168.1.1 : octets=32 temps<1ms TTL=64

 Statistiques Ping pour 192.168.1.1:
 Paquets : envoyés = 4, reçus = 4, perdus = 0 (perte 0%),
 Durée approximative des boucles en millisecondes :
 Minimum = 0ms, Maximum = 2ms, Moyenne = 0ms

3. check ARP entry.

You must see the MAC addr of your MSS unit, if not, add a static Arp entry in PC with ip and MAC addr of MSS

c:\mssload\arp -s 192.168.1.1 00–10–75-xx-xx-xx 00–10–75-xx-xx-xx mac addr of your MSS. 192.168.1.1 is ip of MSS (configured by lan_ipaddr variable in nvram )

4. On PC execute nasload c:\mssload\nasload /f <name of fw> /P /u admin

Attempting to download firmware to local subnet. Use control-c to exit. 2 Remote machine MSS-000000 (at address 192.168.1.1) has requested a firmware download. Do you wish to download new firmware? [y/n]:y Downloading mss_v_1_2_2.bin… Transfer to MSS-000000 successful.

6. Wait until the MSS unit LED becomes green

7. Done.

Console output of MSS

Waiting for GPIO 0 to toggle...
GPIO 0 has toggled, continuing.
Reset GPIO (7) asserted; will restore default configuration.

CFE version 1.2.11 for BCM94780 (32bit,SP,LE)
Build Date: Mon Jan 17 22:33:44 PST 2005 (builder@nlab-sv1-builder)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena.
Initializing Devices.
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.60.13.0
CPU type 0x29006: 264MHz
Total memory: 0x2000000 bytes (32MB)

Total memory used by CFE: 0x80300000 - 0x80442910 (1321232)
Initialized Data: 0x8033CD30 - 0x8033F560 (10288)
BSS Area: 0x8033F560 - 0x80340910 (5040)
Local Heap: 0x80340910 - 0x80440910 (1048576)
Stack Area: 0x80440910 - 0x80442910 (8192)
Text (code) segment: 0x80300000 - 0x8033CD30 (249136)
Boot area (physical): 0x00443000 - 0x00483000
Relocation Factor: I:00000000 - D:00000000

Device eth0: hwaddr 00-10-75-xx-xx-xx, ipaddr 192.168.1.1, mask 255.255.255.0
gateway not set, nameserver not set
Committing NVRAM...done

Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: .. 2658304 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000
CPU revision is: 00029006
Primary instruction cache 16kb, linesize 16 bytes (2 ways)
Primary data cache 16kb, linesize 16 bytes (2 ways)
Linux version 2.4.20 (root@localhost.localdomain) (gcc version 3.0 20010422 (prerelease) with bcm4710a0 modifications) #2 Wed
May 18 18:24:32 PDT 2005
BCM47XX ChipID = 0x4704, RevisionID = 8, Options = 0x2
Setting GPIO 6 to output of 1.
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 noinitrd console=ttyS0,115200
CPU: BCM4704 rev 8 at 264 MHz
Calibrating delay loop... 263.78 BogoMIPS
Memory: 29532k/32768k available (2358k kernel code, 3236k reserved, 132k data, 84k 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: Fixing up bus 0
PCI: Fixing up bridge
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
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
NTFS driver v1.1.22 [Flags: R/O]
i2c-core.o: i2c core module
i2c-dev.o: i2c /dev entries driver module
i2c-core.o: driver i2c-dev dummy driver registered.
i2c-algo-bit.o: i2c bit algorithm module
i2c-proc.o version 2.6.1 (20010825)
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-0Cool with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0xb8000300 (irq = 3) is a 16550A
ttyS01 at 0xb8000400 (irq = 0) is a 16550A
Generic MIPS RTC Driver v1.0
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
AEC6265R: IDE controller on PCI bus 01 dev 10
PCI: Enabling device 01:02.0 (0000 -> 0001)
AEC6265R: chipset revision 7
AEC6265R: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
AEC6265R: ROM disabled at 0x00000000
Enabling AEC GPO for HD power.
ide2: BM-DMA at 0x0120-0x0127, BIOS settings: hde:pio, hdf:pio
ide3: BM-DMA at 0x0128-0x012f, BIOS settings: hdg:pio, hdh:pio
hdf: HDS728080PLAT20, ATA DISK drive
ide2 at 0x100-0x107,0x10a on irq 2
blk: queue 802b95c8, I/O limit 4095Mb (mask 0xffffffff)
hdf: 160836480 sectors (82348 MB) w/1719KiB Cache, CHS=10011/255/63, (U)DMA
Partition check:
/dev/ide/host2/bus0/target1/lun0: p1 p2 p3
PPP generic driver version 2.4.2
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Amd/Fujitsu Extended Query Table v1.0 at 0x0040
number of CFI chips: 1
Flash device: 0x200000 at 0x1c000000
Physically mapped flash: cramfs filesystem found at block 1380
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "cfe"
0x00040000-0x001e0000 : "linux"
0x00159348-0x001e0000 : "rootfs"
0x001e0000-0x001f0000 : "nvramcopy"
0x001f0000-0x00200000 : "nvram"
sflash: found no supported devices
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Enabling device 01:03.2 (0000 -> 0002)
ehci_hcd 01:03.2: PCI device 1106:3104
ehci_hcd 01:03.2: irq 2, pci mem c000f000
usb.c: new USB bus registered, assigned bus number 1
ECHI PCI device 31041106 found.
ECHI reg 0x49 = 80233220
ECHI reg 0x49 changed to = 80233200
ECHI reg 0x4b = 80233209
ECHI reg 0x4b changed to = 80233229
PCI: 01:03.2 PCI cache line size set incorrectly (0 bytes) by BIOS/FW, correcting to 32
ehci_hcd 01:03.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 4 ports detected
host/usb-uhci.c: $Revision: 1.275 $ time 18:24:40 May 18 2005
host/usb-uhci.c: High bandwidth mode enabled
PCI: Enabling device 01:03.0 (0000 -> 0001)
ECHI PCI device 30381106 found.
UCHI reg 0x41 = 10
UCHI reg 0x41 changed to = 0
host/usb-uhci.c: USB UHCI at I/O 0x140, IRQ 2
host/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
PCI: Enabling device 01:03.1 (0000 -> 0001)
ECHI PCI device 30381106 found.
UCHI reg 0x41 = 10
UCHI reg 0x41 changed to = 0
host/usb-uhci.c: USB UHCI at I/O 0x160, IRQ 2
host/usb-uhci.c: Detected 2 ports
hub.c: port 3 over-current change
usb.c: new USB bus registered, assigned bus number 3
hub.c: port 4 over-current change
hub.c: USB hub found
hub.c: 2 ports detected
host/usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
host/usb-ohci.c: USB OHCI at membase 0xb8003000, IRQ 6
host/usb-ohci.c: usb-00:03.0, PCI device 14e4:4715
usb.c: new USB bus registered, assigned bus number 4
hub.c: USB hub found
hub.c: 2 ports detected
usb.c: registered new driver usblp
printer.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
md: linear personality registered as nr 1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Skipping autodetection of RAID arrays.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
VFS: Mounted root (cramfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 84k freed
Algorithmics/MIPS FPU Emulator v1.5

pivot_rc starting...
pivot_rc proceeding to boot from disk...
ERROR(a):mount_pivot_point failed to mount location : /dev/ide/host2/bus0/target0/lun0/part2...
ERROR(b):mount_pivot_point error : No such file or directory...
pivot_rc boot loop error for location 0...
ERROR(a):mount_pivot_point failed to mount location : /dev/ide/host2/bus0/target0/lun0/part1...
ERROR(b):mount_pivot_point error : No such file or directory...
pivot_rc boot loop error for location 1...
pivot_rc did not boot -> hang wait for network loading...
Using /lib/modules/2.4.20/kernel/drivers/net/et/et.o
Symbol version prefix ''
Warning: loading /lib/modules/2.4.20/kernel/drivers/net/et/et.o will taint the kernel: no license
See http://www.tux.org/lkml/#export-tainted for informationeth0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.60.13.0
about tainted modules
Module et loaded, with warnings
eth0: No such process
eth1: No such device

Waiting for new image on IP 192.168.1.1.
Waiting for announcement from download server...
Found download server at IP 192.168.1.2
Identifying self and waiting for download server authorization request...
Waiting for download server authorization...
Received download server authorization.
Claiming `/dev/ide/host2/bus0/target1/lun0/disc' as `SYSTEM'.
Download successful.

pivot_rc complete -> calling /sbin/init...

Using /lib/modules/2.4.20/kernel/arch/mips/brcm-boards/bcm947xx/bcmserbus.o
Using /lib/modules/2.4.20/kernel/drivers/i2c/bcm2wire.o
i2c-dev.o: Registered 'Broadcom 2-wire serial bus' as minor 0
i2c-core.o: adapter Broadcom 2-wire serial bus registered as adapter 0.
Using /lib/modules/2.4.20/kernel/arch/mips/brcm-boards/bcm947xx/bcmrtcst4181.o
i2c-core.o: driver STM41T81 registered.
i2c-core.o: client [STM41T81] registered to adapter [Broadcom 2-wire serial bus](pos. 0).
Using /lib/modules/2.4.20/kernel/arch/mips/brcm-boards/bcm947xx/bcmlm63.o
bcmlm63.o version 2.6.5 (20020915)
i2c-core.o: driver LM63 sensor driver registered.
Using /lib/modules/2.4.20/kernel/drivers/net/et/et.o
insmod: A module named et already exists
Using /lib/modules/2.4.20/kernel/drivers/scsi/frodo/frodo.o
insmod: init_module: frodo: Device or resource busy
Using /lib/modules/2.4.20/kernel/arch/mips/brcm-boards/bcm947xx/bcmgpio.o
Using /lib/modules/2.4.20/security/sec.o
BCM582x driver v1.84:
 ubSec: enabling Interrupt.
BCM582x: Selftest flag not set. Not doing Selftest
BCM582x: 4708: part number 00000000

Using /lib/modules/2.4.20/kernel/drivers/se/bcm_se.o
Loading Broadcom streaming encryption device module...
SE driver version 1.0, maximum 256 SE devices
Checking to see that USB initialization is done...
Turning on swapping...
/dev/ide/host2/bus0/target1/lun0: p1 p2 p63handling MD device /dev/md/0
analyzing super-block
disk 1: /dev/null, failed
disk 2: /dev/nul<6>md: bind
l, failed
disk md: nonpersistent superblock ...
3: /dev/null, famd: ide/host2/bus0/target1/lun0/part63's event counter: 00000000
iled
disk 4: /dmd: md0: raid array is not clean -- starting background reconstruction
md: RAID level 1 does not need chunksize! Continuing anyway.

disk 5: /dev/numd0: max total readahead window set to 124k
ll, failed
diskmd0: 1 data-disks, max readahead per data-disk: 124k
6: /dev/null, fraid1: device ide/host2/bus0/target1/lun0/part63 operational as mirror 0
ailed
disk 7: /raid1: md0, not all disks are operational -- trying to recover array
dev/null, failedraid1: raid set md0 active with 1 out of 8 mirrors

md: recovery thread got woken up ...
md0: no spare disk to reconstruct array! -- continuing in degraded mode
md: recovery thread finished ...
Setting up swapspace version 1, size = 511995904 bytes
Adding Swap: 499992k swap-space (priority -1)
New Disk Handling: Creating new pool `mss-hdd' of size 159803696 blocks on newly discovered disk `SYSTEM'.
/dev/ide/host2/bus0/target1/lun0: p1 p2 p3 p63handling MD devi<6>md: bind
ce /dev/md/1
anmd: nonpersistent superblock ...
alyzing super-blmd: ide/host2/bus0/target1/lun0/part3's event counter: 00000000
ock
md1: max total readahead window set to 124k
md1: 1 data-disks, max readahead per data-disk: 124k
handling MD devimd: bind
ce /dev/md/2
anmd: md/1's event counter: 00000000
alyzing super-blmd: md2: raid array is not clean -- starting background reconstruction
ock
disk 0: /demd: RAID level 1 does not need chunksize! Continuing anyway.
v/md/1, 79901848md2: max total readahead window set to 124k
kB, raid superblmd2: 1 data-disks, max readahead per data-disk: 124k
ock at 79901760kraid1: device md/1 operational as mirror 0
B
raid1: raid set md2 active with 1 out of 1 mirrors
md: updating md2 RAID superblock on device
md: md/1 [events: 00000001]<6>(write) md/1's sb offset: 79901760
mkreiserfs 3.6.11 (2003 www.namesys.com)

A pair of credits:
Alexander Lyamin keeps our hardware running, and was very generous to our
project in many little ways.

Yury Umanets (aka Umka) developed libreiser4, userspace plugins, and all
userspace tools (reiser4progs) except of fsck.

Mounting /dev/se/2 on /shares/mss-hdd.
reiserfs: checking transaction log (device fe:02) ...
Using r5 hash to sort names
reiserfs: Created .reiserfs_priv on se(254,2) - reserved for xattr storage.
ReiserFS version 3.6.25
New Disk Handling: Creating new share `Public' in new pool `mss-hdd' on newly discovered disk `SYSTEM'.
New Disk Handling: Finished creating new share `Public' in new pool `mss-hdd' on newly discovered disk `SYSTEM'.
Hit enter to short-circuit regular system start-up...Restoring defaults...done
No SATA controller found.
eth0: No such process
eth1: No such device
info, udhcp client (v0.9.Cool started
killall: udhcpd: no process killed
debug, Sending discover...
killall: udhcpd: no process killed
info, udhcp server (v0.9.Cool started
error, SIOCGIFADDR failed, is the interface up and configured?: No such device
killall: dnsmasq: no process killed
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
connect: Invalid argument
debug, Sending discover...
httpd pid is 95.
info, udhcp server (v0.9.Cool started
error, SIOCGIFADDR failed, is the interface up and configured?: No such device
No interface specified. Quitting...
sensord pid is 0.
eth0: No such process
eth1: No such device
killall: udhcpd: no process killed
killall: udhcpd: no process killed
info, udhcp server (v0.9.Cool started
error, SIOCGIFADDR failed, is the interface up and configured?: No such device
killall: dnsmasq: no process killed
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
iptables who? (do you need to insmod?)
Deleting user note pool_mss-hdd_unmounted.
Failed trying to open `/shares/mss-hdd/__share_Public_vars.txt': No such file or directory
debug, Sending discover...
Maxtor HNS initialization
[: netwebhooks: unknown operand
Creating guest user account...
pdb_getsampwnam: TDB passwd (/shares/mss-hdd/__pdc/passdb.tdb) did not exist. File successfully created.

Done.
Turning Public into default public share...
Failed trying to open `/shares/mss-hdd/__share_Public_vars.txt': No such file or directory
Failed trying to open `/shares/mss-hdd/__share_Public_vars.txt': No such file or directory
Failed trying to open `/shares/mss-hdd/__share_Public_vars.txt': No such file or directory

Done.
Enabling printing services...

Done.
Starting restore...
Done.
Starting fan control script...
Done.
Starting Inet daemon...
Done.
Starting Discovery daemon...
Can't open device /dev/ide/host2/bus0/target0/lun0/disc
4765Done.
LEDs stuff...
Done.
Starting E'net link script...
Done.
Hit enter to continue...rc updating CIFS for share changes.
Deleting user note pool_mss-hdd_unmounted.
Deleting user note pool_mss-hdd_unmounted.
rc restarting CIFS.
killall: smbd: no process killed
killall: nmbd: no process killed
killall: smbd: no process killed
killall: nmbd: no process killed
Deleting user note pool_mss-hdd_unmounted.
Deleting user note pool_mss-hdd_unmounted.
Deleting user note pool_mss-hdd_unmounted.
eth0: Link up.
debug, Sending discover...
debug, Sending discover...
debug, Sending discover...

BusyBox v1.00-pre2 (2005.05.19-01:13+0000) Built-in shell (msh)
Enter 'help' for a list of built-in commands.

#
# mount
/dev/ide/host2/bus0/target1/lun0/part2 on / type cramfs (rw)
/dev on /dev type devfs (rw)
proc on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
ramfs on /tmp type ramfs (rw)
ramfs on /shares type ramfs (rw)
ramfs on /foreign_shares type ramfs (rw)
/dev/se/2 on /shares/mss-hdd type reiserfs (rw)