Hardware Reference
In-Depth Information
Figure 7-3.
My 8-GB SD card
3.
The next step is very simple: change into the directory where you extracted OpenELEC
and then run the
create_sdcard
script. This script only accepts one option and that is the
name of the raw device to install to. In my case, it is
/dev/sde
. So here is the full command
I would run:
# ./create_sdcard /dev/sde
As expected, this fails for me, because a lot of things tend to fail the first time around. I got
this strange error when trying to use the install script:
Could not start /dev/sde2 --- No such file or directory
Wonderful! I can only assume this was my system causing this issue as I can't find anyone
else complain about this issue.
I noticed that the
partprobe
command on my machine seems to take a while to finish.
I made this small change to the
create_sdcard
script. In Listing 7-1 you can see the code
snippet where I added the
sleep 15
line.
4.
Listing 7-1.
My Change to the create_sdcard Script
# tell kernel we have a new partition table echo "telling kernel we have a new partition
table..."
partprobe "$DISK"
sleep 40
In addition to this I had an issue with
udisks
trying to do silly things with the way the
system was mounting the SD card. To stop
udisks
polling the SD card, I ran the following
command:
5.
# udisks --inhibit
In Listing 7-2 you can see the full process of creating the SD card.
Listing 7-2.
Creating the OpenELEC SD Card
#########################################################
# #
# OpenELEC.tv USB Installer #
# #
#########################################################
# #
# This will wipe any data off your chosen drive #
# Please read the instructions and use very carefully.. #
# #
#########################################################