Webif gone, drive is read only, fixdisc takes forever. Help please.

ought

New Member
Hello everybdoy,

I wonder if anybody could advise please. My Humax HDR-FOX T2 has been playing up for a few weeks.

My Webif stopped working, and I am presented with "500 - Internal Server Error".

I tried forcing a reinstall via CLI but no luck. Seemed to be a problem with writing to the disc.

I then tried fixdisc, but it continues for many hours and either seems to freeze or I lose my connection. I have to stop it without knowing if it is finished. I have done this several times.

The folders on the Humax seem to have gone read-only which is why I think I can not reinstall the webif. This also means I can not record to any existing folder, though it usually works to the root video folder. I can not delete anything either.

Could anybody tell me a couple of things please:

1. Once I have lost the telnet connection to my Humax, how once I have reconnected do I find out the status of fixdisc, to see if it finished.

2. How can I fix this problem and get back my webif, and full functionality?

Thank you muchly!!
 

prpr

Well-Known Member
My Humax HDR-FOX T2 has been playing up for a few weeks.
You should have taken action earlier and maybe things wouldn't have got so bad.
I then tried fixdisc, but it continues for many hours and either seems to freeze or I lose my connection. I have to stop it without knowing if it is finished.
Why do you have to stop it? Freezing is normal. If you have to stop it, it isn't finished. Leave it to run.
1. Once I have lost the telnet connection to my Humax, how once I have reconnected do I find out the status of fixdisc, to see if it finished.
It writes a log file either to /tmp/fix-disk.log (until you reboot) or /mnt/hd3/fix-disk.log
I would guess loss of connection makes it terminate though. You could use nohup but it's on the hd2 partition, so you'd need to copy it somewhere else first.
Why are you getting loss of connection?
How can I fix this problem and get back my webif, and full functionality?
Depends what the problem is and whether you want to try and preserve any recordings or not. What do "mount" and "smartctl -a /dev/sda" say (just post the Smart Attributes Data table)?
 
OP
O

ought

New Member
You should have taken action earlier and maybe things wouldn't have got so bad.

Why do you have to stop it? Freezing is normal. If you have to stop it, it isn't finished. Leave it to run.


It writes a log file either to /tmp/fix-disk.log (until you reboot) or /mnt/hd3/fix-disk.log
I would guess loss of connection makes it terminate though. You could use nohup but it's on the hd2 partition, so you'd need to copy it somewhere else first.
Why are you getting loss of connection?

On some occasions because of the sleep function on my server which comes on after 6 hours, and some times I think I probably just assumed it had stopped working, when perhaps it had not. I have turned the sleep fuction off so can try again, but I had read it should only take a few hours for fixdisk to run?
Depends what the problem is and whether you want to try and preserve any recordings or not. What do "mount" and "smartctl -a /dev/sda" say (just post the Smart Attributes Data table)?

With "mount" I get:

humax# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
devpts on /dev/pts type devpts (rw)
tmpfs on /tmp type tmpfs (rw)
tmpfs on /media type tmpfs (rw)
/dev/mtdblock1 on /var/lib/humaxtv type jffs2 (rw)
/dev/mtdblock2 on /var/lib/humaxtv_backup type jffs2 (rw)
/dev/sda1 on /mnt/hd1 type ext3 (rw,data=ordered)
/dev/sda2 on /mnt/hd2 type ext3 (ro,data=ordered)
/dev/sda3 on /mnt/hd3 type ext3 (rw,data=ordered)
/dev/sda2 on /mnt/hd2/My\040Video/[ModSettings] type ext3 (ro,data=ordered)


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

And "smartctl -a /dev/sda": (sorry was not sure which bit you were asking for).

humax# smartctl -a /dev/sda
smartctl 5.41 2011-06-09 r3365 [7405b0-smp-linux-2.6.18-7.1] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family: Seagate Pipeline HD 5900.2
Device Model: ST31000424CS
Serial Number: 5VX1F0FY
LU WWN Device Id: 5 000c50 037f34104
Firmware Version: SC13
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: 8
ATA Standard is: ATA-8-ACS revision 4
Local Time is: Sat Dec 6 21:26:04 2014 GMT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
See vendor-specific Attribute list for marginal Attributes.

General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 633) seconds.
Offline data collection
capabilities: (0x73) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 227) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x103b) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 119 099 006 Pre-fail Always - 226320568
3 Spin_Up_Time 0x0003 095 095 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 092 092 020 Old_age Always - 9030
5 Reallocated_Sector_Ct 0x0033 092 092 036 Pre-fail Always - 368
7 Seek_Error_Rate 0x000f 083 060 030 Pre-fail Always - 213328885
9 Power_On_Hours 0x0032 092 092 000 Old_age Always - 7740
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 096 096 020 Old_age Always - 4515
184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 075 075 000 Old_age Always - 25
188 Command_Timeout 0x0032 100 100 000 Old_age Always - 0
189 High_Fly_Writes 0x003a 096 096 000 Old_age Always - 4
190 Airflow_Temperature_Cel 0x0022 049 037 045 Old_age Always In_the_past 51 (1 79 55 49)
194 Temperature_Celsius 0x0022 051 063 000 Old_age Always - 51 (0 15 0 0)
195 Hardware_ECC_Recovered 0x001a 048 035 000 Old_age Always - 226320568
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0

SMART Error Log Version: 1
ATA Error Count: 25 (device log contains only the most recent five errors)
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 25 occurred at disk power-on lifetime: 5225 hours (217 days + 17 hours)
When the command that caused the error occurred, the device was active or idle.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 00 b9 54 21 00 Error: UNC at LBA = 0x002154b9 = 2184377

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
20 00 01 b9 54 21 e0 00 00:00:18.570 READ SECTOR(S)
b0 d5 01 06 4f c2 00 00 00:00:18.457 SMART READ LOG
b0 d5 01 00 4f c2 00 00 00:00:18.454 SMART READ LOG
b0 d0 01 00 4f c2 00 00 00:00:18.407 SMART READ DATA
ec 00 01 00 00 00 00 00 00:00:18.392 IDENTIFY DEVICE

Error 24 occurred at disk power-on lifetime: 5225 hours (217 days + 17 hours)
When the command that caused the error occurred, the device was active or idle.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 00 b9 54 21 00 Error: UNC at LBA = 0x002154b9 = 2184377

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 00 e8 53 21 e0 00 00:00:15.085 READ DMA
ec 00 00 b9 54 21 a0 00 00:00:15.061 IDENTIFY DEVICE
c8 00 00 e8 53 21 e0 00 00:00:13.722 READ DMA
ec 00 00 b9 54 21 a0 00 00:00:13.698 IDENTIFY DEVICE
c8 00 00 e8 53 21 e0 00 00:00:12.309 READ DMA

Error 23 occurred at disk power-on lifetime: 5225 hours (217 days + 17 hours)
When the command that caused the error occurred, the device was active or idle.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 00 b9 54 21 00 Error: UNC at LBA = 0x002154b9 = 2184377

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 00 e8 53 21 e0 00 00:00:13.722 READ DMA
ec 00 00 b9 54 21 a0 00 00:00:13.698 IDENTIFY DEVICE
c8 00 00 e8 53 21 e0 00 00:00:12.309 READ DMA
ec 00 00 b9 54 21 a0 00 00:00:12.287 IDENTIFY DEVICE
c8 00 00 e8 53 21 e0 00 00:00:10.965 READ DMA

Error 22 occurred at disk power-on lifetime: 5225 hours (217 days + 17 hours)
When the command that caused the error occurred, the device was active or idle.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 00 b9 54 21 00 Error: UNC at LBA = 0x002154b9 = 2184377

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 00 e8 53 21 e0 00 00:00:12.309 READ DMA
ec 00 00 b9 54 21 a0 00 00:00:12.287 IDENTIFY DEVICE
c8 00 00 e8 53 21 e0 00 00:00:10.965 READ DMA
ec 00 00 b9 54 21 a0 00 00:00:10.941 IDENTIFY DEVICE
c8 00 00 e8 53 21 e0 00 00:00:09.623 READ DMA

Error 21 occurred at disk power-on lifetime: 5225 hours (217 days + 17 hours)
When the command that caused the error occurred, the device was active or idle.

After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 00 b9 54 21 00 Error: UNC at LBA = 0x002154b9 = 2184377

Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 00 e8 53 21 e0 00 00:00:10.965 READ DMA
ec 00 00 b9 54 21 a0 00 00:00:10.941 IDENTIFY DEVICE
c8 00 00 e8 53 21 e0 00 00:00:09.623 READ DMA
ec 00 00 b9 54 21 a0 00 00:00:09.598 IDENTIFY DEVICE
c8 00 00 e8 53 21 e0 00 00:00:08.310 READ DMA

SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Short offline Completed without error 00% 7721 -
# 2 Extended offline Completed without error 00% 7715 -
# 3 Short offline Completed without error 00% 7699 -
# 4 Short offline Completed without error 00% 7666 -
# 5 Short offline Completed without error 00% 7656 -
# 6 Short offline Completed without error 00% 7649 -
# 7 Short offline Completed without error 00% 7636 -
# 8 Short offline Completed without error 00% 7626 -
# 9 Short offline Completed without error 00% 7615 -
#10 Short offline Completed without error 00% 7613 -
#11 Short offline Completed without error 00% 7610 -
#12 Short offline Completed without error 00% 7610 -
#13 Short offline Completed without error 00% 7610 -
#14 Short offline Completed without error 00% 7597 -
#15 Short offline Completed without error 00% 7588 -
#16 Short offline Completed without error 00% 7588 -
#17 Short offline Completed without error 00% 7462 -
#18 Short offline Completed without error 00% 7462 -
#19 Short offline Completed without error 00% 6647 -
#20 Short offline Completed without error 00% 6629 -
#21 Short offline Completed without error 00% 6342 -

SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
 

prpr

Well-Known Member
"SMART Attributes Data Structure" and the following 20 or so lines was the bit I meant.
Hard disk looks OK-ish at the moment. Your media partition has gone read-only but the others are OK.
If fix-disk can't fix it, then you'll have to reformat it (and then reinstall Webif).
You might be able to copy stuff off elsewhere if you want your recordings.
 
Top