Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Recommended Posts

Posted

Hello.

 

I wanted post it here: 

Please login or register to see this link.

 but i have no rights for it.

 

First of all I want to say that it is totally not recommended to do it. If you have similar problems - ask for support first!
DO IT ON YOUR OWN RISK! Probably this will end your warranty (but my already ended).

 

Two days ago a need to do some electric works and I shutdown my HC2 by pressing power button.

Then, when I finished - I switch it on leds start to blinking... but nothing hapened. I tried to boot to recovery but it did not boot also.

 

I unscrewed left panel of HC and attach monitor to see whtats hapening. And I sawed that it is immediatly reboot after selcecting a boot device. 

 

It was a GRUB problem. This tutorial is for linux users.

Btw, my HC2 version is  4.550.

 

1. You need:

>=1Gb flash drive

Keyboard

Monitor with VGA connector

Linux PC (you can prepare USB drive on Windows, but I do not know how, sorry)

 

2. Preparing flash drive

Download Debian 6 image:

Please login or register to see this link.

And flash it to usb drive (this will erase all your data on flash drive):

Please login or register to see this code.

/dev/sdc - is your USB Flash.

 

3. Boot with prepared flash drive

Power off HC2.

Insert USB Flash.

Remove fibaro recovery usb-drive.

Press F10 like crazy after power on.

Select your USB flash in menu.

 

4. Fixing grub

When GRUB of flash drive appering - select failsafe mode and press enter

After boot sequence will compleate you have about 5 minutes to fix your problem (after sometime something will reboot your HC2).

 

Determine system drive device:

Please login or register to see this code.

 

You will see something like: 

Please login or register to see this code.

So, sdb is your target drive.

 

Mount SystemFS with write permissions:

Please login or register to see this code.

Install GRUB to your target device.

Please login or register to see this code.

Now you need to fix grub.cfg

Please login or register to see this code.

grub.cfg should become like this:

Please login or register to see this code.

5. Reboot

Do not forget to remove your flash drive.

It shodl boot normaly now.

  • Like 5
  • Thanks 1
  • 1 year later...
Posted

You are a lifesaver!

I had the same issue and was able to get the HC2 running again.
I do have some remarks as the instrutions aren't fully correct.
For step 2 this is the correct location:

Please login or register to see this link.


The 64 bits version doesn not work on mine. This one did.

In step 4 the install grub command should be:

Please login or register to see this code.

 

After this my HC2 rebooted again without problems.

 

  • Like 1
Posted (edited)

@Vallefor:

Only one issue I have I can't boot into recovery anymore.
How can I fix that?
I guess the recovery needs an entry too into GRUB.
Can you give me instructions for that too?
When I try to boot now into recovery it just boots like normal.

Edited by SDeath
Posted

first of alll the recovery-usb drive is not used anymore in 4.5xx, so one should better remove it on older HC2, they breaks at some point and might lock usb or power supply.

 

Anyway, mounted os-flash drive from my old HC, it looks like:

 

Please login or register to see this image.

/monthly_2021_02/image.png.6bfbd35a62e999b4434e6fb3778be661.png" />

 

 content of sda1/boot/grub/grub.cfg:

 

Please login or register to see this code.

 

 content of sda2/boot/grub/grub.cfg:

 

Please login or register to see this code.

 

  • Like 1
Posted (edited)

@tinman
Thanks for the reply!

I have removed the Recovery drive when these problems started.
Would something like this work:
Follow the initial instructions, find the RecoveryFS and just install GRUB to that?
My grub.cfg on the SystemFS looked exactly the same as yours did, but I changed it according the instructions. Wasn't needed I guess?
Just the installation of GRUB fixed the problem, could that also fix the Recovery to boot?
I have some Linux experience but not this much.

Edited by SDeath
Posted

no idea, grub multiboot is stupid thing, especially when files are gone from one of the systems.

Before you play a week with that, make it simple:

- enable Remote Support

- create support case ([email protected] )

 

  • Like 1
Posted (edited)

It wasn't that easy indeed.
I tried but it didn't work like I thought it would.

I will open a support case, would that be something they could fix remotely? It is not something I am going to send it back for to Poland.
I'd rather do it myself if I can find the right instructions.

I am using my HC2 for 8 years already, eventhough my Label says Learner, I have some experience with the HC2. ;-)
I do all my LUA programming myself.

Edited by SDeath
Posted (edited)
12 hours ago, SDeath said:

I will open a support case, would that be something they could fix remotely?

 

maybe, in principle your HC2 is booting, so you can create cloud backup with last configuration.

 

The HC2 can be then restored/repaired (as long the os flash drive is not physically broken) in multiple ways:

- remote fix grub
- disassemble HC2, remove, format and rewrite os flash drive with 4.5xx factory image - support can provide it (and then after first boot restore your cloud backup)
- downgrade (support can do it) to 4.170, downgrade Atmel firmware (to support boot from recovery flash drive and old zwave db format), factory reset and recovery to 4.170, update to 4.5xx, restore your cloud backup

 

 

Edited by tinman
  • Like 2
  • Thanks 1
Posted

The OS after GRUB install is booting fine, like before. First thing I did was make backups locally and in the cloud.
In all those years I maybe had to use the restore once or twice and probably last time in the early years.
So it maybe is useless trying to fix this but I hate not having the option anymore.

How is the restore these days, will it be a full restore? So would everything be restored, devices, scenes, VD, etc?

 

The 2nd option looks to be the best option as it would be a fresh start, making sure everything is like it should.
Are there any instructions for this?
I am on 4.600.

Posted

As I thought, support isn't of much use.
They just plainly say we don't do remote sessions to fix things like this.
They have done so in the past 7-8 years ago.

So anybody can help me any further with instructions in how I can re-write the firmware on the USB?
So I can start over and get Recovery working again?

Posted

So I have the factory image from Fibaro.
How can I flash this to the internal USB stick so that all GRUB info is back to original?

Posted
1 hour ago, SDeath said:

So I have the factory image from Fibaro.

 

did you got it from FIBARO or other source?

Which one, 4.1xx or 4.5xx ?

 

 

1 hour ago, SDeath said:

How can I flash this to the internal USB stick so that all GRUB info is back to original?

 

depends on operating system. 

 

On windows you need first cleanup the flash drive with diskpart (select, clean, cre pre part, format) then when the drive has been formated write the image with Rufus or Win32Diskimager. On Linux dd is sufficient.

 

  • Thanks 1
Posted

I got the image from Fibaro support:

Please login or register to see this link.


Does that look correct?

Posted
3 minutes ago, SDeath said:

I got the image from Fibaro support:

Please login or register to see this link.


Does that look correct?

 

no, this is only firmware file (which will get burned during update - with help of recovery system,which is not running for you to sda2), not the whole image (with boot sector and all partitions).

  • Thanks 1
Posted

I’ll try and see if support is willing to send a full image to me. Probably not. Basically also rendering the unit not able to update anymore. 
Maybe I need to start a new topic for others to pitch in that can help in getting grub multibooting again. 

Posted

I made a clone of the internal USB drive and copied it to a SSD I had laying around, removed the internal USB drive and plugged in the SSD in the external USB.
The system booted up without issue, and also quite some faster too.
At least this way I have something to experiment with and maybe get things fixed.
And an easy way to go back to the semi working state, by just flashing the image to the SSD or plugging the original USB stick internally.

I played around with GRUB and an Debian Live USB.
I managed to get things into dual booting the SystemFS and RecoveryFS pretty easy to be honest, just added another menu entry to the 2nd grub.cfg.
And I could choose during booting which to load, but only with a keyboard attached, the button on the back does nothing to this bootmenu.
Was able to boot into recovery just fine, so that works, tried a repair which messed up the Grub system on the next boot after, GRUB rescue was prompted.
Didn't know what to do with that, so I just flashed the original image to the SSD to try again from scratch tomorrow probably.
But without the help from anybody who has more experience than me with Linux this isn't going to work probably.
It's frustrating because It's close to working just need to find the right GRUB commands and I am sure it'll work like normal.

  • 3 years later...
Posted

@SDeath Looks like you have had some success with tinkering around with the HC2. I am facing an issue after installing grub on SystemFS I am not able to enter recovery. Then I installed grub on the RecoveryFS. That would lead the system to only boot in recovery. Did you manage to find a solution to this? Also is there a way I can revert back to the stock conditions? Did Fibaro share those files with you?

Posted

I’m afraid I never was able to recover from it and just ended up buying the HC3 and converted everything to that. 
 

  • 1 year later...
Posted
On 2/13/2021 at 8:19 PM, SDeath said:

I played around with GRUB and an Debian Live USB.
I managed to get things into dual booting the SystemFS and RecoveryFS pretty easy to be honest, just added another menu entry to the 2nd grub.cfg.

Hi @SDeath

I am not sure how it was in 2021 and 4.600, but as of now (year 2025 and HC2 FW 4.630 ) I found that it works this way:

- There's just one entry in the GRUB, named as "Recovery System".

- The above entry is used for both modes - for recovery boot and for normal boot too.

 

If you hold Recovery Button while powering HC2, and release it once the LEDs start flashing from LEFT to RIGHT, then the system boots using the above mentioned entry but you will notice on the screen listing that one of the scripts checks if the button was previously pressed. If so, it will start recovery system, if not it will start standard system.

 

IMHO, based on the above findings, GRUB dual-boot is not necessary, if the button, add-on board and script are OK.

OS Flash Drive full remaige, that you was aiming for, would fix the issue for sure.

Posted
On 2/13/2021 at 8:19 PM, SDeath said:

I made a clone of the internal USB drive and copied it to a SSD I had laying around, removed the internal USB drive and plugged in the SSD in the external USB.
The system booted up without issue, and also quite some faster too.

Thank you for doing this experiment - I've did the same and it really worked! :)HC2 boots normally, WebGUI works and Z-wave works too. Not to mention how much faster system is, when a decent quality USB drive is used. (Original drive should be SLC, but very old model.)

 

For a shame, I realized that you can't restore previous backups when booting from 3rd party USB stick. Neither backups from FBI files nor cloud can be restored. When tried, GUI reports "Unable to decrypt backup" and sometimes even goes to reboot.

What is even more sad is, that you can't create any new backup, as the GUI will report "Backup encryption failed".

IMHO, there's some kind of HW property of original USB stick (special SN?) that is being used as an encryption key. If that property is not present on the replacement flash drive controller chip eeprom, backup/restore won't work.

 

So, with a 3rd party USB stick used as an OS drive, you end up with a system that cannot be backed up regularly (except from creating another offline image).

 

Did you found the same issue with 3rd party drive?

If so, were you able to find workaround to get working backup/restore again?

Thanks!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...