Hard disk installations now possible (Sorry, Coming Soon)

I had trouble with Sergio’s instructions even after following them a couple of times.

I found the following instructions to work (by @Icon), and much faster and easier:

Continuing the discussion from Confiiguring Wifi on Apple TV:

This process took about 60 seconds in all, and worked the first time.

Cheers

2 Likes

Yup - can confirm - that worked perfectly!! :slight_smile: Thanks for the heads up vanfog :slight_smile:

Yes some of us had that working 22 days ago when I posted a hint and Soli posted up the commandline :wink:

Some of you guys have no sense of adventure and are not persistent or experimental enough with a DIY, you may actually learn something as well if you play around.

1 Like

Dumb question. Can you do this procedure to a working CB2 ATV1 without 1st doing the USB loading of OSMC?

I’m quite sure you can - you just need to be in a position to transfer the image over SFTP and to use SSH to invoke the DD command.

The only issue to be wary of is that you’re wiping your device and replacing it with the downloaded image, so your movie library, settings, addons, etc. will all be lost…

Well, I just tried this on an ATV running CB2. Uploaded the HDD image to the root of the ATV and ran the command:
sudo dd if=OSMC_TGT_appletv_20151123-HDD.img of=/dev/sda bs=4M

Where exactly am I supposed to upload the HDD image? This is what Putty told me:

root@crystalbuntu:~# sudo dd if=OSMC_TGT_appletv_20151123-HDD.img of=/dev/sda bs=4M
dd: opening `OSMC_TGT_appletv_20151123-HDD.img’: No such file or directory
root@crystalbuntu:~#

Thanks.

You would have downloaded the tar.gz file.

Did you extract this first before sending to the aTV? You have to transfer the IMG file inside, not the tar.gz file.

Copy that, it was extracted, it was the .img file, not the tar. Thanks.

I doubt writing a DD of OSMC_TGT_appletv_20151123-HDD.img, using an already running HDD installed version of Crystalbuntu will actually work without crashing the ATV1.
The OSMC DD image will overwrite the already running Crystalbuntu system files.

It has to be done from a external usb stick.

Sigh… guess I will continue to wait for the OSMC HDD install to get ironed out.

If the @vanfog 's steps didn’t work for you, like in my case (stuck in “Installing file…”) You can try followings. It takes extra time but it is technically more correct to not do “dd” on the same file system where linux is running.

1.) run osmc installer and prepare USB version with .img file: 2015.10-2-USB
2.) boot from USB and let finish osmc installation on the USB stick.
3.) ssh to apple tv (user:osmc pw: osmc)

4.) run following commands one by one:

cd /home/osmc/

wget http://download.osmc.tv/installers/diskimages/OSMC_TGT_appletv_20151123-HDD.img.gz

gzip -d OSMC_TGT_appletv_20151123-HDD.img.gz

sudo dd if=OSMC_TGT_appletv_20151123-HDD.img of=/dev/sda bs=4M

NOTE:to download HDD.img file image you need also internet connection for your appletv

5.) remove USB stick and reboot appletv
6.) wait untill installation from HDD is finished
7.) extra hard reset might be needed if “appletv ?” will appear

8.) done :wink:

2 Likes

Did the hdd install now, as described (by icon?). Fast and easy. Good stuff!

What free program do you use to ssh on Windows.?

putty

Make sure you upload the .img to the same directory you inhabit when running the command. /home/osmc/ for instance, which is where you are when you connect with ssh. I think. Connect with ssh, do “ls” and make sure the .img-file is there.

2 Likes

BAM! That’s it. I had my .img file in the root. Moving it to /home/osmc/ was the trick. Got both of my ATV’s running OSMC on the HDD now. Thanks bo1e, that was the missing piece of the puzzle for me.

1 Like

This has got me thinking/wondering.

Can someone, maybe @vanfog or @elfnino , who has completed the “DD the HDD install image to internal drive” manual method… please post the contents of:

  1. /boot/com.apple.boot.list
  2. a ls of the /boot directory from the HDD ?

I don’t want to annoy my wife more than needed by wiping our ATV yet again.

here it is:

osmc@osmc:~$ cat /boot/com.apple.Boot.plist
`<?xml version=“1.0” encoding=“UTF-8”>

Background Color 0 Boot Logo BootLogo.png Kernel Flags console=tty1 root=/dev/sda2 rootfstype=ext4 rootwait quiet video=vesafb intel_idle.max_cstate=1 processor.max_cstate=2 nohpet vga16fb.modeset=0 osmcdev=atv Kernel mach_kernel `

osmc@osmc:~$ ls -la /boot/
total 14420 drwxr-xr-x 1 root root 13 Jan 5 21:52 . drwxr-xr-x 23 root root 4096 Jan 5 21:56 .. -rw-r--r-- 1 root root 68619 Nov 23 08:09 BootLogo.png drwxr-xr-x 1 root root 4 Nov 23 08:09 System -rw------- 1 root root 2032339 Nov 2 18:25 System.map-4.2.3-6-osmc -rw-r--r-- 1 root root 298800 Nov 23 08:09 boot.efi -rw-r--r-- 1 root root 588 Jan 5 21:52 com.apple.Boot.plist -rw-r--r-- 1 root root 96659 Nov 2 18:16 config-4.2.3-6-osmc -rw-r--r-- 1 root root 2756 Jan 5 21:52 install.log -rwxr-xr-x 1 root root 6137572 Nov 10 17:59 mach_kernel -rw-r--r-- 1 root root 30 Nov 23 09:23 preseed.cfg -rw------- 1 root root 6106464 Nov 2 18:25 vmlinuz-4.2.3-6-osmc

I wrote the image to my drive some weeks ago by physically removing the drive and have the same results as @elfnino

cat /boot/com.apple.Boot.plist
`<?xml version=“1.0” encoding=“UTF-8”>

Background Color 0 Boot Logo BootLogo.png Kernel Flags console=tty1 root=/dev/sda2 rootfstype=ext4 rootwait quiet video=vesafb intel_idle.max_cstate=1 processor.max_cstate=2 nohpet vga16fb.modeset=0 osmcdev=atv Kernel mach_kernel `

ls -la /boot/
total 14420 drwxr-xr-x 1 root root 13 Dec 26 13:37 . drwxr-xr-x 23 root root 4096 Dec 26 13:44 .. -rw-r--r-- 1 root root 68619 Nov 23 01:09 BootLogo.png drwxr-xr-x 1 root root 4 Nov 23 01:09 System -rw------- 1 root root 2032339 Nov 2 11:25 System.map-4.2.3-6-osmc -rw-r--r-- 1 root root 298800 Nov 23 01:09 boot.efi -rw-r--r-- 1 root root 588 Dec 26 13:37 com.apple.Boot.plist -rw-r--r-- 1 root root 96659 Nov 2 11:16 config-4.2.3-6-osmc -rw-r--r-- 1 root root 2732 Dec 26 13:37 install.log -rwxr-xr-x 1 root root 6137572 Nov 10 10:59 mach_kernel -rw-r--r-- 1 root root 30 Nov 23 02:23 preseed.cfg -rw------- 1 root root 6106464 Nov 2 11:25 vmlinuz-4.2.3-6-osmc

@chemical, @elfnino Thanks !

That’s good news.
That looks the way it should.

For those of you with HDD installs running, that require the USB to be left in, you will likely have some issues.
While it runs off the HDD, it uses RAM for it’s boot, just as the initial install does.