Can anyone suggest/provide a Crystalubuntu 2 Mirror?

OK. I finally got the image file copied to /storage on the ATV1. I guess the location I was previously using was too small. Now I need the syntax of the dd command to install it. I was thinking something like

dd if=/storage/crystalbuntu2.img40GB.bz2 bzip2 -d | dd of=/dev/sda

but I wasn’t confident enough to try it. I am correct?

Nearly
You have missed out what is called a pipe… |
edit and add this bit… | bzip2 -d | … to what you have.

OK. I issued the following command in Putty logged on to ATV1 running openelec.

dd if=/storage/crystalbuntu2.img40GB.bz2 | bzip2 -d | dd of=/dev/sda

I suspect it may take a while to complete since the image is large but I’m am not yet getting any feedback from the command line. It’s been 10 minutes. Is this normal? How long should I wait before I do something? Thanks

OK. I can report success.

The dd command issued above took forever to run (2 to 3 hours). I rebooted to CB2 running 12.1 XBMC

To recap, this is the process I used:

I downloaded the 40 GB image (link posted above)

I went to the Openelec site and downloaded the “boot from USB” image.

I used USBIT to copy the image to my USB stick.

I put the USB stick in the ATV1 and plugged in the power. It booted to Openelec’s XBMC

System storage shows

sbd1 as flash,
sdb2 - 3,1 G as storage
sda4 - 35.8G as Media
sda3 - 900.0M as OSboot

I get the IP address of the ATV1 from XBMC System.

I use the IP address with Filezilla to logon to the Openelec (user-root, pw-openelec)

I copy the CB2 40 GB image to /storage on the ATV1.

I then used Putty to SSH into ATV1 and ran this command

dd if=/storage/crystalbuntu2.img40GB.bz2 | bzip2 -d | dd of=/dev/sda

It takes forever so be patient. When you get a command prompt, you can reboot to CB2.

Next question, how can I update the XBMC 12.1 to Kodi 14.2

I’ve used these commands to update to

sudo -s
initctl stop xbmc
wget http://download.crystalbuntu.com/xbmc/xbmc-13-20140506.tar.gz
tar -xzf xbmc-13-20140506.tar.gz -C /usr
initctl start xbmc

I see problems with these. One, it’s an older version of XBMC and I assume http://download.crystalbuntu.com/xbmc no longer exists. Any help would be appreciated

1 Like

Nice Work there Bonnie,
Even easier than dd’ing the image across the Network :smile:

I’ve already written some simple scripts instructions to update to Kodi over here:

Kodi 14.2 Helix Final…

Kodi 15 Isengard Alpha2

Enjoy.

4 Likes

Thanks for creating these scripts! They made updating to Helix a breeze!

I have a 160GB ATV1 as well that I need to convert to CB2. Does anyone have a 160 GB Image? If not is there an easy way to take the 40GB image and expand the partition?

I think I’m going to get a gender changer for the IDE cable in the ATV1 so that I can plug it into my PC and try to use a partition manager on Windows 7 to enlarge the partition. Has anyone ever done this and what did you use?

No need for extra Hardware. I’m working on it. Will post in a minute.
Try this, no guarantee it will not destroy data. But you can always re-image the HDD.

Firstly, install >> parted:

sudo apt-get install parted

Second, increase the Linux partition size:

sudo fdisk /dev/sda
Command (m for help): p
Command (m for help): d
Partition number (1-5): 3
Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p
Partition number (1-4, default 1): 3
First sector (xxx-xxxxxxxx, default xxx): hit enter or return to choose default
Last sector, +sectors or +size{K,M,G}… hit enter or return to choose default
Command (m for help): p
Command (m for help): t
Partition number (1-5): 3
Hex code (type L to list codes): 83
Command (m for help): p
Command (m for help): w

Ignore warning, then…

sudo parted
p
(parted) set 2 msftdata on
p
q

Third, reboot the ATV, and ssh into it again.

Finally, enlarge the filesystem.
df -h
sudo resize2fs /dev/sda3
df -h

W. :smile:

Exams done. Let’s see how much we can get done on aTV over the weekend.

S

8 Likes

My old ATV will be very happy to receive some love. :two_hearts:

Hope you did great with yours exams.

Thanks Sam
Bob

Everything seemed to work OK until I get to the line

sudo parted

Here’s what I get

atv@crystalbuntu:~$ sudo parted
sudo: parted: command not found

What should I do?

I went back to look at the commands I issued previously and saw the following:

sudo apt-get install parted
Reading package lists… Done
Building dependency tree
Reading state information… Done
Suggested packages:
parted-doc
The following NEW packages will be installed:
parted
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 52.9 kB of archives.
After this operation, 190 kB of additional disk space will be used.
Err Index of /ubuntu precise-updates/main parted i386 2.3-8ubuntu5.1
404 Not Found [IP: 91.189.91.14 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/parted/parted_2.3-8ubuntu5.1_i386.deb 404 Not Found [IP: 91.189.91.14 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Is this the cause of my problem?

OK. I did some reading and ran the command

sudo apt-get update

Then I ran sudo parted. I got the following before I bailed:

atv@crystalbuntu:~$ sudo parted
GNU Parted 2.3
Using /dev/sda
Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted) p
Error: The backup GPT table is not at the end of the disk, as it should be.
This might mean that another operating system believes the disk is smaller.
Fix, by moving the backup to the end (and removing the old backup)?
Fix/Ignore/Cancel? Cancel
(parted) q

What should I do at this point?

fix

Sorry to be dense but what do you mean?

I thought about it for a while and realized “Fix” was one of my choices so I answered Fix. That appeared to work. The next command from wrxtasy’s post above

sudo parted
p
(parted) set 2 msftdata on
p
q

seems to be

set 2 msftdata on

I typed that in and things went south in a hurry. Apparently that is not an accepted command. Now I stuck on this question:

Flag to Invert?

What do I do?

Ignore the msftdata part. I don’t know why he included them. Maybe he just wanted to be funny…

willing to beta just let me know!

OK, I tried the last bit of code from wrxtasy above

atv@crystalbuntu:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 37G 2.4G 33G 7% /
udev 120M 4.0K 120M 1% /dev
tmpfs 49M 600K 48M 2% /run
none 5.0M 0 5.0M 0% /run/lock
none 122M 0 122M 0% /run/shm
atv@crystalbuntu:~$ sudo resize2fs /dev/sda3
resize2fs 1.42 (29-Nov-2011)
open: No such file or directory while opening /dev/sda3

I’m guessing I should use /dev/sda2 instead but I wanted to check with you guys first