Problems when updating your ATV1 ? - READ HERE BEFORE POSTING!

When I updated my ATV1 to the latest version of OSMC… it failed !

        Have you had this problem ?   Here's the most likely solution.

if you EVER incorrectly shutdown or reboot your ATV1, the boot partition will become Read-Only.

Another common reason this can happen is when the ATV1 loses A/C power.

When that happens, the system will appear to operate normally until you need to update it.
When you try updating it, it will fail because you cannot write to a Read-Only partition

        ***********************************************************
        ****  Do you have OSMC installed in the internal HDD ? ****
        ***********************************************************

To enable writing to the boot partition again, you need to ssh into osmc on your ATV1, and run the following commands:

sudo umount /boot
sudo fsck.hfsplus -f /dev/sda1
sudo mount -o force,rw /dev/sda1 /boot

Now that the parition is writable, you need to do the following commands to update the system.

 sudo apt-get update && sudo apt-get dist-upgrade && sudo reboot 

Your system should then update and reboot.

*******************************************************************************
** Do you have OSMC installed on USB, AND have an internal HDD in the ATV1 ? **
*******************************************************************************

To enable writing to the boot partition again, you need to ssh into osmc on your ATV1, and run the following commands:

sudo umount /boot
sudo fsck.hfsplus -f /dev/sdb1
sudo mount -o force,rw /dev/sdb1 /boot

Now that the parition is writable, you need to do the following commands to update the system.

 sudo apt-get update && sudo apt-get dist-upgrade && sudo reboot 

To try prevent this from happening in the future, always use the shutdown, and reboot menu within Kodi.
(Unfortunately, if the the system ever crashes, or totally freezes forcing you to unplug the power, you will need to fix it again)

4 Likes

To see what the related errors can look like, when this problem occurs, see this thread:

4 posts were split to a new topic: File system boot check

The ultimate solution would be for linux to fully support HFS+ filesystems with journalling, but unfortunately it doesn’t. That’s a problem because the ATV1 requires that filesystem to be bootable.
That issue has been a hassle since the beginning, for various reasons.

8 posts were split to a new topic: Need help fixing ATV1 with Sad Face

How do you reboot ?

Choose quit from the Kodi menu before pulling power.

Where can you find ip adress of atv1

Kodi system information menu

Thx man

1 Like

I now got the same problem: sad OSMC after applying a requested update.
True, I rebooted sometimes using the reboot function in Kodi. Is this wrong?

However, ssh is not possible with the sad OSMC: Permission denied.
root is disabled. I was able to login after installing my public key.

ssh is now working, with user osmc.
Following above instructions, it was possible restoring OSMC.
As I don’t like rebooting by pulling the power cord:
would be possible rebooting via command line: $ sudo reboot, to prevent sad OSMC in the future?

Yes

The above Sticky Post with its 2 phases of instructions is Key -

I just SSHed on as OSMC with MyPassword

And then Copy Pasted the commands and it seems to be back and working.

PS: Cant help it, at times we get power failures once in a while. So, please keep that in mind that some people may not always have Safe Shutdown in their hands.

I’d disabled root. It was my failure trying to login that way.
With user osmc I have my publik key installed, so I logged in right away.
Upon pasting the commands above, update worked right away.

Awesome. Thanks.
Broke addons on my last build so updated to Sad Face.
Followed this guide and am UpToDate and working :slight_smile:

1 Like