Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3247

Need help troubleshooting GFH that suddenly stopped booting from a SATA drive (2 replies)

$
0
0
So I have a GFH with a 3TB SATA drive that's been working like a champ for years now, running transmission and serving up files via samba. Awesome little device actually.

Anyway, I came back one day and it was off the network. So I rebooted it and it came up from in the rescue system, after flashing orange (for led_error) during the uboot process. So I fired up netconsole for the next reboot and see that it's complaining about a bad partition during sata_load_uimage:
Reset IDE: BUS 0: .......................................OK Bus1: not available
** Bad partition 1**
** Bad partition 1**
Wrong Image Format for bootm command
ERROR: can't get kernel image!
bootcmd_sata=run sata_init; run sata_load_uimage; run set_bootargs_sata; run sata_boot;

console=ttyS0,115200

mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)

set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$sata_rootdelay rootfstype=$sata_rootfstype $mtdparts

sata_boot=if ext2load ide $sata_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000;else bootm 0x800000;fi;
sata_device=0:1
sata_init=ide reset
sata_load_uimage=mw 0x800000 0 1; ext2load ide $sata_device 0x800000 /boot/uImage
sata_root=/dev/sda1
sata_rootdelay=8
sata_rootfstype=ext3

I have full control over uboot and can boot into some older version of rescue or I assume from USB.

I'm wondering if I can investigate / fix the bad partition from rescue, or if i'll need to use some usb stick.
IIRC I have a 20gb ext3 linux partition and then the rest of the 3tb is an ext4 partition (might be ext3) with all my data.
should i be aiming to run fsck on that boot partition? is there anything else I can try?

I'm pretty sure that whatever happened to cause whatever problem i'm experiencing happened while the system was powered up and running as normal. Pretty sure there was no power outage or reboot or anything, so I'm wondering it the sata drive itself may be the issue.
One thing that makes me think that might be the case is that about half the time i run "ide reset" this happens:
Now that I think about it I'm not sure if the command always works the first time but then doesn't necessarily work after that, or it's really more random ... too tired to double check now :)
GoFlexNet> ide reset
Reset IDE: Bus0: ....................................** Timeout **


Anyway, any advice would be great. I've actually been thinking about trying to upgrade to the latest kernel and rescue system, because whatever I have is a year or two old, so maybe this can be a good opportunity to make that happen.
Definitely gotta get this thing runing again because it's been the perfect torrent machine for me, especially because of how little power it uses!!!

Viewing all articles
Browse latest Browse all 3247

Trending Articles