Quantcast
Viewing all articles
Browse latest Browse all 191

Remove OpenELEC File Manager Extra Sources (Recovery, root, boot, data etc)

If you have installed OpenELEC (KODI) on a Raspberry Pi using NOOBs you may have noticed quite a few random sources in the File Manager. They will be named RECOVERY, root, boot, data etc.



What is happening is that OpenELEC is detecting the extra partions on the SD card and automatically mounting these in the /var/media directory. KODI picks up mounts in this location as sources.

Eg. when you plug in a USB drive, it is mounted in the /var/media directory and therefore shown in KODI.

As KODI thinks these directories are mounted media, it won't allow you to remove the sources - only "remove safely". This does remove them, but they will pop up again after a reboot. Arrgh!

The solution is to tell OpenELEC not to mount these partions in the first place.

Below are the instructions to do this.



First remove any external USB media from the Pi (eg. Hard-drive, USB stick)

Make sure SSH is enabled in System -> OpenELEC -> Services -> Enable SSH


Find the IP of the Pi in System -> System info -> IP address


Download putty.exe from HERE
You will need a windows PC on the same network.

Save it somewhere you can easily find it.
It's portable - which means it doesn't need to be installed.

Double click the saved putty.exe to start Putty.

Enter the Pi's IP address in the host name field and make sure the port is 22.
Then click Open.


You should see "login as:" appear.
Type root and hit enter.
Now type in the password openelec

First we need to find out the names of the partions we don't want mounted, do this using the below command in the terminal

ls -l /dev/disk/by-label
This will show you all the current mounts with labels.


We now have the partion labels for the partions we want to not be mounted.

My labels are RECOVERY, SETTINGS, boot, boot-rbp2, data, root, root-rbp2
You may notice these are close or identical as the names in the KODI file manger.

Now that we have these labels, we need to tell OpenELEC to not mount them.
We do this by putting them into a UDEV rule file.

We first need to copy the default system file using the below command in terminal

cp /usr/lib/udev/rules.d/95-udevil-mount.rules /storage/.config/udev.rules.d/
Our copied file will now over-ride the default system file.

Now let's modify the copied file

nano /storage/.config/udev.rules.d/95-udevil-mount.rules
Move down to the line that starts with "ENV{ID_FS_LABEL}"


We want to add our partion labels to this list "EFI|BOOT|Recovery". Each item in the list needs to be separated by a pipe | . Most keyboards you get this character by using SHIFT + BACK SLASH.

My line will be changed to
"EFI|BOOT|Recovery|RECOVERY|SETTINGS|boot|boot-rbp2|data|root|root-rbp2"


Once you are done, save the file with Ctrl-X, Y, ENTER

That's it.
Reboot KODI and the file sources should be gone!


Mmmm, so clean!

Viewing all articles
Browse latest Browse all 191

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>