When installing OpenMediaVault via a USB stick you may run into an error. During the installation you are prompted to select the correct drive to install to (in my case /dev/sdb). Towards the end of the install, setup will attempt to install the bootloader to the installation media, which fails.
To fix this issue we need to chroot to the new installation, install the bootloader, then unmount. This is done at the end of the installation, just before rebooting.
- After the error, continue the installation so it can complete.
- When the message appears to restart the computer, press Alt+F2 to switch to a new console. Press enter to activate it.
- Type the following commands to mount the new OpenMediaVault installation and chroot to it:
mount /dev/sda1 /mnt/
mount -t proc none /mnt/proc
mount -o bind /dev /mnt/dev
mount -t sysfs sys /mnt/sys
chroot /mnt/ /bin/bash
- Enter the following command to install the GRUB bootloader. Be sure to select the correct drive when prompted (in my case it was /dev/sda):
- Exit the chroot and unmount:
- Switch back to the install screen by pressing Alt+F1. Press enter to reboot. Remove the USB stick.
OpenMediaVault should now boot!
Here is my method for setting up MythTV on Debian 7 (Wheezy). I chose Debian as I found it the most stable Linux distribution and also allowed for a very minimal installation. This is a backend only setup as I use XBMC as the frontend on another PC.
Note: The commands below are run as the root user unless specified.
- Install Debian. I used the network install ISO, set up on a USB stick. During installation I did not choose to install any packages other than SSH.
- Login via SSH. I use PuTTY on my Windows machine. In order to get mythtv-setup to work, you will need to install an X Windows server. I use Xming.
- In PuTTY, enable X11 forwarding. Enter localhost:0 for the X display location. Make sure Xming is running before connecting.
- Update /etc/apt/sources.list. We need to add the repository at deb-multimedia.org, so MythTV can be installed.
deb http://www.deb-multimedia.org wheezy main non-free
deb http://www.deb-multimedia.org wheezy-backports main
- Add non-free to the existing sources as well. This was required to download the firmware for the Sony PlayTV tuner I’m using.
- Run the following to install the deb-multimedia package source.
apt-get install deb-multimedia-keyring
- Here I’m installing the firmware for the tuner, as well as ntp client and the X Windows Server.
apt-get install firmware-linux-nonfree xorg ntp
- Install MythTV. We need to install from the Wheezy-Backports repository as the stable one does not have the latest version.
apt-get -t wheezy-backports install mythtv mythweb
- I open access to Apache for access to MythWeb on the local subnet. Edit /etc/mythtv/mythweb.conf.
Allow from <Subnet>/24
Where is your LAN IPv4 network address.
- Restart the Apache server for the above change to take effect.
- Create MythTV storage directories. I have a drive mounted to /mnt/storage, and create a directory here called mythtv. Under this I create two directories, one for recorded TV, the other for the live TV buffer. I then give the mythtv user read and write permission on the directories.
chown mythtv:mythtv recordedtv/
chown mythtv:mythtv livetv/
chmod 755 recordedtv/
chmod 755 livetv/
- Run mythtv-setup as your non-root user. Refer to the MythTV Wiki for setup help.
- Make sure mythtv-backend is running. You can start the backend like so.
- The MythTV backend should now be ready.
After a few years without touching this blog I’ve decided to actually use it. I will be posting anything I feel would be worth sharing.