Difference between revisions of "Maintenance Mode"

From hummy.tv Wiki
Jump to: navigation, search
(Enter Maintenance Mode (HDR-Fox T2))
 
(65 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Note|If you are planning to use maintenance mode, it is recommended that you first upgrade to Customised Firmware version 2.13 or above.}}
+
{{Note|If you are planning to use maintenance mode, it is recommended that you first upgrade to the latest version of the Customised Firmware.}}
  
===Background===
+
==Background==
  
Version 1.15 of the Custom Firmware added a new feature called Maintenance Mode, This mode has been created to enable the Humax to carry out special functions that can’t be run in normal mode, When this mode is running there will be no TV Tuner, TV Recording or Custom Firmware Graphical User Interface (GUI), on Custom Firmware Version 2.13 and later, Maintenance Mode is indicated on the Humax display as follows :- 'MAINTENANCE' on HDR and 'UtiL' on HD)
+
Maintenance Mode has been created to enable the Humax to carry out special functions that can’t be run in normal mode. When this mode is running there will be no TV Tuner, TV Recording or Custom Firmware Graphical User Interface (GUI) (the picture will be frozen but the sound continues). On Custom Firmware Version 2.13 and later, Maintenance Mode is indicated on the Humax display as follows :- 'MAINTENANCE' on HDR and 'UtiL' on HD.
  
 
Access to this mode is via Telnet - Command line only.
 
Access to this mode is via Telnet - Command line only.
  
When the Custom Firmware boots up it will look for a special file, If it finds this file, the Firmware will boot into Maintenance Mode and then delete the file, If the file is not found the Firmware will boot into the normal Custom Firmware
+
When the Custom Firmware boots up it will look for a special file. If it finds this file, the Firmware will boot into Maintenance Mode and then delete the file. If the file is not found, the Firmware will boot into the normal Custom Firmware.
  
===Enter Maintenance Mode ===
+
Notes:-
 +
*If you normally use a USB Wi-Fi adapter as your network connection from the HD- or HDR-FOX, this may not work in Maintenance Mode. If not, try installing the wireless-helper package. If it is still not possible to obtain a Telnet connection by Wi-Fi, use a wired LAN (or other networking which connects through the Ethernet port e.g. HomePlug).
 +
*The cooling fan may not run in early versions of the Custom Firmware when in Maintenance mode - this is fixed in CFW 2.19
  
To enter Maintenance Mode you need to create the special file and then re-boot using Telnet as follows :-
 
  
<span style="background:#FFFF00"> touch /mod/boot/maintenance.boot </span>
+
==Enter Telnet Menu==
  
<span style="background:#FFFF00"> reboot </span>
+
The first stage in entering Maintenance Mode is to access the Humax via [[Telnet]]  e.g. :-
 +
 
 +
<pre>
 +
Menu version 1.23
 +
Enter system PIN: ****
 +
 
 +
      /-------------------------\
 +
      |  T E L N E T  M E N U  |
 +
      \-------------------------/
 +
 
 +
  [ Humax HDR-Fox T2 (humax) 1.03.12/3.13 ]
 +
 
 +
  maint - Restart into maintenance mode.
 +
    safe - Enable safe mode on next boot.
 +
    rma - Enable return-to-manufacturer (RMA) mode.
 +
  reset - Reset custom firmware environment.
 +
upgrade - Upgrade all installed packages.
 +
  passwd - Remove web interface password.
 +
  fixweb - Re-install web interface.
 +
    stat - Show current activity.
 +
      x - Exit and close connection.
 +
  reboot - Reboot the Humax.
 +
    diag - Run a diagnostic.
 +
    cli - System command line (advanced users).
 +
 
 +
Please select option:
 +
 
 +
</pre>
 +
 
 +
If the menu is not present, enter the following command at the command prompt :-
 +
 
 +
<span style="background:#FFFF00"> menu </span>
 +
 
 +
 
 +
NOTE:- If your Humax determines that the web interface server isn't running, the menu may display an additional option e.g. web - Reinstate web interface service, to re-start the Web-Interface, enter web and press return at the prompt.
 +
 
 +
==Enter Maintenance Mode (HDR-Fox T2)==
 +
 
 +
Select the first item in this menu; maint - Restart into maintenance mode. The Humax will close the current telnet session, reboot and display 'MAINTENANCE' on the HDR after a short delay. Once this message is displayed, re-connect via [[Telnet]] and the following Menu will then be displayed:
 +
<pre>
 +
Menu version 1.23
 +
Enter system PIN: ****
 +
 
 +
      /---------------------------------------------\
 +
      |  M A I N T E N A N C E  M O D E  M E N U  |
 +
      \---------------------------------------------/
 +
 
 +
  [ Humax HDR-Fox T2 (humax) 1.03.12/3.13 ]
 +
 
 +
fixdisk - Check and repair hard disk.
 +
  short - Run short hard-disk self test.
 +
    long - Run long hard-disk self test.
 +
  check - Check self-test progress.
 +
    gptf - Re-format disk using GPT scheme.
 +
    epg - Clear persistent EPG data.
 +
    dlna - Reset DLNA server database.
 +
      x - Leave maintenance mode (Humax will restart).
 +
    diag - Run a diagnostic.
 +
    cli - System command line (advanced users).
 +
 
 +
Please select option:
 +
</pre>
 +
 
 +
==Check and repair hard disk (fix-disk)==
 +
 
 +
The following are some additional notes to the[[Maintenance_Mode_Disk_Check | Maintenance_Mode_Disk_Check (Fix-Disk)]] utility
 +
 
 +
If the Maintenance Mode Menu is not present, the disk check and repair process can be initiated from the command line
 +
 
 +
<span style="background:#FFFF00"> fix-disk </span>
 +
 
 +
Fix-Disk can find and automatically fix numerous problems, however some problems need to be fixed manually. The following bad sector error :-
 +
 
 +
<pre>
 +
Running short disk self test
 +
Error at LBA 1812999403
 +
Dev: /dev/sda LBA: 1812999403
 +
LBA: 1812999403 is on partition /dev/sda2, start: 2104515, bad sector offset: 18
 +
10894888
 +
dumpe2fs 1.41.14 (22-Dec-2010)
 +
Using superblock 0
 +
Block size: 4096
 +
LBA 1812999403 maps to file system block 226361861 on /dev/sda2
 +
 
 +
Checking to see if this block is in use...
 +
debugfs 1.41.14 (22-Dec-2010)
 +
/dev/sda2: Can't read an block bitmap while reading block bitmap
 +
testb: Filesystem not open
 +
Unknown error
 +
Press return to continue:
 +
</pre>
 +
 
 +
would require the user to return to the Maintenance Mode Menu, select cli to get a command line prompt and then enter :-
 +
 
 +
<pre>
 +
hdparm --repair-sector 1812999403 --yes-i-know-what-i-am-doing /dev/sda
 +
 
 +
fix-disk -P
 +
</pre>
 +
 
 +
If a user only needs to fix a 'Delete Loop' problem, there is a command line alternative to fix-disk which can save some time, the procedure is detailed below :-
 +
 
 +
<pre>
 +
humax# /etc/init.d/S90settop shut
 +
humax# rm /mnt/hd1/filebglastop.dat
 +
humax# sync
 +
humax# reboot
 +
</pre>
 +
 
 +
 
 +
 
 +
Fix-Disk Notes :-
 +
#It will take a minimum of 30 Mins. to get to the 'Delete Loop' question and can take hours when fixing problems, so be patient
 +
#Option -x -c = enable e2fsck extensions and check for bad blocks / add them to the bad block list
 +
#If the web interface hard disk diagnostic highlights attributes 197 or 198 in red, then the additional fix-disk test/repair should run
 +
#After a fix-disk run it is normal to get the following message :-  Some areas of the hard disk are not mounted, not all functions will be available.
 +
#If fix-disk enters a repetitive error loop, enter 'CTRL + ]' to escape
  
The Telnet session will then be closed and the box will reboot, After a few seconds you should be able to Telnet back into the box
 
  
 
===Maintenance Mode Notes===
 
===Maintenance Mode Notes===
  
While in Maintenance Mode Only Telnet is functional, The following Notes are Valid for the HDR-Fox T2:-
+
While in Maintenance Mode, only Telnet is functional. The following Notes are valid for the HDR-Fox T2:-
  
 +
*Wi-Fi may not be supported in Maintenance mode. If it is not possible to Telnet into the Maintenance mode, use a wired LAN
 
*Disk are shown as /dev/sda, /dev/sdb, etc
 
*Disk are shown as /dev/sda, /dev/sdb, etc
 
*An external HDD found on boot will be /dev/sda and the internal HDD will be /dev/sdb
 
*An external HDD found on boot will be /dev/sda and the internal HDD will be /dev/sdb
* An External HDD connected after boot will be /dev/sdb and the internal HDD will be /dev/sda
+
*An external HDD connected after boot will be /dev/sdb and the internal HDD will be /dev/sda
 
*Partitions on those disks are /dev/sda1, /dev/sda2 etc
 
*Partitions on those disks are /dev/sda1, /dev/sda2 etc
 
*<span style="background:#FFFF00"> fdisk -lu</span><span style="color:#FFFFFF"> HIDE </span> Will display Disks and their Partitions
 
*<span style="background:#FFFF00"> fdisk -lu</span><span style="color:#FFFFFF"> HIDE </span> Will display Disks and their Partitions
 
*<span style="background:#FFFF00"> df -h</span><span style="color:#FFFFFF"> HIDE </span> Will display Mounted Disks
 
*<span style="background:#FFFF00"> df -h</span><span style="color:#FFFFFF"> HIDE </span> Will display Mounted Disks
 +
  
 
===Exit Maintenance Mode ===
 
===Exit Maintenance Mode ===
  
The Special file created in order to enter Maintenance Mode is automatically deleted on entry, Due to this 'Fail Safe' feature all subsequent re-boots will result in a normal Custom Firmware boot up,
+
To exit Maintenance Mode, select 'x' from the Telnet Menu or type the following :-
 
 
So to exit Maintenance Mode, simply Telnet the following :-
 
  
 
<span style="background:#FFFF00"> reboot </span>
 
<span style="background:#FFFF00"> reboot </span>
Line 40: Line 156:
 
===What is Maintenance Mode for ?===
 
===What is Maintenance Mode for ?===
  
At present, it is used for checking the HDR internal disk file system and formatting USB hard disks up to 2TB (The standard Humax format only works up to 1TB)
+
At present, it is used for checking the HDR internal disk file system and formatting USB hard disks up to 2TB (the standard Humax format only works up to 1TB).
  
 
===Run a file system check on the Internal Hard Disk Drive===
 
===Run a file system check on the Internal Hard Disk Drive===
Line 54: Line 170:
 
* Ensure you are formatting the correct drive e.g. /dev/sda1 or /dev/sda2
 
* Ensure you are formatting the correct drive e.g. /dev/sda1 or /dev/sda2
 
* unmount drive (if Mounted already mounted) with e.g. umount /dev/sda1
 
* unmount drive (if Mounted already mounted) with e.g. umount /dev/sda1
* Partition the disk with using fdisk -u /dev/sda1 then p to display current
+
* Partition the disk using fdisk -u /dev/sda1 then p to display current
 
* d to delect current
 
* d to delect current
 
* n to create primary partition
 
* n to create primary partition
Line 63: Line 179:
 
* Format new partition with mkfs.ext3 /dev/sda1
 
* Format new partition with mkfs.ext3 /dev/sda1
 
* format will will take about 20 minutes for a 2TB disk
 
* format will will take about 20 minutes for a 2TB disk
 +
 +
==Enter Maintenance Mode (HD-Fox T2)==
 +
 +
After selecting option one from the Main Telnet Menu and rebooting the HD-Fox T2, the front display will show 'UtIL' after a short delay, indicating the unit is in Maintenance Mode. When a new Telnet session is started, the HD-Fox T2 will display the following :-
 +
<pre>
 +
  /-----------------------------------------\
 +
  | M A I N T E N A N C E  M O D E  M E N U |
 +
  \-----------------------------------------/
 +
 +
  [Humax HD-Fox T2 (humaxhd) 1.02.29/2.15]
 +
 +
  1 - Convert USB flash drive to EXT2
 +
  2 - Clear persistent EPG data.
 +
  x - Leave maintenance mode (Humax will restart).
 +
diag - Run a diagnostic.
 +
cli - Exit to system Command line (Advanced users).
 +
</pre>
 +
 +
A Guide to converting a USB flash drive to EXT2 for Custom Firmware operation is [[Converting_a_USB_Flash_Drive_to_EXT2_on_a_HD-Fox_T2 | '''HERE''']]

Latest revision as of 13:34, 29 April 2018

Note Note: If you are planning to use maintenance mode, it is recommended that you first upgrade to the latest version of the Customised Firmware.

Background

Maintenance Mode has been created to enable the Humax to carry out special functions that can’t be run in normal mode. When this mode is running there will be no TV Tuner, TV Recording or Custom Firmware Graphical User Interface (GUI) (the picture will be frozen but the sound continues). On Custom Firmware Version 2.13 and later, Maintenance Mode is indicated on the Humax display as follows :- 'MAINTENANCE' on HDR and 'UtiL' on HD.

Access to this mode is via Telnet - Command line only.

When the Custom Firmware boots up it will look for a special file. If it finds this file, the Firmware will boot into Maintenance Mode and then delete the file. If the file is not found, the Firmware will boot into the normal Custom Firmware.

Notes:-

  • If you normally use a USB Wi-Fi adapter as your network connection from the HD- or HDR-FOX, this may not work in Maintenance Mode. If not, try installing the wireless-helper package. If it is still not possible to obtain a Telnet connection by Wi-Fi, use a wired LAN (or other networking which connects through the Ethernet port e.g. HomePlug).
  • The cooling fan may not run in early versions of the Custom Firmware when in Maintenance mode - this is fixed in CFW 2.19


Enter Telnet Menu

The first stage in entering Maintenance Mode is to access the Humax via Telnet e.g. :-

Menu version 1.23
Enter system PIN: ****

      /-------------------------\
      |  T E L N E T   M E N U  |
      \-------------------------/

  [ Humax HDR-Fox T2 (humax) 1.03.12/3.13 ]

   maint - Restart into maintenance mode.
    safe - Enable safe mode on next boot.
     rma - Enable return-to-manufacturer (RMA) mode.
   reset - Reset custom firmware environment.
 upgrade - Upgrade all installed packages.
  passwd - Remove web interface password.
  fixweb - Re-install web interface.
    stat - Show current activity.
       x - Exit and close connection.
  reboot - Reboot the Humax.
    diag - Run a diagnostic.
     cli - System command line (advanced users).

Please select option:

If the menu is not present, enter the following command at the command prompt :-

menu


NOTE:- If your Humax determines that the web interface server isn't running, the menu may display an additional option e.g. web - Reinstate web interface service, to re-start the Web-Interface, enter web and press return at the prompt.

Enter Maintenance Mode (HDR-Fox T2)

Select the first item in this menu; maint - Restart into maintenance mode. The Humax will close the current telnet session, reboot and display 'MAINTENANCE' on the HDR after a short delay. Once this message is displayed, re-connect via Telnet and the following Menu will then be displayed:

Menu version 1.23
Enter system PIN: ****

      /---------------------------------------------\
      |  M A I N T E N A N C E   M O D E   M E N U  |
      \---------------------------------------------/

  [ Humax HDR-Fox T2 (humax) 1.03.12/3.13 ]

 fixdisk - Check and repair hard disk.
   short - Run short hard-disk self test.
    long - Run long hard-disk self test.
   check - Check self-test progress.
    gptf - Re-format disk using GPT scheme.
     epg - Clear persistent EPG data.
    dlna - Reset DLNA server database.
       x - Leave maintenance mode (Humax will restart).
    diag - Run a diagnostic.
     cli - System command line (advanced users).

Please select option:

Check and repair hard disk (fix-disk)

The following are some additional notes to the Maintenance_Mode_Disk_Check (Fix-Disk) utility

If the Maintenance Mode Menu is not present, the disk check and repair process can be initiated from the command line

fix-disk

Fix-Disk can find and automatically fix numerous problems, however some problems need to be fixed manually. The following bad sector error :-

Running short disk self test
Error at LBA 1812999403
Dev: /dev/sda LBA: 1812999403
LBA: 1812999403 is on partition /dev/sda2, start: 2104515, bad sector offset: 18
10894888
dumpe2fs 1.41.14 (22-Dec-2010)
Using superblock 0
Block size: 4096
LBA 1812999403 maps to file system block 226361861 on /dev/sda2

Checking to see if this block is in use...
debugfs 1.41.14 (22-Dec-2010)
/dev/sda2: Can't read an block bitmap while reading block bitmap
testb: Filesystem not open
Unknown error
Press return to continue:

would require the user to return to the Maintenance Mode Menu, select cli to get a command line prompt and then enter :-

hdparm --repair-sector 1812999403 --yes-i-know-what-i-am-doing /dev/sda

fix-disk -P

If a user only needs to fix a 'Delete Loop' problem, there is a command line alternative to fix-disk which can save some time, the procedure is detailed below :-

humax# /etc/init.d/S90settop shut
humax# rm /mnt/hd1/filebglastop.dat
humax# sync
humax# reboot


Fix-Disk Notes :-

  1. It will take a minimum of 30 Mins. to get to the 'Delete Loop' question and can take hours when fixing problems, so be patient
  2. Option -x -c = enable e2fsck extensions and check for bad blocks / add them to the bad block list
  3. If the web interface hard disk diagnostic highlights attributes 197 or 198 in red, then the additional fix-disk test/repair should run
  4. After a fix-disk run it is normal to get the following message :- Some areas of the hard disk are not mounted, not all functions will be available.
  5. If fix-disk enters a repetitive error loop, enter 'CTRL + ]' to escape


Maintenance Mode Notes

While in Maintenance Mode, only Telnet is functional. The following Notes are valid for the HDR-Fox T2:-

  • Wi-Fi may not be supported in Maintenance mode. If it is not possible to Telnet into the Maintenance mode, use a wired LAN
  • Disk are shown as /dev/sda, /dev/sdb, etc
  • An external HDD found on boot will be /dev/sda and the internal HDD will be /dev/sdb
  • An external HDD connected after boot will be /dev/sdb and the internal HDD will be /dev/sda
  • Partitions on those disks are /dev/sda1, /dev/sda2 etc
  • fdisk -lu HIDE Will display Disks and their Partitions
  • df -h HIDE Will display Mounted Disks


Exit Maintenance Mode

To exit Maintenance Mode, select 'x' from the Telnet Menu or type the following :-

reboot

What is Maintenance Mode for ?

At present, it is used for checking the HDR internal disk file system and formatting USB hard disks up to 2TB (the standard Humax format only works up to 1TB).

Run a file system check on the Internal Hard Disk Drive

See notes on the fix-disk utility

Format a WD Elements 2TB USB external Hard Disk

Full Details Here

These are some extracted notes for drive = /dev/sda1 :-

  • Ensure you are formatting the correct drive e.g. /dev/sda1 or /dev/sda2
  • unmount drive (if Mounted already mounted) with e.g. umount /dev/sda1
  • Partition the disk using fdisk -u /dev/sda1 then p to display current
  • d to delect current
  • n to create primary partition
  • p to select primary partition
  • Partition no = 1 First Sector = 2048 last sector = default
  • p to display new selection e.g. Disk /dev/sda: 2000.3 GB, 2000396746752 bytes
  • w to write new partition and exit fdisk
  • Format new partition with mkfs.ext3 /dev/sda1
  • format will will take about 20 minutes for a 2TB disk

Enter Maintenance Mode (HD-Fox T2)

After selecting option one from the Main Telnet Menu and rebooting the HD-Fox T2, the front display will show 'UtIL' after a short delay, indicating the unit is in Maintenance Mode. When a new Telnet session is started, the HD-Fox T2 will display the following :-

   /-----------------------------------------\
   | M A I N T E N A N C E  M O D E  M E N U |
   \-----------------------------------------/

  [Humax HD-Fox T2 (humaxhd) 1.02.29/2.15]

   1 - Convert USB flash drive to EXT2
   2 - Clear persistent EPG data.
   x - Leave maintenance mode (Humax will restart).
diag - Run a diagnostic.
 cli - Exit to system Command line (Advanced users).

A Guide to converting a USB flash drive to EXT2 for Custom Firmware operation is HERE