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

#1

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
Sad face on ATV, logs attached
Turn off ATV or not? How to properly do it?
ATV1 Update 2017
Crystal HD support in Krypton?
Sad face on ATV1 with CystalHD
pinned #2
OSMC Update Error
OSMC Update Error
#3

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

Turn off ATV or not? How to properly do it?
split this topic #4

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

#6

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.

split this topic #7

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

#8

How do you reboot ?

#9

Choose quit from the Kodi menu before pulling power.

#10

Where can you find ip adress of atv1

#11

Kodi system information menu

#12

Thx man

1 Like
#13

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.

#14

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?

#15

Yes

#16

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

I just SSHed on as OSMC with MyPassword
https://osmc.tv/wiki/general/usernames-and-passwords/

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.

#17

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.

#18

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