Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Mon Jun 18, 2018 2:53 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Oct 31, 2012 6:02 am 
Offline
Total Newbie
User avatar

Joined: Sun Oct 21, 2012 4:37 pm
Posts: 4
Location: South Coast, Massachusetts
I have a Terastation HD-HTGL that I have lately been intensely tinkering with -- currently with the goal of creating an emergency boot usb so I can boot the tera from a location other than /dev/md0. And at the moment, I'm stalled at this problem: the terastation with itimpi's failsafe firmware v2.18 will not make an emergency boot usb stick for me.

Here's what I've tried so far to fix this problem:
    I've tried flashing both the firmimg_fs.bin and firmimg.bin files from itimpi's 2.18 failsafe firmware -- in case they were somehow mislabeled or something
    I've tried it with my usb stick formatted in xfs and ext2 - thought maybe the size mattered, André's howto specifies an approximate 371MB size, so I've formatted the stick so that sda1 is 371MB out of the 2GB available, and I've tried formatting it so that the partition takes up the entire disk
    I've tried 3 different usb sticks, all different models, in case the one I've been using just isn't compatible for some reason
    I've tried using cp -a to manually copy the contents of / (except mnt and proc, which i created manually) to the mounted sda1 partition and edited /mnt/sda1/etc/fstab and touched /mnt/sda1/etc/HD-HTGL-EM and the terastation would still not boot off the usb stick.
    In the howto it doesn't seem like there's a password set on the myroot account, so, hell, I tried it without a myroot password set
    I've reflashed the firmware several times throughout these attempts...

All this.... AND NO CIGAR!

I'm pulling my hair out. What could I possibly be doing wrong? I'm sure it's something obvious...

What log files can I look in that might give me some clues?

Just to go ever the steps I'm taking:
1. I flash the failsafe firmware - wiping user config and recreating partition tables(not specified in howto, but I thought it'd be more thorough)
2. I plug in my 2GB usb stick, and telnet into terastation
3. mfdisk -c /dev/sda -> 'o' for new partition table -> 'n' for new partition-> primary partion -> partition #1 -> start at cylinder 1 --> end at +385M(the extra margin because +371M leaves the partition with less than 371M free space) -> 'w' to write changes.
4. mkfs.xfs -f /dev/sda1
5. I mount the new /dev/sda1 under /mnt/sda1 and touch /mnt/sda1/INIT-SYSBACKUP
6. reboot (I've tried also unmounting /mnt/sda1 beforehand in case that makes a difference... it hasn't)
and... NOTHING, sda1 is still bare, nothing but INIT-SYSBACKUP inside it.

I'd appreciate any help, ideas, or suggestions, I feel like I've hit a wall with what information I can find online about this, especially with oft-linked-to sites like terastation.wiki.homelinux.net down. There seems to be especially little information available for performing this procedure on this model of terastation. If I can get over this hurdle and subsequently get my terastation booting a linux distro successfully, I'll more than gladly write up a howto for it!! =)

-Matt


Top
   
PostPosted: Thu Nov 01, 2012 10:26 pm 
Offline
Total Newbie
User avatar

Joined: Sun Oct 21, 2012 4:37 pm
Posts: 4
Location: South Coast, Massachusetts
I just found this thread: viewtopic.php?f=40&t=2316

and tried the "echo sda1 > /etc/BOOTPART" trick, and, as before, manually copied the contents of the root md0 fs to sda1 of my usb stick and modified the sda1's /etc/fstab to reflect the changes. This also did not work. The terastation still boots from md0. I'll next try scrounging around for an unused usb disk and see if I can make that work for me.


Top
   
PostPosted: Fri Nov 02, 2012 9:57 pm 
Offline
Total Newbie
User avatar

Joined: Sun Oct 21, 2012 4:37 pm
Posts: 4
Location: South Coast, Massachusetts
Ok, so that also didn't work. I cleared everything off a 500Gb usb disk drive I have, made a ~390Mb partition, etc - the same spiel as before. I also tried it with the partition expanded to the entire disk's size. Tried setting the boot flag, too(which is really grasping at straws). And, nothing.

I got to thinking about it, and the only thing non-standard about my Terastation is that a few years ago 2 of the drives failed and I replaced them with 500Gb WD drives, in ide slots 2 and 4. So I disconnected those non-stock drives, reflashed the 2.18 failsafe firmware, and tried the entire thing again, with the usb sticks, usb disk, and with/without manually copying md0's root fs contents and having BOOTPART set. Manually copying the root fs to the usb, and touching HD-HTGL-EM(as intitially described in the howto) also does not work. I also tried echo'ing both sda1 and /dev/sda1 to BOOTPART, neither made any difference.

And that leaves me completely out of ideas for getting the 2.18 failsafe firmware's emergency boot to work. The only thing I can think of trying now is seeing if the older 2.xx failsafe firmware versions might work... I guess I'll try that next :down:

In about a week I'll be able to try adding a serial console -- maybe once I can get boot messages I'll be able to see what's going wrong with the emergency boot.

I feel like I'm taking crazy pills. What am I doing wrong here?


Top
   
PostPosted: Sat Nov 10, 2012 5:36 pm 
Offline
Total Newbie
User avatar

Joined: Sun Oct 21, 2012 4:37 pm
Posts: 4
Location: South Coast, Massachusetts
Hi all, I added a serial console to my TeraStation and now I can read its boot messages. Here's what it prints when I boot up the Tera with an xfs-formatted usb stick with only INIT-SYSBACKUP touched onto it:

Quote:
Bootcode Ver.1.23 for [HTGL]


Build:Feb 7 2006 [15:56:21]


isUseRevClock=1


******* Product Information *******


----------------------------------


Product Name: HD-HTGL(YOSHIMUNE)


VER: 3.02


Date: 2007/5/8 16:48:56


----------------------------------


Firmware check:done.

>>root=/dev/md0

hit any key to Enter cmd mode.

Now Loading...done.

Now Booting

KERNELBASE=c0000000 r6=900030 r7=90005d

cmd_line=root=/dev/md0 revclock=1 panic=5 BOOTVER=1.23

Memory BAT mapping: BAT2=128Mb, BAT3=0Mb, residual: 0Mb

Linux version 2.4.20_mvl31-ppc_terastation (root@develop) (gcc version 3.3.1 (MontaVista 3.3.1-7.0.13.0500039 2005-01-13)) #5 Tue, 08 May 2007 16:44:28 +0900

BUFFALO Network Attached Storage Series

(C) 2002-2005 BUFFALO INC.

On node 0 totalpages: 32768

zone(0): 32768 pages.

zone(1): 0 pages.

zone(2): 0 pages.

Kernel command line: root=/dev/md0 revclock=1 panic=5 BOOTVER=1.23

OpenPIC Version 1.2 (1 CPUs and 10 IRQ sources) at 80040000

decrementer frequency = 32.522240 MHz

FAN Control EMC6D102 initialized

Calibrating delay loop... 173.26 BogoMIPS

Memory: 125192k available (1744k kernel code, 536k data, 80k init, 0k highmem)

Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)

Inode cache hash table entries: 8192 (order: 4, 65536 bytes)

Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)

Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes)

Page-cache hash table entries: 32768 (order: 5, 131072 bytes)

POSIX conformance testing by UNIFIX

PCI: Probing PCI hardware

Linux NET4.0 for Linux 2.4

Based upon Swansea University Computer Society NET3.039

Initializing RT netlink socket

BUFFALO INC. RTC driver ver 1.00

BUFFALO INC. FAN driver ver 1.00

MICON V1 (C) BUFFALO INC. V.1.00 installed.

MICON ctrl (C) BUFFALO INC. V.1.00 installed.

Kernel event proc (C) BUFFALO INC. V.1.00 installed.

LSP Revision 1

Starting kswapd

Disabling the Out Of Memory Killer

Journalled Block Device driver loaded

SGI XFS 1.3.0 with no debug enabled

pty: 256 Unix98 ptys configured

Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled

ttyS00 at 0x80004600 (irq = 25) is a ST16650

ttyS01 at 0x80004500 (irq = 24) is a ST16650

Uniform Multi-Platform E-IDE driver Revision: 6.31

ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx

IT8212: IDE controller on PCI bus 00 dev 60

IT8212: chipset revision 19

IT8212: not 100% native mode: will probe irqs later

ide0: BM-DMA at 0xbffed0-0xbffed7, BIOS settings: hda:pio, hdb:pio

ide1: BM-DMA at 0xbffed8-0xbffedf, BIOS settings: hdc:pio, hdd:pio

IT8212: IDE controller on PCI bus 00 dev 68

IT8212: chipset revision 19

IT8212: not 100% native mode: will probe irqs later

ide2: BM-DMA at 0xbffea0-0xbffea7, BIOS settings: hde:pio, hdf:pio

ide3: BM-DMA at 0xbffea8-0xbffeaf, BIOS settings: hdg:pio, hdh:pio

>wait_driveSpinup:wait drivestatus.(hda)

hda: WDC WD2500BB-00RDA0, ATA DISK drive

>wait_driveSpinup:wait drivestatus.(hdb)

hdb: WDC WD1200BEVE-00A0HT0, ATA DISK drive

>wait_driveSpinup:wait drivestatus.(hdc)

hdc: WDC WD2500BB-00RDA0, ATA DISK drive

>wait_driveSpinup:wait drivestatus.(hdd)

>wait_driveSpinup:wait drivestatus.(hde)

hde: WDC WD5000AAKB-00H8A0, ATA DISK drive

>wait_driveSpinup:wait drivestatus.(hdf)

>wait_driveSpinup:wait drivestatus.(hdg)

hdg: WDC WD5000AAKB-00H8A0, ATA DISK drive

>wait_driveSpinup:wait drivestatus.(hdh)

ide0 at 0xbffef8-0xbffeff,0xbffef6 on irq 17

ide1 at 0xbffee8-0xbffeef,0xbffee6 on irq 17 (shared with ide0)

ide2 at 0xbffec8-0xbffecf,0xbffec6 on irq 20

ide3 at 0xbffeb8-0xbffebf,0xbffeb6 on irq 20 (shared with ide2)

blk: queue c0244918, I/O limit 4095Mb (mask 0xffffffff)

hda: 488397168 sectors (250059 MB) w/2048KiB Cache, CHS=30401/255/63, UDMA(100)

blk: queue c0244a58, I/O limit 4095Mb (mask 0xffffffff)

hdb: 234441648 sectors (120034 MB) w/8192KiB Cache, CHS=14593/255/63, UDMA(100)

blk: queue c0244ca0, I/O limit 4095Mb (mask 0xffffffff)

hdc: 488397168 sectors (250059 MB) w/2048KiB Cache, CHS=30401/255/63, UDMA(100)

blk: queue c0245028, I/O limit 4095Mb (mask 0xffffffff)

hde: 976773168 sectors (500108 MB) w/16384KiB Cache, CHS=60801/255/63, UDMA(100)

blk: queue c02453b0, I/O limit 4095Mb (mask 0xffffffff)

hdg: 976773168 sectors (500108 MB) w/16384KiB Cache, CHS=60801/255/63, UDMA(100)

Partition check:

hda: hda1 hda2 hda3 hda4

hdb: hdb1

hdc: hdc1 hdc2 hdc3 hdc4

hde: hde1 hde2 hde3 hde4

hdg: hdg1 hdg2 hdg3 hdg4

RAMDISK driver initialized: 16 RAM disks of 15000K size 1024 blocksize

loop: loaded (max 8 devices)

eth0: RTL8169s/8110s Gigabit Ethernet driver 2.2+1 at 0xc9000f00, 00:0d:0b:1d:11:f8, IRQ 16

PCI: 00:0b.0 PCI cache line size set incorrectly (0 bytes) by BIOS/FW, BUFFALO:it must be zero for PPC8241/8245

eth0: Auto-negotiation Enabled.

eth0: 100Mbps Full-duplex operation.

SCSI subsystem driver Revision: 1.00

kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2

physmap flash device: 400000 at ffc00000

Search for id:(20 20) interleave(1) type(1)

Search for id:(20 20) interleave(1) type(1)

Search for id:(00 00) interleave(1) type(1)

Search for id:(20 5d) interleave(1) type(2)

Found: ST M29W324DB

linkstation_flash: Found 1 x16 devices at 0x0 in 8-bit mode

number of JEDEC chips: 1

Using physmap partition definition

Creating 5 MTD partitions on "linkstation_flash":

0x00000000-0x00300000 : "mtd0"

0x00300000-0x00370000 : "mtd1"

0x00370000-0x00380000 : "mtd2"

0x00380000-0x00400000 : "mtd3"

0x00000000-0x00400000 : "mtd4"

usb.c: registered new driver usbdevfs

usb.c: registered new driver hub

ehci_hcd 00:0e.2: PCI device 1033:00e0

ehci_hcd 00:0e.2: irq 19, pci mem c9002f00

usb.c: new USB bus registered, assigned bus number 1

PCI: 00:0e.2 PCI cache line size set incorrectly (0 bytes) by BIOS/FW, BUFFALO:it must be zero for PPC8241/8245

ehci_hcd 00:0e.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4

hub.c: USB hub found

hub.c: 5 ports detected

host/usb-ohci.c: USB OHCI at membase 0xc9004000, IRQ 19

host/usb-ohci.c: usb-00:0e.0, PCI device 1033:0035

usb.c: new USB bus registered, assigned bus number 2

hub.c: USB hub found

hub.c: 3 ports detected

host/usb-ohci.c: USB OHCI at membase 0xc9006000, IRQ 19

host/usb-ohci.c: usb-00:0e.1, PCI device 1033:0035

usb.c: new USB bus registered, assigned bus number 3

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: raid1 personality registered as nr 3

md: raid5 personality registered as nr 4

raid5: measuring checksumming speed

8regs : 310.400 MB/sec

32regs : 319.600 MB/sec

raid5: using function: 32regs (319.600 MB/sec)

md: multipath personality registered as nr 7

md: md driver 0.90.2 MAX_MD_DEVS=256, MD_SB_DISKS=27

md: Autodetecting RAID arrays.

[events: 00000048]

[events: 00000000]

md: invalid raid superblock magic on hda3

md: hda3 has invalid sb, not importing!

md: could not import hda3!

[events: 00000000]

md: invalid raid superblock magic on hda4

md: hda4 has invalid sb, not importing!

md: could not import hda4!

[events: 00000048]

[events: 00000000]

md: invalid raid superblock magic on hdc3

md: hdc3 has invalid sb, not importing!

md: could not import hdc3!

[events: 00000000]

md: invalid raid superblock magic on hdc4

md: hdc4 has invalid sb, not importing!

md: could not import hdc4!

[events: 00000048]

[events: 00000000]

md: invalid raid superblock magic on hde3

md: hde3 has invalid sb, not importing!

md: could not import hde3!

[events: 00000000]

md: invalid raid superblock magic on hde4

md: hde4 has invalid sb, not importing!

md: could not import hde4!

[events: 00000048]

[events: 00000000]

md: invalid raid superblock magic on hdg3

md: hdg3 has invalid sb, not importing!

md: could not import hdg3!

[events: 00000000]

md: invalid raid superblock magic on hdg4

md: hdg4 has invalid sb, not importing!

md: could not import hdg4!

md: autorun ...

md: considering hdg1 ...

md: adding hdg1 ...

md: adding hde1 ...

md: adding hdc1 ...

md: adding hda1 ...

md: created md0

md: bind<hda1,1>

md: bind<hdc1,2>

md: bind<hde1,3>

md: bind<hdg1,4>

md: running: <hdg1><hde1><hdc1><hda1>

md: hdg1's event counter: 00000048

md: hde1's event counter: 00000048

md: hdc1's event counter: 00000048

md: hda1's event counter: 00000048

md0: max total readahead window set to 124k

md0: 1 data-disks, max readahead per data-disk: 124k

raid1: device hdg1 operational as mirror 1

raid1: device hde1 operational as mirror 2

raid1: device hdc1 operational as mirror 3

raid1: device hda1 operational as mirror 0

hub.c: new USB device 00:0e.2-2, assigned address 2

raid1: raid set md0 active with 4 out of 4 mirrors

md: updating md0 RAID superblock on device

md: hdg1 [events: 00000049]<6>(write) hdg1's sb offset: 385408

md: hde1 [events: 00000049]<6>(write) hde1's sb offset: 385408

md: hdc1 [events: 00000049]<6>(write) hdc1's sb offset: 385408

md: hda1 [events: 00000049]<6>(write) hda1's sb offset: 385408

md: ... autorun DONE.

NET4: Linux TCP/IP 1.0 for NET4.0

IP Protocols: ICMP, UDP, TCP, IGMP

IP: routing cache hash table of 1024 buckets, 8Kbytes

TCP: Hash tables configured (established 8192 bind 16384)

NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.

NET4: AppleTalk 0.18a for Linux NET4.0

RAMDISK: Compressed image found at block 0

Freeing initrd memory: 1973k freed

EXT2-fs warning: checktime reached, running e2fsck is recommended

VFS: Mounted root (ext2 filesystem).

scsi0 : SCSI emulation for USB Mass Storage devices

Vendor: USB Model: Flash Disk Rev: 8.07

Type: Direct-Access ANSI SCSI revision: 02

Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0

date: SCSI device sda: 1978368 512-byte hdwr sectors (1013 MB)

invalid date `20sda: Write Protect is off

12/11/10 16:18:3 sda:3'
Sun Nov 11 01:18:33 JST 2012
linuxrc:choose operation (timeout 4[s])
1:RamRoot 2:SetDiskNo other:HddRoot ? sda1

-HddRoot-
mdadm: fail to stop array /dev/md1: No such device
mdadm: fail to stop array /dev/md2: No such device
XFS mounting filesystem md(9,0)

PRODUCTNAME=HD-HTGL(YOSHIMUNE) PRODUCTNAME=HD-HTGL(YOSHIMUNE)
PRODUCTID=0x00002001 PRODUCTID=0x00002001
KERNEL:2007/5/8 16:48:56
HDD:2008/5/27 10:38:29
XFS mounting filesystem md(9,0)

VFS: Mounted root (xfs filesystem) readonly.

Trying to move old root to /initrd ... okay

Freeing unused kernel memory: 80k init

modprobe: modprobe: Can't locate module char-major-4
INIT: version 2.78 bootingActivating swap...
Adding Swap: 136544k swap-space (priority -1)

Adding Swap: 136544k swap-space (priority -2)

Adding Swap: 136544k swap-space (priority -3)

Adding Swap: 136544k swap-space (priority -4)

Checking all file systems...
fsck 1.27 (8-Mar-2002)
Setting kernel variables ...
kernel.msgmni = 256
fs.xfs.sync_interval = 1000
vm.bdflush = 40 500 0 0 500 1000 60 20 0
dev.raid.speed_limit_max = 11000
... done.
Calculating module dependencies... done.
Loading modules:
usb.c: registered new driver mv7dxu2_d

usb.c: registered new driver mv7dxu2_0

usb.c: registered new driver mv7dxu2_1

usb.c: registered new driver mv7dxu2_2

usb.c: registered new driver mv7dxu2_3

Warning: loading /lib/modules/video-buf.o will taint the kernel: no license
See http://www.tux.org/lkml/#export-tainted for information aboutLinux video capture interface: v1.00

tainted modules
Module video-buf loaded, with warnings
Warning: loading /lib/modules/mv51dxu2.o will taint the kernel: no license
See http://www.tux.org/lkml/#export-tainted for information about usb.c: registered new driver BUFFALO PC-MV5 Series

tainted modules
BUFFALO PC-MV5 Series version 0.17 loaded

Module mv51dxu2 loaded, with warnings
Extracting log files...Mounting local filesystems...
nothing was mounted
Update configuration files
Restore previous configuration files
Restore
Hostname TERASTATION
Configuration network interface: lo eth0
Cleaning: /tmp /var/lock /var/run.
-- start data arrays --
mdadm: No arrays found in config file
-- rebuild mdadm.conf for md1--
mdadm: cannot open /dev/hdd3: No such device or address
mdadm: cannot open /dev/hdf3: No such device or address
mdadm: cannot open /dev/hdh3: No such device or address
mdadm: No arrays found in config file
-- check /etc/melco/diskinfo and real RAID disks. --
-- Mount local disks --
XFS mounting filesystem ide0(3,3)

XFS mounting filesystem ide1(22,3)

XFS mounting filesystem ide2(33,3)

XFS mounting filesystem ide3(34,3)


INIT: Entering runlevel: 3Starting system log daemon: syslogd.
Starting kernel log daemon: klogd.
/etc/rc.d/rc3.d/S20httpd start: httpd started
Start services: inetd.
Start services: lpd
Starting lsprcvd:starting on eth0
Start services: croncodepage = CP437 (/etc/melco/info)
.
Start services: mc_ctld
m_ctld ver.1.08
parent pid=499
Starting kernelmon:umount: /proc/bus/usb: device is busy
mount usb disks...
Start services: smbd nmbd
Starting diskmon:diskmon ver.1.00
Starting logchkd:logchkd ver.1.12(Apr 2 2007) started
Starting services: rarpd tftpd rarpcfgd fwupdated.
Save current configuration files
tar: Removing leading `/' from member names
Restore
sum: /tmp/confnew/etc/atalk: Is a directory
sum: /tmp/confnew/etc/melco: Is a directory
sum: /tmp/confnew/etc/network: Is a directory
sum: /tmp/confnew/etc/samba: Is a directory
sum: /tmp/confnew/etc/melco/crontabs: Is a directory
sum: /tmp/confnew/etc/melco/scheduler: Is a directory
sum: /tmp/confnew/etc/melco/crontabs/*: No such file or directory
sum: /tmp/confold/etc/atalk: Is a directory
sum: /tmp/confold/etc/melco: Is a directory
sum: /tmp/confold/etc/network: Is a directory
sum: /tmp/confold/etc/samba: Is a directory
sum: /tmp/confold/etc/melco/crontabs: Is a directory
sum: /tmp/confold/etc/melco/scheduler: Is a directory
sum: /tmp/confold/etc/melco/crontabs/*: No such file or directory
sum = 59211 59211
Starting ls_servd:starting on eth0
start start_server()
Starting processmon:processmon ver.1.00
Update backup folders
BUFFALO INC. TeraStation series HD-HTGL (YOSHIMUNE)

TERASTATION login:

Could that "invalid date" error be relevant?

I know there are some total NAS-wizards out there on this forum! I'd really appreciate some input from any of ya' ! =)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited