init 3
mv /usr/lib/enigma2/python/Plugins /media/usb
ln -s /media/usb/Plugins /usr/lib/enigma2/python/Plugins
init 4
steve29662 you are wrong about init 3 and init 4 order, at least for OpenPLI.
in openpli the right steps are:
init 4
"This stops Enigma2 (operating system) gracefully" - OpenPLI Wiki
df -h
Use this command to identity the USB filesystem path.
Example: /dev/sda1 3.6G 18.8M 3.4G 1% /media/usb
My USB is 4G, and /dev/sda1 device has size of 3.6G (Almost 4G) so it is my USB.
Replace sda1 with your USB name
umount /dev/sda1
This is similar to eject in windows.
The following command will erase your USB data. Make sure it is empty.
mkfs.ext4 /dev/sda1
This command will format your USB with ext3 filesystem.
If you don't do that, symlinks and files permissions will not be moved to USB.
enter 'y' for 'yes' when it asks about data losing.
mkdir /media/usb
This will make an usb directory, in which the USB will be mounted in.
mount /dev/sda1 /media/usb
This will mount the USB in the usb folder we created.
cp -r /usr/lib/enigma2/python/Plugins /media/usb
This will copy (not moving) Plugins folder to USB.
If any error appears. Please stop here and solve it.
diff -qr /usr/lib/enigma2/python/Plugins/ /media/USB/Plugins/
This command will show the differences between the Plugins folder of enigma and of USB.
If everything copied successfully, no output will show up.
If anything appears. Please stop here and start over.
rm -rf /usr/lib/enigma2/python/Plugins
This will remove the Plugins folder inside enigma.
ln -s /media/usb/Plugins /usr/lib/enigma2/python/Plugins
This will create a symlink in the box of the Plugins folder that has been moved to USB.
So anything want to access Plugins will be redirected to USB.
ls -l /usr/lib/enigma2/python/Plugins
The ouput should be something like /usr/lib/enigma2/python/Plugins -> /media/usb/Plugins
(In SSH this should be in blue, if red; USB not inserted or mountpoint has been changed, see the error section below).
init 3
"This wakes enigma from the "sleeping" state and restarts the GUI (Graphical User Interface)." - OpenPLI Wiki.
Wait until enigma boot up and then go to Plugins in enigma.
If there are no errors run reboot.
Plugins error or enigma stuck loading after reboot:
If any error appears when opening Plugins or enigma stuck on loading after reboot.
Make sure that USB is inserted.
Connect again via telnet or SSH and run:
init 4
df -h
Identify your USB mountpoint (look under Mounted on).
for me it is /media/usb.
ln -sf /media/usb/Plugins /usr/lib/enigma2/python/Plugins
This will update Plugins symlink.
init 3
IMPORTANT: Get USB back to FAT32 to use it with Windows
If you want to reuse your USB under Windows, you need to reformat it with FAT32. YOU WILL LOSE ANY DATA ON IT;
Use one of the following methods:
- In enigma:
- install exFAT filesystem support: opkg update && opkg install exfat-utils
- format USB, replace sda1 with your USB name: mkfs.exfat /dev/sda1
- In Windows:
- press Windows+R
- run diskmgmt.msc
- right-click on your USB (MAKE SURE IT IS YOUR USB) and select Delete Partition
- choose yes for data losing
- right-click on it again and select New Simple Volume option
- follow the dialog wizard just make sure to choose FAT32 in format section and check Perfom a quick format also give it a good name ;)